Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyCBakerPhD authored Mar 22, 2024
1 parent 61ccba5 commit a7a91a1
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions tests/docker_yaml_conversion_specification_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@ def test_run_conversion_from_yaml_cli(self):
command=(
"docker run -t "
f"--volume {self.source_volume}:{self.source_volume} "
f"--volume {self.test_folder}:{self.test_folder} "
"ghcr.io/catalystneuro/neuroconv:{self.tag} "
f"neuroconv {yaml_file_path} "
f"--data-folder-path /neuroconv/{DATA_PATH} --output-folder-path {self.test_folder} --overwrite"
f"--data-folder-path {self.source_volume}/{DATA_PATH} --output-folder-path {self.test_folder} --overwrite"
),
catch_output=True,
)
Expand Down Expand Up @@ -80,16 +81,17 @@ def test_run_conversion_from_yaml_variable(self):

yaml_string = "".join(yaml_lines)
os.environ["NEUROCONV_YAML"] = yaml_string
os.environ["NEUROCONV_DATA_PATH"] = str(DATA_PATH)
os.environ["NEUROCONV_DATA_PATH"] = self.source_volume + str(DATA_PATH)
os.environ["NEUROCONV_OUTPUT_PATH"] = str(self.test_folder)

output = deploy_process(
command=(
"docker run -t "
f"--volume {self.source_volume}:/neuroconv "
"--env NEUROCONV_YAML=$NEUROCONV_YAML "
"--env NEUROCONV_DATA_PATH=$NEUROCONV_DATA_PATH "
"--env NEUROCONV_OUTPUT_PATH=$NEUROCONV_OUTPUT_PATH "
f"--volume {self.source_volume}:{self.source_volume} "
f"--volume {self.test_folder}:{self.test_folder} "
"-e NEUROCONV_YAML=$NEUROCONV_YAML "
"-e NEUROCONV_DATA_PATH=$NEUROCONV_DATA_PATH "
"-e NEUROCONV_OUTPUT_PATH=$NEUROCONV_OUTPUT_PATH "
"ghcr.io/catalystneuro/neuroconv:yaml_variable"
),
catch_output=True,
Expand Down

0 comments on commit a7a91a1

Please sign in to comment.