hnn_core.read_params

hnn_core.read_params(params_fname, file_contents=None)[source]

Read param values from a file (.json or .param).

Parameters:
params_fnamestr

Full path to the file (.param)

file_contentsstr | None

If file_contents are provided as a string, it is parsed into a dictionary.

Returns:
paramsan instance of Params

Params containing parameter values from file