Skip to content

Commit

Permalink
edited equations class
Browse files Browse the repository at this point in the history
  • Loading branch information
mtod92 committed Dec 21, 2023
1 parent f74d3bf commit ec5b6c8
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 15 deletions.
3 changes: 1 addition & 2 deletions equpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ def __init__(self, equations, mass_conservation, species = None):
self.stoichiometry, self.mass_conservation, self.species = eq_system_builder(self.stoichiometry, self.mass_conservation)

if self.species == None:
print(self.stoichiometry)
self.species = {'i':i for i in range(len(self.stoichiometry))} #placeholder for species name if not specified
self.species = {'i':i for i in range(np.shape(N)[1])} #placeholder for species name if not specified

class ChemicalReaction:
def __init__(
Expand Down
Loading

0 comments on commit ec5b6c8

Please sign in to comment.