From 7dd8f34d6ba8cd7f2489422262f04a8b0347d1ef Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 17 Oct 2023 03:28:48 +0000 Subject: [PATCH] Bump [skip actions] --- pyproject.toml | 2 +- src/npc_lims/status/tracked_sessions.py | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 218173b..7c7a95f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "npc_lims" -version = "0.1.84" +version = "0.1.85" description = "Tools to fetch and update paths, metadata and state for Mindscope Neuropixels sessions, in the cloud." authors = [ { name = "Arjun Sridhar", email = "arjun.sridhar@alleninstitute.org" }, diff --git a/src/npc_lims/status/tracked_sessions.py b/src/npc_lims/status/tracked_sessions.py index 82f5592..4baf514 100644 --- a/src/npc_lims/status/tracked_sessions.py +++ b/src/npc_lims/status/tracked_sessions.py @@ -26,9 +26,10 @@ ] DR_DATA_REPO_ISILON = upath.UPath( - f"//allen/programs/mindscope/workgroups/dynamicrouting/DynamicRoutingTask/Data" + "//allen/programs/mindscope/workgroups/dynamicrouting/DynamicRoutingTask/Data" ) + @dataclasses.dataclass(frozen=True, eq=True) class SessionInfo: """Minimal session metadata obtained quickly from a database. @@ -72,7 +73,7 @@ def cloud_path(self) -> upath.UPath | None: if DR_DATA_REPO_ISILON in self.allen_path.parents: return s3.DR_DATA_REPO / self.allen_path.relative_to(DR_DATA_REPO_ISILON) return None - + @property def is_uploaded(self) -> bool: """All of the session's raw data has been uploaded to S3 and can be found in @@ -85,7 +86,7 @@ def is_uploaded(self) -> bool: with contextlib.suppress(FileNotFoundError, ValueError): return bool(codeocean.get_raw_data_root(self.id)) return False - + @property def is_sorted(self) -> bool: """The AIND sorting pipeline has yielded a Result asset for this