From dc523892a5f76b9d611d2f196a745fddea688145 Mon Sep 17 00:00:00 2001 From: Vanessa Hassouna Date: Wed, 27 Nov 2024 15:13:39 +0100 Subject: [PATCH 1/3] [fts] fixed requirements --- requirements.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index ff36b1900..8a743eac9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -23,4 +23,5 @@ deprecated probabilistic_model>=6.0.2 random_events>=3.1.2 sympy -pint>=0.21.1 \ No newline at end of file +pint>=0.21.1 +scipy~=1.10.1 \ No newline at end of file From 598a59c7d59ed2f6ba07baebca8d29fe188c06ee Mon Sep 17 00:00:00 2001 From: Vanessa Hassouna Date: Wed, 15 Jan 2025 12:56:55 -0500 Subject: [PATCH 2/3] [helper] added 2 very simple function, the perform can now be used as perform(.....) instead of .perform() and the an is basicly .resolve(). --- src/pycram/helper.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/pycram/helper.py b/src/pycram/helper.py index fb2f78927..40227dec8 100644 --- a/src/pycram/helper.py +++ b/src/pycram/helper.py @@ -114,3 +114,22 @@ def find_multiverse_path() -> Optional[str]: return multiverse_path + multiverse_relative_path +def perform(action_instance): + """ + Executes the perform logic for a given action instance. + + :param action_instance: An instance of an action class. + """ + if hasattr(action_instance, 'execute'): + return action_instance.execute() + raise AttributeError(f"{action_instance.__class__.__name__} has no 'plan' method.") + + +def an(designator): + """ + Resolve the first available action from the designator. + + :param designator: The designator description instance. + :return: The first resolved action instance. + """ + return designator.resolve() From 07da82a274c68765bc1d45a9cc6e43fff02da3db Mon Sep 17 00:00:00 2001 From: Vanessa Hassouna Date: Wed, 15 Jan 2025 12:58:20 -0500 Subject: [PATCH 3/3] [requirements] fixed as in dev --- requirements.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 8a743eac9..d7148cd4d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -24,4 +24,6 @@ probabilistic_model>=6.0.2 random_events>=3.1.2 sympy pint>=0.21.1 -scipy~=1.10.1 \ No newline at end of file + +Pygments~=2.14.0 +typeguard~=4.3.0 \ No newline at end of file