sl-shared-assets 3.0.0rc1__py3-none-any.whl → 3.0.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.

@@ -4,7 +4,7 @@ restore the data acquisition and runtime management system to the same state acr
4
4
  the same animal.
5
5
  """
6
6
 
7
- from dataclasses import dataclass
7
+ from dataclasses import field, dataclass
8
8
 
9
9
  from ataraxis_data_structures import YamlConfig
10
10
 
@@ -88,7 +88,7 @@ class LickTrainingDescriptor(YamlConfig):
88
88
  """The weight of the animal, in grams, at the beginning of the session."""
89
89
  dispensed_water_volume_ml: float
90
90
  """Stores the total water volume, in milliliters, dispensed during runtime."""
91
- minimum_reward_delay: int
91
+ minimum_reward_delay_s: int
92
92
  """Stores the minimum delay, in seconds, that can separate the delivery of two consecutive water rewards."""
93
93
  maximum_reward_delay_s: int
94
94
  """Stores the maximum delay, in seconds, that can separate the delivery of two consecutive water rewards."""
@@ -100,6 +100,11 @@ class LickTrainingDescriptor(YamlConfig):
100
100
  """Stores the maximum number of consecutive rewards that can be delivered without the animal consuming them. If
101
101
  the animal receives this many rewards without licking (consuming) them, reward delivery is paused until the animal
102
102
  consumes the rewards."""
103
+ system_state_codes: dict[str, int] = field(
104
+ default_factory=lambda: {"idle": 0, "rest": 1, "run": 2, "lick training": 3, "run training": 4}
105
+ )
106
+ """Maps integer state-codes used by the acquisition system to communicate its states to human-readable state
107
+ names."""
103
108
  experimenter_notes: str = "Replace this with your notes."
104
109
  """This field is not set during runtime. It is expected that each experimenter replaces this field with their
105
110
  notes made during runtime."""
@@ -150,6 +155,11 @@ class RunTrainingDescriptor(YamlConfig):
150
155
  """Stores the maximum time, in seconds, the animal can dip below the running speed threshold to still receive the
151
156
  reward. This allows animals that 'run' by taking a series of large steps, briefly dipping below speed threshold at
152
157
  the end of each step, to still get water rewards."""
158
+ system_state_codes: dict[str, int] = field(
159
+ default_factory=lambda: {"idle": 0, "rest": 1, "run": 2, "lick training": 3, "run training": 4}
160
+ )
161
+ """Maps integer state-codes used by the acquisition system to communicate its states to human-readable state
162
+ names."""
153
163
  experimenter_notes: str = "Replace this with your notes."
154
164
  """This field is not set during runtime. It is expected that each experimenter will replace this field with their
155
165
  notes made during runtime."""
@@ -175,6 +185,11 @@ class MesoscopeExperimentDescriptor(YamlConfig):
175
185
  """Stores the maximum number of consecutive rewards that can be delivered without the animal consuming them. If
176
186
  the animal receives this many rewards without licking (consuming) them, reward delivery is paused until the animal
177
187
  consumes the rewards."""
188
+ system_state_codes: dict[str, int] = field(
189
+ default_factory=lambda: {"idle": 0, "rest": 1, "run": 2, "lick training": 3, "run training": 4}
190
+ )
191
+ """Maps integer state-codes used by the acquisition system to communicate its states to human-readable state
192
+ names."""
178
193
  experimenter_notes: str = "Replace this with your notes."
179
194
  """This field is not set during runtime. It is expected that each experimenter will replace this field with their
