Skip to content

Commit

Permalink
Bugfix: workflow args were not passed to subprocess
Browse files Browse the repository at this point in the history
This fixes bug introduced in #111.
  • Loading branch information
emilmelnikov committed Aug 16, 2023
1 parent 7b1e602 commit f89e23e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,9 @@ private void runImpl(StatusBar status, Path inputDir, Path outputDir) {

IlastikOptions opts = optionsService.getOptions(IlastikOptions.class);
opts.load();

List<String> args = commonSubprocessArgs(opts, projectFileName);
Map<String, String> env = subprocessEnv(opts);
args.addAll(workflowArgs());

Map<String, Dataset> inputs = new HashMap<>(workflowInputs());
inputs.put("raw_data", inputImage);
Expand All @@ -114,6 +115,7 @@ private void runImpl(StatusBar status, Path inputDir, Path outputDir) {
Path outputPath = outputDir.resolve("predictions.h5");
args.add("--output_filename_format=" + outputPath);

Map<String, String> env = subprocessEnv(opts);
logger.info(String.format(
"Subprocess starting with arguments %s and environment %s", args, env));
status.withSpinner("Running " + workflowName(), () -> {
Expand Down

0 comments on commit f89e23e

Please sign in to comment.