Skip to content

Commit

Permalink
Add surface channel sorted status
Browse files Browse the repository at this point in the history
  • Loading branch information
bjhardcastle committed Jul 11, 2024
1 parent aff5986 commit 211adb2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/npc_lims/scripts/update_session_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def main() -> None:
surface_channels_asset_id VARCHAR(36) DEFAULT NULL,
is_uploaded BOOLEAN DEFAULT NULL,
is_sorted BOOLEAN DEFAULT NULL,
is_surface_channels_sorted BOOLEAN DEFAULT NULL,
is_annotated BOOLEAN DEFAULT NULL,
is_dlc_eye BOOLEAN DEFAULT NULL,
is_dlc_side BOOLEAN DEFAULT NULL,
Expand All @@ -52,6 +53,7 @@ def main() -> None:
"surface_channels_asset_id, "
"is_uploaded, "
"is_sorted, "
"is_surface_channels_sorted, "
"is_annotated, "
"is_dlc_eye, "
"is_dlc_side, "
Expand All @@ -78,16 +80,18 @@ def main() -> None:
surface_channels_asset_id = npc_lims.get_surface_channels_raw_data_asset(
s.id
)["id"]
is_surface_channels_sorted = s.is_surface_channels_sorted
else:
surface_channels_asset_id = ""
is_surface_channels_sorted = None
statement += (
f"\n\t('{s.date}', "
f"'{aind_session_id}', "
f"'{raw_asset_id}', "
f"'{surface_channels_asset_id}', "
f"{int(s.is_uploaded)}, "
f"{int(s.is_sorted)}, "
f"{int(s.is_uploaded)}, "
f"{int(is_surface_channels_sorted) if is_surface_channels_sorted is not None else 'NULL'}, "
f"{int(s.is_annotated)}, "
f"{int(s.is_dlc_eye)}, "
f"{int(s.is_dlc_side)}, "
Expand Down

0 comments on commit 211adb2

Please sign in to comment.