Skip to content

Commit

Permalink
Fix int to None comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
rernst committed Jul 4, 2024
1 parent e580602 commit 0506de1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions clarity_epp/export/sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def removed_samples(lims, output_file):
for sample in dx_samples:
sample_removed = False
removed_stage = None
removed_process_id = None
removed_process_id = 0
removed_date = None

for artifact in sorted(lims.get_artifacts(type="Analyte", sample_name=sample.name, resolve=True), key=clarity_epp.export.utils.sort_artifact_list):
Expand Down Expand Up @@ -50,7 +50,7 @@ def removed_samples(lims, output_file):
if stage == removed_stage:
sample_removed = False
removed_stage = None
removed_process_id = None
removed_process_id = 0
removed_date = None

# Other process completed.
Expand All @@ -64,7 +64,7 @@ def removed_samples(lims, output_file):
if process_id > removed_process_id: # Other process completed after removal from workflow
sample_removed = False
removed_stage = None
removed_process_id = None
removed_process_id = 0
removed_date = None
break

Expand All @@ -81,7 +81,7 @@ def removed_samples(lims, output_file):
if person_sample_date > removed_date: # New sample loaded after removal from workflow
sample_removed = False
removed_stage = None
removed_process_id = None
removed_process_id = 0
removed_date = None

else: # Work done on other sample after removal from workflow
Expand All @@ -96,7 +96,7 @@ def removed_samples(lims, output_file):
if process_id > removed_process_id: # Other process completed after removal from workflow
sample_removed = False
removed_stage = None
removed_process_id = None
removed_process_id = 0
removed_date = None
break

Expand Down

0 comments on commit 0506de1

Please sign in to comment.