180
195
  notes made during runtime."""
@@ -1,5 +1,6 @@
1
- from dataclasses import dataclass
1
+ from dataclasses import field, dataclass
2
2
 
3
+ from _typeshed import Incomplete
3
4
  from ataraxis_data_structures import YamlConfig
4
5
 
5
6
  @dataclass()
@@ -50,11 +51,12 @@ class LickTrainingDescriptor(YamlConfig):
50
51
  experimenter: str
51
52
  mouse_weight_g: float
52
53
  dispensed_water_volume_ml: float
53
- minimum_reward_delay: int
54
+ minimum_reward_delay_s: int
54
55
  maximum_reward_delay_s: int
55
56
  maximum_water_volume_ml: float
56
57
  maximum_training_time_m: int
57
58
  maximum_unconsumed_rewards: int = ...
59
+ system_state_codes: dict[str, int] = field(default_factory=Incomplete)
58
60
  experimenter_notes: str = ...
59
61
  experimenter_given_water_volume_ml: float = ...
60
62
  incomplete: bool = ...
@@ -77,6 +79,7 @@ class RunTrainingDescriptor(YamlConfig):
77
79
  maximum_training_time_m: int
78
80
  maximum_unconsumed_rewards: int = ...
79
81
  maximum_idle_time_s: float = ...
82
+ system_state_codes: dict[str, int] = field(default_factory=Incomplete)
80
83
  experimenter_notes: str = ...
81
84
  experimenter_given_water_volume_ml: float = ...
82
85
  incomplete: bool = ...
@@ -89,6 +92,7 @@ class MesoscopeExperimentDescriptor(YamlConfig):
89
92
  mouse_weight_g: float
90
93
  dispensed_water_volume_ml: float
91
94
  maximum_unconsumed_rewards: int = ...
95
+ system_state_codes: dict[str, int] = field(default_factory=Incomplete)
92
96
  experimenter_notes: str = ...
93
97
  experimenter_given_water_volume_ml: float = ...
94
98
  incomplete: bool = ...
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sl-shared-assets
3
- Version: 3.0.0rc1
3
+ Version: 3.0.0rc2
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/
@@ -7,8 +7,8 @@ sl_shared_assets/data_classes/__init__.py,sha256=ixn972b-3URCinVLRPjMfDXpO2w24_N
7
7
  sl_shared_assets/data_classes/__init__.pyi,sha256=bDBLkyhlosB4t09GxHBNKH0kaVBhHSY_j-i3MD2iKVo,2088
8
8
  sl_shared_assets/data_classes/configuration_data.py,sha256=h6o7Uaz2HZjV-9-wc5iz5xfkhVpPWPrncU8VU7_AeB8,30587
9
9
  sl_shared_assets/data_classes/configuration_data.pyi,sha256=fb12sdDuYJtfEurzbg6WcCU0NIm1mudsgsGdUVFTajQ,10305
10
- sl_shared_assets/data_classes/runtime_data.py,sha256=TpqT2lRNq6fJyOgwXEqqI1gfTinEpCVTp8RKlvfqgkk,15789
11
- sl_shared_assets/data_classes/runtime_data.pyi,sha256=o_eLLHWoAp_w58C2YEIeSHCD36ZYsTsCllRUEIxusSo,6660
10
+ sl_shared_assets/data_classes/runtime_data.py,sha256=V98VSUHBFiqRngHAYtH6r6X_zDht65wi9TpdbbYAhS8,16656
11
+ sl_shared_assets/data_classes/runtime_data.pyi,sha256=zATWUIP0whD0iRpxkvt78cLL_Ajr-d_9C6goHdTLnSw,6927
12
12
  sl_shared_assets/data_classes/session_data.py,sha256=0dNv_49WJeUf5IYgbGMWnMwX3aAYPIv7u8OJM5itIJA,50673
13
13
  sl_shared_assets/data_classes/session_data.pyi,sha256=8EqaQbydl2fwDFBMDh77fbSd7os2t0x9GwDJYYsPtLY,16400
14
14
  sl_shared_assets/data_classes/surgery_data.py,sha256=qsMj3NkjhylAT9b_wHBY-1XwTu2xsZcZatdECmkA7Bs,7437
@@ -29,8 +29,8 @@ sl_shared_assets/tools/project_management_tools.py,sha256=Z_U0R26w9Le1O-u66gyF5C
29
29
  sl_shared_assets/tools/project_management_tools.pyi,sha256=4kok98nOZ4KnT-Sg-ZCZYg-WIM5qZqiyK8g1XiiDjHM,10375
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-3.0.0rc1.dist-info/METADATA,sha256=HNDv3CbPB27Vv-hfHohnB2h1IzdHwDX4Qolq58uWwlw,49309
33
- sl_shared_assets-3.0.0rc1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
34
- sl_shared_assets-3.0.0rc1.dist-info/entry_points.txt,sha256=UmO1rl7ly9N7HWPwWyP9E0b5KBUStpBo4TRoqNtizDY,430
35
- sl_shared_assets-3.0.0rc1.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
36
- sl_shared_assets-3.0.0rc1.dist-info/RECORD,,
32
+ sl_shared_assets-3.0.0rc2.dist-info/METADATA,sha256=mCoBnEMzF796sZr6H6yqwY0N-T46sSWNoJXg29x0FZ4,49309
33
+ sl_shared_assets-3.0.0rc2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
34
+ sl_shared_assets-3.0.0rc2.dist-info/entry_points.txt,sha256=UmO1rl7ly9N7HWPwWyP9E0b5KBUStpBo4TRoqNtizDY,430
35
+ sl_shared_assets-3.0.0rc2.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
36
+ sl_shared_assets-3.0.0rc2.dist-info/RECORD,,