From 29f110fc01786195b5ce7ec3ef6f64ce468f82b7 Mon Sep 17 00:00:00 2001 From: Ida Lindegaard <82438141+idalindegaard@users.noreply.github.com> Date: Tue, 15 Oct 2024 16:58:07 +0200 Subject: [PATCH] add input flag (#549) ### Added - input flag as option --- cg_lims/EPPs/udf/calculate/library_normalization.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cg_lims/EPPs/udf/calculate/library_normalization.py b/cg_lims/EPPs/udf/calculate/library_normalization.py index c3de2873..e766f013 100644 --- a/cg_lims/EPPs/udf/calculate/library_normalization.py +++ b/cg_lims/EPPs/udf/calculate/library_normalization.py @@ -98,6 +98,7 @@ def set_artifact_volumes( @click.command() +@options.input() @options.sample_udf(help="Name of sample volume UDF.") @options.buffer_udf(help="Name of buffer volume UDF.") @options.concentration_udf(help="Name of sample concentration UDF.") @@ -111,6 +112,7 @@ def set_artifact_volumes( @click.pass_context def library_normalization( ctx: click.Context, + input: bool, sample_udf: str, buffer_udf: str, concentration_udf: str, @@ -122,7 +124,7 @@ def library_normalization( LOG.info(f"Running {ctx.command_path} with params: {ctx.params}") process: Process = ctx.obj["process"] - artifacts: List[Artifact] = get_artifacts(process=process) + artifacts: List[Artifact] = get_artifacts(process=process, input=input) try: final_concentration: float = get_final_concentration( process=process, final_concentration_udf=final_concentration_udf