sl-shared-assets 4.0.0__py3-none-any.whl → 4.0.1__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/cli.py CHANGED
@@ -21,6 +21,7 @@ from .data_classes import SessionData, TrackerFileNames, get_processing_tracker
21
21
  @click.option(
22
22
  "-id",
23
23
  "--manager_id",
24
+ type=int,
24
25
  required=True,
25
26
  default=0,
26
27
  show_default=True,
@@ -104,9 +104,6 @@ class LickTrainingDescriptor(YamlConfig):
104
104
  dispensed during the paused (idle) state."""
105
105
  pause_dispensed_water_volume_ml: float = 0.0
106
106
  """Stores the total water volume, in milliliters, dispensed during the paused (idle) state."""
107
- experimenter_notes: str = "Replace this with your notes."
108
- """This field is not set during runtime. It is expected that each experimenter replaces this field with their
109
- notes made during runtime."""
110
107
  experimenter_given_water_volume_ml: float = 0.0
111
108
  """The additional volume of water, in milliliters, administered by the experimenter to the animal after the session.
112
109
  """
@@ -116,6 +113,9 @@ class LickTrainingDescriptor(YamlConfig):
116
113
  incomplete: bool = False
117
114
  """If this field is set to True, the session is marked as 'incomplete' and automatically excluded from all further
118
115
  Sun lab automated processing and analysis."""
116
+ experimenter_notes: str = "Replace this with your notes."
117
+ """This field is not set during runtime. It is expected that each experimenter replaces this field with their
118
+ notes made during runtime."""
119
119
 
120
120
 
121
121
  @dataclass()
@@ -160,9 +160,6 @@ class RunTrainingDescriptor(YamlConfig):
160
160
  dispensed during the paused (idle) state."""
161
161
  pause_dispensed_water_volume_ml: float = 0.0
162
162
  """Stores the total water volume, in milliliters, dispensed during the paused (idle) state."""
163
- experimenter_notes: str = "Replace this with your notes."
164
- """This field is not set during runtime. It is expected that each experimenter will replace this field with their
165
- notes made during runtime."""
166
163
  experimenter_given_water_volume_ml: float = 0.0
167
164
  """The additional volume of water, in milliliters, administered by the experimenter to the animal after the session.
168
165
  """
@@ -172,6 +169,9 @@ class RunTrainingDescriptor(YamlConfig):
172
169
  incomplete: bool = False
173
170
  """If this field is set to True, the session is marked as 'incomplete' and automatically excluded from all further
174
171
  Sun lab automated processing and analysis."""
172
+ experimenter_notes: str = "Replace this with your notes."
173
+ """This field is not set during runtime. It is expected that each experimenter will replace this field with their
174
+ notes made during runtime."""
175
175
 
176
176
 
177
177
  @dataclass()
@@ -191,9 +191,6 @@ class MesoscopeExperimentDescriptor(YamlConfig):
191
191
  dispensed during the paused (idle) state."""
192
192
  pause_dispensed_water_volume_ml: float = 0.0
193
193
  """Stores the total water volume, in milliliters, dispensed during the paused (idle) state."""
194
- experimenter_notes: str = "Replace this with your notes."
195
- """This field is not set during runtime. It is expected that each experimenter will replace this field with their
196
- notes made during runtime."""
197
194
  experimenter_given_water_volume_ml: float = 0.0
198
195
  """The additional volume of water, in milliliters, administered by the experimenter to the animal after the session.
199
196
  """
@@ -203,6 +200,9 @@ class MesoscopeExperimentDescriptor(YamlConfig):
203
200
  incomplete: bool = False
204
201
  """If this field is set to True, the session is marked as 'incomplete' and automatically excluded from all further
205
202
  Sun lab automated processing and analysis."""
203
+ experimenter_notes: str = "Replace this with your notes."
204
+ """This field is not set during runtime. It is expected that each experimenter will replace this field with their
205
+ notes made during runtime."""
206
206
 
207
207
 
208
208
  @dataclass()
@@ -217,14 +217,14 @@ class WindowCheckingDescriptor(YamlConfig):
217
217
 
218
218
  experimenter: str
219
219
  """The ID of the experimenter running the session."""
220
- experimenter_notes: str = "Replace this with your notes."
221
- """The notes on the quality of the cranial window and animal's suitability for the target project."""
222
220
  surgery_quality: int = 0
223
221
  """The quality of the cranial window and surgical intervention on a scale from 0 (non-usable) to
224
222
  3 (high-tier publication grade) inclusive."""
225
223
  incomplete: bool = True
226
224
  """Window checking sessions are always considered 'incomplete', as they do not contain the full range of
227
225
  information collected as part of a 'standard' behavior training or experiment session."""
226
+ experimenter_notes: str = "Replace this with your notes."
227
+ """The notes on the quality of the cranial window and animal's suitability for the target project."""
228
228
 
229
229
 
230
230
  @dataclass()
@@ -56,10 +56,10 @@ class LickTrainingDescriptor(YamlConfig):
56
56
  maximum_unconsumed_rewards: int = ...
57
57
  dispensed_water_volume_ml: float = ...
58
58
  pause_dispensed_water_volume_ml: float = ...
59
- experimenter_notes: str = ...
60
59
  experimenter_given_water_volume_ml: float = ...
61
60
  preferred_session_water_volume_ml: float = ...
62
61
  incomplete: bool = ...
62
+ experimenter_notes: str = ...
63
63
 
64
64
  @dataclass()
65
65
  class RunTrainingDescriptor(YamlConfig):
@@ -80,10 +80,10 @@ class RunTrainingDescriptor(YamlConfig):
80
80
  maximum_idle_time_s: float = ...
81
81
  dispensed_water_volume_ml: float = ...
82
82
  pause_dispensed_water_volume_ml: float = ...
83
- experimenter_notes: str = ...
84
83
  experimenter_given_water_volume_ml: float = ...
85
84
  preferred_session_water_volume_ml: float = ...
86
85
  incomplete: bool = ...
86
+ experimenter_notes: str = ...
87
87
 
88
88
  @dataclass()
89
89
  class MesoscopeExperimentDescriptor(YamlConfig):
@@ -94,10 +94,10 @@ class MesoscopeExperimentDescriptor(YamlConfig):
94
94
  maximum_unconsumed_rewards: int = ...
95
95
  dispensed_water_volume_ml: float = ...
96
96
  pause_dispensed_water_volume_ml: float = ...
97
- experimenter_notes: str = ...
98
97
  experimenter_given_water_volume_ml: float = ...
99
98
  preferred_session_water_volume_ml: float = ...
100
99
  incomplete: bool = ...
100
+ experimenter_notes: str = ...
101
101
 
102
102
  @dataclass()
103
103
  class WindowCheckingDescriptor(YamlConfig):
@@ -110,9 +110,9 @@ class WindowCheckingDescriptor(YamlConfig):
110
110
  """
111
111
 
112
112
  experimenter: str
113
- experimenter_notes: str = ...
114
113
  surgery_quality: int = ...
115
114
  incomplete: bool = ...
115
+ experimenter_notes: str = ...
116
116
 
117
117
  @dataclass()
118
118
  class ZaberPositions(YamlConfig):
@@ -65,7 +65,7 @@ class ImplantData:
65
65
  """The descriptive name of the implant."""
66
66
  implant_target: str
67
67
  """The name of the brain region or cranium section targeted by the implant."""
68
- implant_code: int
68
+ implant_code: str
69
69
  """The manufacturer code or internal reference code for the implant. This code is used to identify the implant in
70
70
  additional datasheets and lab ordering documents."""
71
71
  implant_ap_coordinate_mm: float
@@ -89,7 +89,7 @@ class InjectionData:
89
89
  """The name of the brain region targeted by the injection."""
90
90
  injection_volume_nl: float
91
91
  """The volume of substance, in nanoliters, delivered during the injection."""
92
- injection_code: int
92
+ injection_code: str
93
93
  """The manufacturer code or internal reference code for the injected substance. This code is used to identify the
94
94
  substance in additional datasheets and lab ordering documents."""
95
95
  injection_ap_coordinate_mm: float
@@ -108,22 +108,22 @@ class DrugData:
108
108
 
109
109
  lactated_ringers_solution_volume_ml: float
110
110
  """Stores the volume of Lactated Ringer's Solution (LRS) administered during surgery, in ml."""
111
- lactated_ringers_solution_code: int
111
+ lactated_ringers_solution_code: str
112
112
  """Stores the manufacturer code or internal reference code for Lactated Ringer's Solution (LRS). This code is used
113
113
  to identify the LRS batch in additional datasheets and lab ordering documents."""
114
114
  ketoprofen_volume_ml: float
115
115
  """Stores the volume of ketoprofen diluted with saline administered during surgery, in ml."""
116
- ketoprofen_code: int
116
+ ketoprofen_code: str
117
117
  """Stores the manufacturer code or internal reference code for ketoprofen. This code is used to identify the
118
118
  ketoprofen batch in additional datasheets and lab ordering documents."""
119
119
  buprenorphine_volume_ml: float
120
120
  """Stores the volume of buprenorphine diluted with saline administered during surgery, in ml."""
121
- buprenorphine_code: int
121
+ buprenorphine_code: str
122
122
  """Stores the manufacturer code or internal reference code for buprenorphine. This code is used to identify the
123
123
  buprenorphine batch in additional datasheets and lab ordering documents."""
124
124
  dexamethasone_volume_ml: float
125
125
  """Stores the volume of dexamethasone diluted with saline administered during surgery, in ml."""
126
- dexamethasone_code: int
126
+ dexamethasone_code: str
127
127
  """Stores the manufacturer code or internal reference code for dexamethasone. This code is used to identify the
128
128
  dexamethasone batch in additional datasheets and lab ordering documents."""
129
129
 
@@ -37,7 +37,7 @@ class ImplantData:
37
37
 
38
38
  implant: str
39
39
  implant_target: str
40
- implant_code: int
40
+ implant_code: str
41
41
  implant_ap_coordinate_mm: float
42
42
  implant_ml_coordinate_mm: float
43
43
  implant_dv_coordinate_mm: float
@@ -52,7 +52,7 @@ class InjectionData:
52
52
  injection: str
53
53
  injection_target: str
54
54
  injection_volume_nl: float
55
- injection_code: int
55
+ injection_code: str
56
56
  injection_ap_coordinate_mm: float
57
57
  injection_ml_coordinate_mm: float
58
58
  injection_dv_coordinate_mm: float
@@ -64,13 +64,13 @@ class DrugData:
64
64
  """
65
65
 
66
66
  lactated_ringers_solution_volume_ml: float
67
- lactated_ringers_solution_code: int
67
+ lactated_ringers_solution_code: str
68
68
  ketoprofen_volume_ml: float
69
- ketoprofen_code: int
69
+ ketoprofen_code: str
70
70
  buprenorphine_volume_ml: float
71
- buprenorphine_code: int
71
+ buprenorphine_code: str
72
72
  dexamethasone_volume_ml: float
73
- dexamethasone_code: int
73
+ dexamethasone_code: str
74
74
 
75
75
  @dataclass
76
76
  class SurgeryData(YamlConfig):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sl-shared-assets
3
- Version: 4.0.0
3
+ Version: 4.0.1
4
4
  Summary: Provides data acquisition and processing assets shared between Sun (NeuroAI) lab libraries.
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/
@@ -713,16 +713,21 @@ Requires-Dist: ruff==0.12.7; extra == 'conda'
713
713
  Requires-Dist: sphinx-autodoc-typehints==3.2.0; extra == 'conda'
714
714
  Requires-Dist: sphinx-click==6.0.0; extra == 'conda'
715
715
  Requires-Dist: sphinx==8.2.3; extra == 'conda'
716
+ Requires-Dist: tox-uv==1.26.2; extra == 'conda'
717
+ Requires-Dist: tox==4.28.4; extra == 'conda'
716
718
  Requires-Dist: twine==6.1.0; extra == 'conda'
717
719
  Requires-Dist: types-appdirs==1.4.3.5; extra == 'conda'
718
720
  Requires-Dist: types-filelock==3.2.7; extra == 'conda'
719
721
  Requires-Dist: types-paramiko==3.5.0.20250801; extra == 'conda'
722
+ Requires-Dist: types-pytz==2025.2.0.20250516; extra == 'conda'
720
723
  Requires-Dist: types-tqdm==4.67.0.20250516; extra == 'conda'
724
+ Requires-Dist: uv==0.8.4; extra == 'conda'
721
725
  Provides-Extra: condarun
722
726
  Requires-Dist: appdirs==1.4.4; extra == 'condarun'
723
727
  Requires-Dist: filelock==3.18.0; extra == 'condarun'
724
728
  Requires-Dist: natsort==8.4.0; extra == 'condarun'
725
729
  Requires-Dist: numpy==2.2.6; extra == 'condarun'
730
+ Requires-Dist: polars==1.32.0; extra == 'condarun'
726
731
  Requires-Dist: pyarrow==21.0.0; extra == 'condarun'
727
732
  Requires-Dist: pytz==2025.2; extra == 'condarun'
728
733
  Requires-Dist: tqdm==4.67.1; extra == 'condarun'
@@ -752,10 +757,6 @@ Requires-Dist: ataraxis-automation==5.0.0; extra == 'noconda'
752
757
  Requires-Dist: build==1.3.0; extra == 'noconda'
753
758
  Requires-Dist: sphinx-rtd-dark-mode==1.3.0; extra == 'noconda'
754
759
  Requires-Dist: sphinx-rtd-theme==3.0.2; extra == 'noconda'
755
- Requires-Dist: tox-uv==1.26.2; extra == 'noconda'
756
- Requires-Dist: tox==4.28.4; extra == 'noconda'
757
- Requires-Dist: types-pytz==2025.2.0.20250516; extra == 'noconda'
758
- Requires-Dist: uv==0.8.4; extra == 'noconda'
759
760
  Description-Content-Type: text/markdown
760
761
 
761
762
  # sl-shared-assets
@@ -1,18 +1,18 @@
1
1
  sl_shared_assets/__init__.py,sha256=h4QBqUSvHTDYo9xJgfSzVwIRmH5RJEKgNPA0Hoy274Q,2611
2
2
  sl_shared_assets/__init__.pyi,sha256=rFWG-cUSrwlNyaxMX0LGR42WS4YE_Q5-PzPiYuum6V0,2996
3
- sl_shared_assets/cli.py,sha256=8c7OdJ5LSUMtSjzWqQ5i2JdO9hpOa7_b75dugqd0aQI,19828
3
+ sl_shared_assets/cli.py,sha256=pUebcXDlG47CAQnCGFSNBEKdpzeD8_zDRwg74LDkc04,19842
4
4
  sl_shared_assets/cli.pyi,sha256=_jErcrfdWROiZJm4QnZGQC85bw5FWKvs0LIwm3bR6nI,5408
5
5
  sl_shared_assets/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  sl_shared_assets/data_classes/__init__.py,sha256=BSWFbTavTAHZx1ss1EgNr16an9iUz5HDOq617HpVXNE,2143
7
7
  sl_shared_assets/data_classes/__init__.pyi,sha256=IgdbnAxhPGNmwjStwEZspvdBxm2aP67gX6eLlT_f8Ew,2463
8
8
  sl_shared_assets/data_classes/configuration_data.py,sha256=bmD9bICgRtsM2P1wSInUfjlmaT2ZjiOwPlo87EkYt8U,36361
9
9
  sl_shared_assets/data_classes/configuration_data.pyi,sha256=1_kmBDPGkHmVwXEGYR_3uERBSsenQOTuquMBtjKVTA8,11068
10
- sl_shared_assets/data_classes/runtime_data.py,sha256=BaGL-UX_Kgp-45sc8SoiQK-56Zjd-EwdtysFQ5TKYEw,17565
11
- sl_shared_assets/data_classes/runtime_data.pyi,sha256=SFZIN_rD2SzmOWW08_2Qp58rkn9_KRHyQlPjHyWVThY,6942
10
+ sl_shared_assets/data_classes/runtime_data.py,sha256=ruo5KZ1VSfGwSg_gtSyWTbLBFcfG7Az455cKxiUpDoc,17565
11
+ sl_shared_assets/data_classes/runtime_data.pyi,sha256=kCVSpS69goF-MRCZtp7EnoruTye64rjKsdPoDiC0PjU,6942
12
12
  sl_shared_assets/data_classes/session_data.py,sha256=MuzKQYILXJVCCNHzkLq9yrGAin4yj3bbiW4q8P0jmMk,51106
13
13
  sl_shared_assets/data_classes/session_data.pyi,sha256=KTQr0OXfeOk8eaUOsXW2-2UYjIjWcZSoW7Hv69l6JW0,20653
14
- sl_shared_assets/data_classes/surgery_data.py,sha256=eGrblvexcWLxAhF7Oy0UEihYqjRyXy0GfAdTkBFUlHw,7495
15
- sl_shared_assets/data_classes/surgery_data.pyi,sha256=KoTJZ5XQGXFiVCaI5NsGHAelLZhIPmxB7mPCl3GJeP0,2615
14
+ sl_shared_assets/data_classes/surgery_data.py,sha256=riwyULMdZ8pDXFLdyNByNSeMk1-mVTo1FcCl5FrThas,7495
15
+ sl_shared_assets/data_classes/surgery_data.pyi,sha256=3ILU5H_BUXEE9YXgPdVMC10jxivixPlJILBMg7OdEwc,2615
16
16
  sl_shared_assets/server/__init__.py,sha256=GOQ7wWjiS5Xg_WgTqeEqCTRF9ms9GXx0nffCr-BmKsA,453
17
17
  sl_shared_assets/server/__init__.pyi,sha256=Zc12G90fZdgEMwaVZbFzrRVV1wH_LEj3sxaV3lhk1Cw,316
18
18
  sl_shared_assets/server/job.py,sha256=wZbppMrv6fqch79bKLjOGQ9AYfjiDKDnTyUe7xgAT44,19461
@@ -29,8 +29,8 @@ sl_shared_assets/tools/project_management_tools.py,sha256=9A133D38BkvRX_tXGS5-o6
29
29
  sl_shared_assets/tools/project_management_tools.pyi,sha256=NwmqHwSC0uu8vxtHDA7BTv1dneibj7MErE4XHeGRQTI,13251
30
30
  sl_shared_assets/tools/transfer_tools.py,sha256=vqYO4sERZV0W1DFNFnTpJA6QBZ4QJA94a2TyUhZW2Qk,6605
31
31
  sl_shared_assets/tools/transfer_tools.pyi,sha256=WtUGfaKV9FP_CnhBg_UvclpuDvOlEESOSMlEDtWpOLg,3293
32
- sl_shared_assets-4.0.0.dist-info/METADATA,sha256=3QtSJ8Jn8tH6dPHswpWI-T_puE45dAzdl3zbMsnLkAA,56898
33
- sl_shared_assets-4.0.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
34
- sl_shared_assets-4.0.0.dist-info/entry_points.txt,sha256=UmO1rl7ly9N7HWPwWyP9E0b5KBUStpBo4TRoqNtizDY,430
35
- sl_shared_assets-4.0.0.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
36
- sl_shared_assets-4.0.0.dist-info/RECORD,,
32
+ sl_shared_assets-4.0.1.dist-info/METADATA,sha256=KzF2ukjsxK_Sef1sUbSBLeR_7mzvLaPkN9zr4kgheRw,56941
33
+ sl_shared_assets-4.0.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
34
+ sl_shared_assets-4.0.1.dist-info/entry_points.txt,sha256=UmO1rl7ly9N7HWPwWyP9E0b5KBUStpBo4TRoqNtizDY,430
35
+ sl_shared_assets-4.0.1.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
36
+ sl_shared_assets-4.0.1.dist-info/RECORD,,