Skip to content

burstfit.io

[view_source]

BurstIO Objects

class BurstIO()

[view_source]

I/O class to save the fitting results and read results to reproduce model.

Arguments:

  • burstfit_obj - Instance of burstfit class with fitting parameters
  • burstdata_obj - Instance of burstdata class with burst data
  • dictionary - dictionary with fitting results
  • jsonfile - JSON file with the fitting results outname: outdir:

set_attributes_to_save

 | def set_attributes_to_save()

[view_source]

Sets required attributes to be saved

Returns:

save_results

 | def save_results(outname=None, outdir=None)

[view_source]

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)

[view_source]

Read the result json file and calculate required parameters.

Arguments:

  • file - results file to read

Returns:

set_metadata

 | def set_metadata()

[view_source]

Sets the metadata tuple

Returns:

set_classes_from_dict

 | def set_classes_from_dict()

[view_source]

Sets models and required classes

Returns:

model

 | @property
 | def model()

[view_source]

Function to make the model

Returns:

2D array of model