burstfit.io
BurstIO Objects
class BurstIO()
I/O class to save the fitting results and read results to reproduce model.
Arguments:
burstfit_obj
- Instance of burstfit class with fitting parametersburstdata_obj
- Instance of burstdata class with burst datadictionary
- dictionary with fitting resultsjsonfile
- JSON file with the fitting results outname: outdir:
set_attributes_to_save
| def set_attributes_to_save()
Sets required attributes to be saved
Returns:
save_results
| def save_results(outname=None, outdir=None)
Saves results of parameter fitting
Arguments:
outname
- name of the output json file
Returns:
read_json_and_precalc
| def read_json_and_precalc(file=None)
Read the result json file and calculate required parameters.
Arguments:
file
- results file to read
Returns:
set_metadata
| def set_metadata()
Sets the metadata tuple
Returns:
set_classes_from_dict
| def set_classes_from_dict()
Sets models and required classes
Returns:
model
| @property
| def model()
Function to make the model
Returns:
2D array of model