From 6847b15fcf99bc9cbf62c9b281fa17fb4d516b5c Mon Sep 17 00:00:00 2001 From: Paul Saxe Date: Wed, 21 Aug 2024 19:37:18 -0400 Subject: [PATCH] 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. --- HISTORY.rst | 4 ++++ seamm/standard_parameters.py | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/HISTORY.rst b/HISTORY.rst index 9327651..1259976 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -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. diff --git a/seamm/standard_parameters.py b/seamm/standard_parameters.py index 87fce7c..5ea74de 100644 --- a/seamm/standard_parameters.py +++ b/seamm/standard_parameters.py @@ -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}'") @@ -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}'") @@ -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}'")