From 6db852ec7e3d3fb5fd39be72f51f86c4b0a9bfdc Mon Sep 17 00:00:00 2001 From: Harshad Hegde Date: Tue, 5 Sep 2023 15:20:48 -0500 Subject: [PATCH 1/2] ofn format specified for robot --- src/ontobot_change_agent/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ontobot_change_agent/api.py b/src/ontobot_change_agent/api.py index 0d3bc96..6844754 100644 --- a/src/ontobot_change_agent/api.py +++ b/src/ontobot_change_agent/api.py @@ -244,6 +244,6 @@ def process_issue_via_jar(input: str, commands: list, jar_path: str, output: str cli_commands = [ ' -k "{}"'.format(command.replace('"', "'")) for command in commands if len(commands) > 1 ] - full_command = cli_command + " ".join(cli_commands) + f" -o {output}" + full_command = cli_command + " ".join(cli_commands) + f" --format ofn -o {output}" # Run the command on the command line subprocess.run(full_command, shell=True) # noqa S602 From c87c9adab75155605c76fe7e4381db089beaa186 Mon Sep 17 00:00:00 2001 From: Harshad Hegde Date: Tue, 5 Sep 2023 15:51:12 -0500 Subject: [PATCH 2/2] chaind `convert` to the robot command --- src/ontobot_change_agent/api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ontobot_change_agent/api.py b/src/ontobot_change_agent/api.py index 6844754..5ab6da0 100644 --- a/src/ontobot_change_agent/api.py +++ b/src/ontobot_change_agent/api.py @@ -244,6 +244,7 @@ def process_issue_via_jar(input: str, commands: list, jar_path: str, output: str cli_commands = [ ' -k "{}"'.format(command.replace('"', "'")) for command in commands if len(commands) > 1 ] - full_command = cli_command + " ".join(cli_commands) + f" --format ofn -o {output}" + conversion = f" convert --format ofn -o {output}" + full_command = cli_command + " ".join(cli_commands) + conversion # Run the command on the command line subprocess.run(full_command, shell=True) # noqa S602