Skip to content

Commit

Permalink
updated Reaction and getReactionConfig to handle A B D E and Ea param…
Browse files Browse the repository at this point in the history
…aters
  • Loading branch information
alexjamesgarza committed Mar 1, 2024
1 parent 6ad84c8 commit d7e228a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
Binary file modified src/__pycache__/music_box_reaction.cpython-39.pyc
Binary file not shown.
19 changes: 15 additions & 4 deletions src/box_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,20 @@ def generateReactionConfig(self):
products[product.name] = yield_value

reac["products"] = products

#Adds reaction name if value is set

# Add reaction parameters (A, B, D, E, Ea) if values are set
if reaction.A is not None:
reac["A"] = reaction.A
if reaction.B is not None:
reac["B"] = reaction.B
if reaction.D is not None:
reac["D"] = reaction.D
if reaction.E is not None:
reac["E"] = reaction.E
if reaction.Ea is not None:
reac["Ea"] = reaction.Ea

#Adds reaction name if value is set
if(reaction.name != None):
reac["MUSICA name"] = reaction.name

Expand Down Expand Up @@ -199,6 +211,5 @@ def readFromJson(self):
"""
# TODO: Implement the logic to update the box model config using a json.
pass



0 comments on commit d7e228a

Please sign in to comment.