Skip to content

Commit

Permalink
add measurement and input artifact flags to calculate-amount-ng epp
Browse files Browse the repository at this point in the history
  • Loading branch information
Karl-Svard committed Jan 19, 2024
1 parent b95d08c commit 7413777
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cg_lims/EPPs/udf/calculate/calculate_amount_ng.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import sys

import click

from cg_lims import options
from cg_lims.exceptions import LimsError, MissingUDFsError
from cg_lims.get.artifacts import get_artifacts
Expand All @@ -15,13 +14,17 @@
@options.amount_udf_option()
@options.volume_udf_option()
@options.subtract_volume_option()
@options.measurement()
@options.input()
@click.pass_context
def calculate_amount_ng(
ctx: click.Context,
amount_udf: str,
volume_udf: str,
concentration_udf: str,
subtract_volume: str,
measurement: bool = False,
input: bool = False,
):
"""Calculates and auto-fills the quantities of DNA in sample from concentration and volume
measurements. The volume is subtracted by either 0 or 3 in the calculations. This is
Expand All @@ -33,7 +36,7 @@ def calculate_amount_ng(
lims = ctx.obj["lims"]

try:
artifacts = get_artifacts(process=process, measurement=True)
artifacts = get_artifacts(process=process, measurement=measurement, input=input)
missing_udfs_count = 0
artifacts_with_missing_udf = []
for artifact in artifacts:
Expand Down

0 comments on commit 7413777

Please sign in to comment.