Skip to content

Commit

Permalink
add input flag (#549)
Browse files Browse the repository at this point in the history
### Added

- input flag as option
  • Loading branch information
idalindegaard authored Oct 15, 2024
1 parent 5ad7124 commit 29f110f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cg_lims/EPPs/udf/calculate/library_normalization.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand All @@ -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,
Expand All @@ -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
Expand Down

0 comments on commit 29f110f

Please sign in to comment.