Skip to content

Commit

Permalink
parse config field
Browse files Browse the repository at this point in the history
  • Loading branch information
yaseminbridges committed Jun 2, 2024
1 parent 5815472 commit 724d6b3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/pheval_ai_marrvel/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from pheval_ai_marrvel.post_process.post_process import post_process_results
from pheval_ai_marrvel.prepare.prepare import prepare_inputs
from pheval_ai_marrvel.run.run import run_commands
from pheval_ai_marrvel.tool_specific_configuration_options import AIMARRVELConfigurations


@dataclass
Expand All @@ -29,11 +30,15 @@ def run(self):
Run AI-MARRVEL to produce the raw output.
"""
print("running with AI-MARRVEL")
config = AIMARRVELConfigurations.parse_config(
self.input_dir_config.tool_specific_configuration_options
)
run_commands(
tool_input_commands_dir=self.tool_input_commands_dir,
testdata_dir=self.testdata_dir,
input_dir=self.input_dir,
output_dir=self.output_dir,
environment=config.environment,
)

def post_process(self):
Expand Down

0 comments on commit 724d6b3

Please sign in to comment.