PySSC

Generic wrapper for SAM Simulation Core models using sscapi.h

PySSC description

class PySAM.PySSC.PySSC
data_clear(p_data)
data_create()
data_first(p_data)
data_free(p_data)
data_get_array(p_data, name)
data_get_matrix(p_data, name)
data_get_number(p_data, name)
data_get_string(p_data, name)
data_get_table(p_data, name)
data_next(p_data)
data_query(p_data, name)
data_set_array(p_data, name, parr)
data_set_array_from_csv(p_data, name, fn)
data_set_matrix(p_data, name, mat)
data_set_matrix_from_csv(p_data, name, fn)
data_set_number(p_data, name, value)
data_set_string(p_data, name, value)
data_set_table(p_data, name, tab)
data_unassign(p_data, name)
entry_description(p_entry)
entry_name(p_entry)
entry_version(p_entry)
info_constraints(p_inf)
info_data_type(p_inf)
info_group(p_inf)
info_label(p_inf)
info_meta(p_inf)
info_name(p_inf)
info_required(p_inf)
info_uihint(p_inf)
info_units(p_inf)
info_var_type(p_inf)
module_create(name)
module_entry(index)
module_exec(p_mod, p_data)
module_exec_set_print(prn)
module_exec_simple_no_thread(modname, data)
module_free(p_mod)
module_log(p_mod, index)
module_var_info(p_mod, index)
version()
ARRAY = 3
INOUT = 3
INPUT = 1
INVALID = 0
MATRIX = 4
NUMBER = 2
OUTPUT = 2
STRING = 1
PySAM.PySSC.dict_to_ssc_table(py_dict, cmod_name)
PySAM.PySSC.dict_to_ssc_table_dat(py_dict, cmod_name, dat)
PySAM.PySSC.ssc_cmod(dat, name)
PySAM.PySSC.ssc_sim(data_ssc, tech_model_name, financial_model_name)
PySAM.PySSC.ssc_sim_from_dict(data_pydict)

Run a technology compute module using parameters in a dict.

Parameters:data_pydict (dict) –
Required keys are:
tech_model: str
name of the compute module to run.
financial_model: str or None
name of the financial model to apply. If None, no financial model is used.

Other keys are names of args for the selected tech_model or financial_model.

Returns:(dict) – keys are outputs from the selected compute module.
Return type:dict
PySAM.PySSC.ssc_table_to_dict(cmod, dat)