Skip to content

Commit

Permalink
remove unused imports and variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Karl-Svard committed Aug 29, 2024
1 parent 54ff59c commit 4bd84c5
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions cg_lims/EPPs/udf/calculate/adjust_missing_reads.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,9 @@

import click
from cg_lims import options
from cg_lims.exceptions import LimsError, MissingCgFieldError, MissingUDFsError
from cg_lims.exceptions import LimsError
from cg_lims.get.artifacts import get_artifacts
from cg_lims.get.samples import get_one_sample_from_artifact
from cg_lims.status_db_api import StatusDBAPI
from genologics.entities import Artifact
from requests.exceptions import ConnectionError

LOG = logging.getLogger(__name__)

Expand All @@ -17,7 +14,6 @@ def calculate_adjusted_reads(artifact: Artifact, factor: str) -> float:
"""A function to calculate the adjusted reads to sequence for each artifact with the desired apptag"""

reads = artifact.udf.get("Reads to sequence (M)")

return round(float(reads) * float(factor), 1)


Expand Down Expand Up @@ -165,7 +161,6 @@ def adjust_missing_reads(
specified in the command line"""

process = ctx.obj["process"]
lims = ctx.obj["lims"]

try:
artifacts: List[Artifact] = get_artifacts(process=process)
Expand Down

0 comments on commit 4bd84c5

Please sign in to comment.