Skip to content

Commit

Permalink
Add a basic check for errorred sorting runs with info from data asset…
Browse files Browse the repository at this point in the history
… API
  • Loading branch information
bjhardcastle committed Apr 28, 2024
1 parent 2da4496 commit 074430c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/npc_lims/status/tracked_sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ def is_sorted(self) -> bool:
asset
for asset in codeocean.get_session_data_assets(self.id)
if "sorted" in asset["name"]
and asset['files'] > 6 # number of files produced by sorting pipeline when errorred
)
except (FileNotFoundError, ValueError):
return False
Expand Down

0 comments on commit 074430c

Please sign in to comment.