Skip to content

Commit

Permalink
Bugfix: Error using variable in stucture handling
Browse files Browse the repository at this point in the history
* The standard structure handling widgets and methods had an error is the approach
  was a variable rather than one of the choices.
  • Loading branch information
paulsaxe committed Aug 21, 2024
1 parent 6248144 commit 6847b15
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
=======
History
=======
2024.8.21 -- Bugfix: Error using variable in stucture handling
* The standard structure handling widgets and methods had an error is the approach
was a variable rather than one of the choices.

2024.8.17 -- Enhancements to line graphs
* Added multiple axes to line graphs.
* Updated to correct version of plotly. 'latest' is actually not.
Expand Down
6 changes: 6 additions & 0 deletions seamm/standard_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ def structure_handling_description(P, **kwargs):
text += "The structure will be put in a new configuration."
elif handling == "Create a new system and configuration":
text += "The structure will be put in a new system."
elif handling.startswith("$"):
text += f"The handling of the structure will be determined by '{handling}'."
else:
raise ValueError(f"Do not understand how to handle the structure: '{handling}'")

Expand Down Expand Up @@ -175,6 +177,8 @@ def multiple_structure_handling_description(P, **kwargs):
text += "be added as a new configuration of the current system."
elif handling == "Create a new system and configuration":
text += "be added as a new system and configuration."
elif handling.startswith("$"):
text += f"be handled as determined by '{handling}'."
else:
raise ValueError(f"Do not understand how to handle the structure: '{handling}'")

Expand All @@ -184,6 +188,8 @@ def multiple_structure_handling_description(P, **kwargs):
text += "created as a new configuration of the current system."
elif handling == "Create a new system and configuration":
text += "created in a new system and configuration."
elif handling.startswith("$"):
text += f"handled as determined by '{handling}'."
else:
raise ValueError(f"Do not understand how to handle the structure: '{handling}'")

Expand Down

0 comments on commit 6847b15

Please sign in to comment.