Utils#

set_globals()

Sets library parameters that must be the same whenever the libraries are imported.

constants()

Commonly used constants of the ivcurves scripts.

mp_num_digits_left_of_decimal(num_mpf)

Finds the number of digits to the left of an mpmath float's decimal point.

mp_nstr_precision_func(num_mpf)

Converts an mpmath float to a string with at least 16 significant digits after the decimal place.

read_iv_curve_parameter_sets(filename)

Returns a dictionary of indices to a list of these values: photocurrent, saturation_current, resistance_series, resistance_shunt, n, and cells_in_series.

make_iv_curve_name(test_set_name, index)

Returns a unique name for an IV curve created from parameters of a test set's test case.

get_filenames_in_directory(directory_path)

Returns a set of entries in the directory directory_path.

load_json(path)

Returns a dict of JSON at path.

save_json(json_dict, path)

Saves a dict of JSON to the file path with indent 2.