Skip to content

Commit

Permalink
undoing name change
Browse files Browse the repository at this point in the history
  • Loading branch information
K20shores committed Oct 11, 2024
1 parent 24ddc02 commit ae20a30
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/acom_music_box/evolving_conditions.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def __init__(self, headers=None, times=None, conditions=None):
self.conditions = conditions if conditions is not None else []

@classmethod
def from_UI_JSON(self, UI_JSON, species_list, reaction_list):
def from_UI_JSON(cls, UI_JSON, species_list, reaction_list):
"""
Create a new instance of the EvolvingConditions class from a JSON object.
Expand Down Expand Up @@ -95,11 +95,10 @@ def from_UI_JSON(self, UI_JSON, species_list, reaction_list):
concentrations,
rates))

return self(headers, times, conditions)
return cls(headers, times, conditions)

@classmethod
@staticmethod
def from_config_JSON(
self,
path_to_json,
config_JSON):
"""
Expand Down

0 comments on commit ae20a30

Please sign in to comment.