diff --git a/src/acom_music_box/music_box_species_list.py b/src/acom_music_box/music_box_species_list.py index a514973d..02d40f8b 100644 --- a/src/acom_music_box/music_box_species_list.py +++ b/src/acom_music_box/music_box_species_list.py @@ -18,7 +18,7 @@ def __init__(self, species=None, relative_tolerance=1.0e-4): Args: species (List[Species]): A list of Species instances. Default is an empty list. - relative_tolerance (float): The relative tolerance for the species list. Default is 0.0. + relative_tolerance (float): The relative tolerance for the species list. Default is 1.0e-4. """ self.species = species if species is not None else [] self.relative_tolerance = relative_tolerance @@ -29,7 +29,7 @@ def from_UI_JSON(cls, UI_JSON): Create a new instance of the SpeciesList class from a JSON object. Args: - UI_JSON (dict): A JSON object representing the species list. + UI_JSON (dict): A JSON object from MusicBox Interactive representing the species list. Returns: SpeciesList: A new instance of the SpeciesList class. @@ -49,6 +49,15 @@ def from_UI_JSON(cls, UI_JSON): @classmethod def from_config_JSON(cls, path_to_json, config_JSON): + """ + Create a new instance of the SpeciesList class from a JSON object. + + Args: + UI_JSON (dict): A JSON object from a config JSON representing the species list. + + Returns: + SpeciesList: A new instance of the SpeciesList class. + """ species_from_json = []