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 ae20a30 commit 532a078
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/acom_music_box/evolving_conditions.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def add_condition(self, time_point, conditions):
self.conditions.append(conditions)

@classmethod
def read_conditions_from_file(self, file_path):
def read_conditions_from_file(cls, file_path):
"""
Read conditions from a file and update the evolving conditions.
Expand Down Expand Up @@ -191,7 +191,7 @@ def read_conditions_from_file(self, file_path):
reaction_rates))


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

# allows len overload for this class

Expand Down

0 comments on commit 532a078

Please sign in to comment.