Skip to content

Commit

Permalink
Merge pull request #362 from latchbio/rahuldesai1/fix-snakemake-confi…
Browse files Browse the repository at this point in the history
…g-override

fix: merge global config with user config instead of overriding
  • Loading branch information
rahuldesai1 authored Dec 21, 2023
2 parents 7b3a536 + 727989c commit e9fdcb0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions latch_cli/snakemake/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -1235,8 +1235,9 @@ def get_fn_code(

need_conda = any(x.conda_env is not None for x in jobs)

if non_blob_parameters is not None and len(non_blob_parameters) > 0:
self.job.rule.workflow.globals["config"] = non_blob_parameters
if non_blob_parameters is not None:
for param, val in non_blob_parameters.items():
self.job.rule.workflow.globals["config"][param] = val

snakemake_args = [
"-m",
Expand Down

0 comments on commit e9fdcb0

Please sign in to comment.