sandia_simple#

Uses pvlib.ivtools.sde.fit_sandia_simple() to estimate the single diode equation parameters for each IV curve. The fitting method is documented in [1].

References

submissions.cwhanse.sandia_simple.get_test_set_filepaths()#

Returns a sorted list of pathlib.Path objects pointing to the JSON test set files. pathlib.Path objects can be passed directly to Python’s open function to open the JSON file.

Return type:

A list.

submissions.cwhanse.sandia_simple.get_test_set_name(filepath)#

Gets a test set filename from a filepath.

Parameters:

filepath (pathlib.Path) – A filepath pointing to a JSON test set file.

Returns:

  • The test set name given a pathlib.Path object pointing to a JSON

  • test set file.

submissions.cwhanse.sandia_simple.json_file_to_df(filepath)#

Creates a pandas DataFrame from an IV Curve JSON file. All of the numerical values stored as strings in the JSON as parsed to np.float64.

Parameters:

filepath (pathlib.Path) – A Path object pointing to the JSON file.

Return type:

A pandas DataFrame.

submissions.cwhanse.sandia_simple.json_file_to_dict(filepath)#

Returns a Python dict of the contents of a JSON file.

Parameters:

filepath (pathlib.Path) – The filepath pointing to a JSON file.

Return type:

A Python dict.

submissions.cwhanse.sandia_simple.main_function()#

Reads test sets and fits each test set using the sandia_simple method.

Writes fitted parameters for each test set.

Return type:

None.