sl-shared-assets 1.1.2__py3-none-any.whl → 1.2.0rc1__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.

@@ -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",
@@ -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",
@@ -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."""
@@ -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.1.2
3
+ Version: 1.2.0rc1
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=phyUTT2ptNN8Z6NzqWsMANTsTsGsm0vbljpZ_W4qOZ4,2244
2
- sl_shared_assets/__init__.pyi,sha256=Gp5cXClPSchFofrqwBQ-DBB1q01j_NyyH0exRbDE1_k,2474
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=S1-3mYop1MhI7HRusPE5sfu30hmIgH9BfmB5-r6Bbm8,1883
7
- sl_shared_assets/data_classes/__init__.pyi,sha256=jB5Y9QQ-XL_auk7Ot0DA87lIbfn1j3AuWOk2LcOyxvk,2037
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
10
  sl_shared_assets/data_classes/runtime_data.py,sha256=Q7Ykf9hgrw1jYKXa53mn_LW8G2cPmLLuxgGkP6qQcc4,15483
11
11
  sl_shared_assets/data_classes/runtime_data.pyi,sha256=PxaCbeF9COR4ri91pdzh7zVrqaz2KEDYB1EoLhZQC_c,6618
12
- sl_shared_assets/data_classes/session_data.py,sha256=RWqHHaJU1pnkxVXCuFjAYbWN50HEO7oEjEsT9mmKQic,51112
13
- sl_shared_assets/data_classes/session_data.pyi,sha256=mVy1UJyZE6sh-hV-qFDyw8UiWGA_UCYNR2iCNbNeh4o,16190
12
+ sl_shared_assets/data_classes/session_data.py,sha256=gXgocA7a3H7r7z7aMVgs1eLMYSbMnt-lZ2Uz-6-3cYI,51817
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.1.2.dist-info/METADATA,sha256=exQgxRjZv5IwdQXDn8uowLlJbYkA0Oagj9z0oVz8gCk,49077
33
- sl_shared_assets-1.1.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
34
- sl_shared_assets-1.1.2.dist-info/entry_points.txt,sha256=76c00fRS4IuXBP2xOBdvycT15Zen-lHiDg2FaSt-HB4,547
35
- sl_shared_assets-1.1.2.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
36
- sl_shared_assets-1.1.2.dist-info/RECORD,,
32
+ sl_shared_assets-1.2.0rc1.dist-info/METADATA,sha256=jnGTBcOX_zLrYM3x9I0dnsK-Io22N1uxsKfNv-jZWjY,49080
33
+ sl_shared_assets-1.2.0rc1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
34
+ sl_shared_assets-1.2.0rc1.dist-info/entry_points.txt,sha256=76c00fRS4IuXBP2xOBdvycT15Zen-lHiDg2FaSt-HB4,547
35
+ sl_shared_assets-1.2.0rc1.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
36
+ sl_shared_assets-1.2.0rc1.dist-info/RECORD,,