sl-shared-assets 1.1.2__py3-none-any.whl → 1.2.0rc2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of sl-shared-assets might be problematic. Click here for more details.
- sl_shared_assets/__init__.py +2 -0
- sl_shared_assets/__init__.pyi +2 -0
- sl_shared_assets/data_classes/__init__.py +2 -7
- sl_shared_assets/data_classes/__init__.pyi +2 -0
- sl_shared_assets/data_classes/runtime_data.py +3 -0
- sl_shared_assets/data_classes/runtime_data.pyi +1 -0
- sl_shared_assets/data_classes/session_data.py +14 -1
- sl_shared_assets/data_classes/session_data.pyi +8 -0
- {sl_shared_assets-1.1.2.dist-info → sl_shared_assets-1.2.0rc2.dist-info}/METADATA +1 -1
- {sl_shared_assets-1.1.2.dist-info → sl_shared_assets-1.2.0rc2.dist-info}/RECORD +13 -13
- {sl_shared_assets-1.1.2.dist-info → sl_shared_assets-1.2.0rc2.dist-info}/WHEEL +0 -0
- {sl_shared_assets-1.1.2.dist-info → sl_shared_assets-1.2.0rc2.dist-info}/entry_points.txt +0 -0
- {sl_shared_assets-1.1.2.dist-info → sl_shared_assets-1.2.0rc2.dist-info}/licenses/LICENSE +0 -0
sl_shared_assets/__init__.py
CHANGED
|
@@ -16,6 +16,7 @@ from .data_classes import (
|
|
|
16
16
|
SessionData,
|
|
17
17
|
SubjectData,
|
|
18
18
|
SurgeryData,
|
|
19
|
+
VersionData,
|
|
19
20
|
InjectionData,
|
|
20
21
|
ProcedureData,
|
|
21
22
|
ProcessedData,
|
|
@@ -52,6 +53,7 @@ __all__ = [
|
|
|
52
53
|
"ImplantData",
|
|
53
54
|
"SessionData",
|
|
54
55
|
"RawData",
|
|
56
|
+
"VersionData",
|
|
55
57
|
"ProcessedData",
|
|
56
58
|
"SubjectData",
|
|
57
59
|
"SurgeryData",
|
sl_shared_assets/__init__.pyi
CHANGED
|
@@ -16,6 +16,7 @@ from .data_classes import (
|
|
|
16
16
|
SessionData as SessionData,
|
|
17
17
|
SubjectData as SubjectData,
|
|
18
18
|
SurgeryData as SurgeryData,
|
|
19
|
+
VersionData as VersionData,
|
|
19
20
|
InjectionData as InjectionData,
|
|
20
21
|
ProcedureData as ProcedureData,
|
|
21
22
|
ProcessedData as ProcessedData,
|
|
@@ -46,6 +47,7 @@ __all__ = [
|
|
|
46
47
|
"ImplantData",
|
|
47
48
|
"SessionData",
|
|
48
49
|
"RawData",
|
|
50
|
+
"VersionData",
|
|
49
51
|
"ProcessedData",
|
|
50
52
|
"SubjectData",
|
|
51
53
|
"SurgeryData",
|
|
@@ -11,13 +11,7 @@ from .runtime_data import (
|
|
|
11
11
|
MesoscopeHardwareState,
|
|
12
12
|
MesoscopeExperimentDescriptor,
|
|
13
13
|
)
|
|
14
|
-
from .session_data import
|
|
15
|
-
RawData,
|
|
16
|
-
SessionData,
|
|
17
|
-
ProcessedData,
|
|
18
|
-
ProcessingTracker,
|
|
19
|
-
ProjectConfiguration,
|
|
20
|
-
)
|
|
14
|
+
from .session_data import RawData, SessionData, VersionData, ProcessedData, ProcessingTracker, ProjectConfiguration
|
|
21
15
|
from .surgery_data import (
|
|
22
16
|
DrugData,
|
|
23
17
|
ImplantData,
|
|
@@ -43,6 +37,7 @@ __all__ = [
|
|
|
43
37
|
"ImplantData",
|
|
44
38
|
"SessionData",
|
|
45
39
|
"RawData",
|
|
40
|
+
"VersionData",
|
|
46
41
|
"ProcessedData",
|
|
47
42
|
"SubjectData",
|
|
48
43
|
"SurgeryData",
|
|
@@ -9,6 +9,7 @@ from .runtime_data import (
|
|
|
9
9
|
from .session_data import (
|
|
10
10
|
RawData as RawData,
|
|
11
11
|
SessionData as SessionData,
|
|
12
|
+
VersionData as VersionData,
|
|
12
13
|
ProcessedData as ProcessedData,
|
|
13
14
|
ProcessingTracker as ProcessingTracker,
|
|
14
15
|
ProjectConfiguration as ProjectConfiguration,
|
|
@@ -38,6 +39,7 @@ __all__ = [
|
|
|
38
39
|
"ImplantData",
|
|
39
40
|
"SessionData",
|
|
40
41
|
"RawData",
|
|
42
|
+
"VersionData",
|
|
41
43
|
"ProcessedData",
|
|
42
44
|
"SubjectData",
|
|
43
45
|
"SurgeryData",
|
|
@@ -171,6 +171,9 @@ class MesoscopeExperimentDescriptor(YamlConfig):
|
|
|
171
171
|
"""The weight of the animal, in grams, at the beginning of the session."""
|
|
172
172
|
dispensed_water_volume_ml: float
|
|
173
173
|
"""Stores the total water volume, in milliliters, dispensed during runtime."""
|
|
174
|
+
is_guided: bool = False
|
|
175
|
+
"""Determines whether the animal has to lick in the reward zone to receive water rewards. If this is set to False,
|
|
176
|
+
the system automatically dispenses water when the animal enters the reward zone."""
|
|
174
177
|
experimenter_notes: str = "Replace this with your notes."
|
|
175
178
|
"""This field is not set during runtime. It is expected that each experimenter will replace this field with their
|
|
176
179
|
notes made during runtime."""
|
|
@@ -88,6 +88,7 @@ class MesoscopeExperimentDescriptor(YamlConfig):
|
|
|
88
88
|
experimenter: str
|
|
89
89
|
mouse_weight_g: float
|
|
90
90
|
dispensed_water_volume_ml: float
|
|
91
|
+
is_guided: bool = ...
|
|
91
92
|
experimenter_notes: str = ...
|
|
92
93
|
experimenter_given_water_volume_ml: float = ...
|
|
93
94
|
incomplete: bool = ...
|
|
@@ -22,6 +22,16 @@ from .configuration_data import get_system_configuration_data
|
|
|
22
22
|
_valid_session_types = {"lick training", "run training", "mesoscope experiment", "window checking"}
|
|
23
23
|
|
|
24
24
|
|
|
25
|
+
@dataclass()
|
|
26
|
+
class VersionData(YamlConfig):
|
|
27
|
+
"""Stores information about the versions of important Sun lab libraries used to acquire the session's data."""
|
|
28
|
+
|
|
29
|
+
python_version: str = ""
|
|
30
|
+
"""Stores the Python version used by the environment that acquired the data."""
|
|
31
|
+
sl_experiment_version: str = ""
|
|
32
|
+
"""Stores the version of the sl-experiment library that was used to acquire the data."""
|
|
33
|
+
|
|
34
|
+
|
|
25
35
|
@dataclass()
|
|
26
36
|
class ProjectConfiguration(YamlConfig):
|
|
27
37
|
"""Stores the project-specific configuration parameters that do not change between different animals and runtime
|
|
@@ -223,6 +233,9 @@ class RawData:
|
|
|
223
233
|
'verify-session' CLI command to indicate whether the session data inside the folder marked by the file has been
|
|
224
234
|
verified for integrity. Primarily, this is used when the data is moved to the long-term storage destination (BioHPC
|
|
225
235
|
server) to ensure it is safe to remove any local copies of the data stored on the acquisition system machine(s)."""
|
|
236
|
+
version_data_path: Path = Path()
|
|
237
|
+
"""Stores the path to the version_data.yaml file. This file contains the snapshot of Python and sl-experiment
|
|
238
|
+
library versions that were used when the data was acquired."""
|
|
226
239
|
|
|
227
240
|
def resolve_paths(self, root_directory_path: Path) -> None:
|
|
228
241
|
"""Resolves all paths managed by the class instance based on the input root directory path.
|
|
@@ -255,6 +268,7 @@ class RawData:
|
|
|
255
268
|
self.telomere_path = self.raw_data_path.joinpath("telomere.bin")
|
|
256
269
|
self.ubiquitin_path = self.raw_data_path.joinpath("ubiquitin.bin")
|
|
257
270
|
self.integrity_verification_tracker_path = self.raw_data_path.joinpath("integrity_verification_tracker.yaml")
|
|
271
|
+
self.version_data_path = self.raw_data_path.joinpath("version_data.yaml")
|
|
258
272
|
|
|
259
273
|
def make_directories(self) -> None:
|
|
260
274
|
"""Ensures that all major subdirectories and the root directory exist, creating any missing directories."""
|
|
@@ -676,7 +690,6 @@ class ProcessingTracker(YamlConfig):
|
|
|
676
690
|
"""Saves the current processing state stored inside instance attributes to the specified .YAML file."""
|
|
677
691
|
# Resets the _lock and file_path to None before dumping the data to .YAML to avoid issues with loading it
|
|
678
692
|
# back.
|
|
679
|
-
console.echo(message=f"{self.file_path}")
|
|
680
693
|
original = copy.deepcopy(self)
|
|
681
694
|
original.file_path = None # type: ignore
|
|
682
695
|
original._lock_path = None # type: ignore
|
|
@@ -8,6 +8,13 @@ from .configuration_data import get_system_configuration_data as get_system_conf
|
|
|
8
8
|
|
|
9
9
|
_valid_session_types: Incomplete
|
|
10
10
|
|
|
11
|
+
@dataclass()
|
|
12
|
+
class VersionData(YamlConfig):
|
|
13
|
+
"""Stores information about the versions of important Sun lab libraries used to acquire the session's data."""
|
|
14
|
+
|
|
15
|
+
python_version: str = ...
|
|
16
|
+
sl_experiment_version: str = ...
|
|
17
|
+
|
|
11
18
|
@dataclass()
|
|
12
19
|
class ProjectConfiguration(YamlConfig):
|
|
13
20
|
"""Stores the project-specific configuration parameters that do not change between different animals and runtime
|
|
@@ -97,6 +104,7 @@ class RawData:
|
|
|
97
104
|
telomere_path: Path = ...
|
|
98
105
|
ubiquitin_path: Path = ...
|
|
99
106
|
integrity_verification_tracker_path: Path = ...
|
|
107
|
+
version_data_path: Path = ...
|
|
100
108
|
def resolve_paths(self, root_directory_path: Path) -> None:
|
|
101
109
|
"""Resolves all paths managed by the class instance based on the input root directory path.
|
|
102
110
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sl-shared-assets
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.2.0rc2
|
|
4
4
|
Summary: Stores assets shared between multiple Sun (NeuroAI) lab data pipelines.
|
|
5
5
|
Project-URL: Homepage, https://github.com/Sun-Lab-NBB/sl-shared-assets
|
|
6
6
|
Project-URL: Documentation, https://sl-shared-assets-api-docs.netlify.app/
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
sl_shared_assets/__init__.py,sha256=
|
|
2
|
-
sl_shared_assets/__init__.pyi,sha256=
|
|
1
|
+
sl_shared_assets/__init__.py,sha256=_AOpxu9K_0px_xS07H8mqZeYlBS9aD75XBS0dofJzqw,2280
|
|
2
|
+
sl_shared_assets/__init__.pyi,sha256=H1kPervb1A2BjG5EOLsLFQGUWFS_aHWy4cpL4_W71Fs,2525
|
|
3
3
|
sl_shared_assets/cli.py,sha256=2HAgnD7hHnFp3R7_tJAfWBI_jRbhSuyDBFK3TGIHYsw,17771
|
|
4
4
|
sl_shared_assets/cli.pyi,sha256=Fh8GZBSQzII_Iz6k5nLQOsVMbp7q1R5mp4KNZjdGflY,6119
|
|
5
5
|
sl_shared_assets/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
|
-
sl_shared_assets/data_classes/__init__.py,sha256=
|
|
7
|
-
sl_shared_assets/data_classes/__init__.pyi,sha256=
|
|
6
|
+
sl_shared_assets/data_classes/__init__.py,sha256=ixn972b-3URCinVLRPjMfDXpO2w24_NkEUUjdqByFrA,1890
|
|
7
|
+
sl_shared_assets/data_classes/__init__.pyi,sha256=bDBLkyhlosB4t09GxHBNKH0kaVBhHSY_j-i3MD2iKVo,2088
|
|
8
8
|
sl_shared_assets/data_classes/configuration_data.py,sha256=ZVk1ynk25CfVuQfMofoH90BUaOPqk7zW8ukY6ls_Pp0,30360
|
|
9
9
|
sl_shared_assets/data_classes/configuration_data.pyi,sha256=h7AV3z73SC2ITXWcnsShczuezC1Is7L4WSMnEWGSLPQ,9617
|
|
10
|
-
sl_shared_assets/data_classes/runtime_data.py,sha256=
|
|
11
|
-
sl_shared_assets/data_classes/runtime_data.pyi,sha256=
|
|
12
|
-
sl_shared_assets/data_classes/session_data.py,sha256=
|
|
13
|
-
sl_shared_assets/data_classes/session_data.pyi,sha256=
|
|
10
|
+
sl_shared_assets/data_classes/runtime_data.py,sha256=5aGp7HMwUUGUdRkkxC3ZA_G604h0ZDMYlFOHvuQGCeI,15719
|
|
11
|
+
sl_shared_assets/data_classes/runtime_data.pyi,sha256=F151EwpuHorhIyvJ1MBmEC4dzfLZb2D1YaHwQ-qrDyY,6644
|
|
12
|
+
sl_shared_assets/data_classes/session_data.py,sha256=DHfjGXvdMRsOl1fTgNFrF3u9THAQFtTruDU0tsd0y8c,51767
|
|
13
|
+
sl_shared_assets/data_classes/session_data.pyi,sha256=ajVrNwGpk9TQj79WURVYpQ2Bhy-XZsau8VABBgtOzrY,16452
|
|
14
14
|
sl_shared_assets/data_classes/surgery_data.py,sha256=qsMj3NkjhylAT9b_wHBY-1XwTu2xsZcZatdECmkA7Bs,7437
|
|
15
15
|
sl_shared_assets/data_classes/surgery_data.pyi,sha256=rf59lJ3tGSYKHQlEGXg75MnjajBwl0DYhL4TClAO4SM,2605
|
|
16
16
|
sl_shared_assets/server/__init__.py,sha256=nyX6-9ACcrQeRQOCNvBVrWSTHGjRPANIG_u0aq7HPTg,426
|
|
@@ -29,8 +29,8 @@ sl_shared_assets/tools/project_management_tools.py,sha256=DgMKd6i3iLG4lwVgcCgQeO
|
|
|
29
29
|
sl_shared_assets/tools/project_management_tools.pyi,sha256=f_3O8UjnfHRMEe2iZpQxKK9Vb0_lJB2yI1WcJPUqGEU,3498
|
|
30
30
|
sl_shared_assets/tools/transfer_tools.py,sha256=J26kwOp_NpPSY0-xu5FTw9udte-rm_mW1FJyaTNoqQI,6606
|
|
31
31
|
sl_shared_assets/tools/transfer_tools.pyi,sha256=FoH7eYZe7guGHfPr0MK5ggO62uXKwD2aJ7h1Bu7PaEE,3294
|
|
32
|
-
sl_shared_assets-1.
|
|
33
|
-
sl_shared_assets-1.
|
|
34
|
-
sl_shared_assets-1.
|
|
35
|
-
sl_shared_assets-1.
|
|
36
|
-
sl_shared_assets-1.
|
|
32
|
+
sl_shared_assets-1.2.0rc2.dist-info/METADATA,sha256=wiTJc7nWlmRmTlAf_5-oIcZIuqvb51g5gt8QsZ7l6-U,49080
|
|
33
|
+
sl_shared_assets-1.2.0rc2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
34
|
+
sl_shared_assets-1.2.0rc2.dist-info/entry_points.txt,sha256=76c00fRS4IuXBP2xOBdvycT15Zen-lHiDg2FaSt-HB4,547
|
|
35
|
+
sl_shared_assets-1.2.0rc2.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
36
|
+
sl_shared_assets-1.2.0rc2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|