Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotfix/v1.10.2 to develop #89

Merged
merged 2 commits into from
Jul 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading