murineshiftwork 2.16.1__tar.gz → 2.16.2__tar.gz

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.
Files changed (56) hide show
  1. murineshiftwork-2.16.2/LICENSE +35 -0
  2. {murineshiftwork-2.16.1 → murineshiftwork-2.16.2}/PKG-INFO +32 -27
  3. murineshiftwork-2.16.2/VERSION +1 -0
  4. {murineshiftwork-2.16.1 → murineshiftwork-2.16.2}/pyproject.toml +5 -2
  5. {murineshiftwork-2.16.1 → murineshiftwork-2.16.2}/tests/test_hardware_manager.py +5 -1
  6. {murineshiftwork-2.16.1 → murineshiftwork-2.16.2}/tests/test_preflight_and_pipeline.py +2 -2
  7. murineshiftwork-2.16.1/LICENSE +0 -31
  8. murineshiftwork-2.16.1/VERSION +0 -1
  9. {murineshiftwork-2.16.1 → murineshiftwork-2.16.2}/.gitignore +0 -0
  10. {murineshiftwork-2.16.1 → murineshiftwork-2.16.2}/CITATION.cff +0 -0
  11. {murineshiftwork-2.16.1 → murineshiftwork-2.16.2}/README.md +0 -0
  12. {murineshiftwork-2.16.1 → murineshiftwork-2.16.2}/src/murineshiftwork/py.typed +0 -0
  13. {murineshiftwork-2.16.1 → murineshiftwork-2.16.2}/tests/conftest.py +0 -0
  14. {murineshiftwork-2.16.1 → murineshiftwork-2.16.2}/tests/data/fixture_fixedsubjects/_test_subject__20260518_121602_710824__probabilistic_switching_fixedsubjects.msw.csv +0 -0
  15. {murineshiftwork-2.16.1 → murineshiftwork-2.16.2}/tests/data/fixture_fixedsubjects/_test_subject__20260518_121602_710824__probabilistic_switching_fixedsubjects.msw.df.jsonl +0 -0
  16. {murineshiftwork-2.16.1 → murineshiftwork-2.16.2}/tests/data/fixture_fixedsubjects/_test_subject__20260518_121602_710824__probabilistic_switching_fixedsubjects.msw.session.yaml +0 -0
  17. {murineshiftwork-2.16.1 → murineshiftwork-2.16.2}/tests/data/fixture_jsonl/subject001__20260508_172956_258756__probabilistic_switching_fixedsubjects.msw.csv +0 -0
  18. {murineshiftwork-2.16.1 → murineshiftwork-2.16.2}/tests/data/fixture_jsonl/subject001__20260508_172956_258756__probabilistic_switching_fixedsubjects.msw.df.jsonl +0 -0
  19. {murineshiftwork-2.16.1 → murineshiftwork-2.16.2}/tests/data/fixture_jsonl/subject001__20260508_172956_258756__probabilistic_switching_fixedsubjects.msw.settings.process.json +0 -0
  20. {murineshiftwork-2.16.1 → murineshiftwork-2.16.2}/tests/data/fixture_jsonl/subject001__20260508_172956_258756__probabilistic_switching_fixedsubjects.msw.settings.task.json +0 -0
  21. {murineshiftwork-2.16.1 → murineshiftwork-2.16.2}/tests/data/fixture_legacy/subject003__20210426_183409__probabilistic_switching/subject003__20210426_183409__probabilistic_switching.pkl +0 -0
  22. {murineshiftwork-2.16.1 → murineshiftwork-2.16.2}/tests/data/fixture_legacy/subject003__20210426_183409__probabilistic_switching/subject003__20210426_183409__probabilistic_switching.task_settings.py +0 -0
  23. {murineshiftwork-2.16.1 → murineshiftwork-2.16.2}/tests/data/fixture_optotagging/_test_subject__20260527_133053_901389__optotagging/_test_subject__20260527_133053_901389__optotagging.msw.session.yaml +0 -0
  24. {murineshiftwork-2.16.1 → murineshiftwork-2.16.2}/tests/data/fixture_optotagging/_test_subject__20260527_133053_901389__optotagging/_test_subject__20260527_133053_901389__optotagging_power_ramp_1mw.msw.df.jsonl +0 -0
  25. {murineshiftwork-2.16.1 → murineshiftwork-2.16.2}/tests/data/fixture_optotagging/_test_subject__20260527_133053_901389__optotagging/_test_subject__20260527_133053_901389__optotagging_power_ramp_2mw.msw.csv +0 -0
  26. {murineshiftwork-2.16.1 → murineshiftwork-2.16.2}/tests/data/fixture_optotagging/_test_subject__20260527_133053_901389__optotagging/session_manifest.yaml +0 -0
  27. {murineshiftwork-2.16.1 → murineshiftwork-2.16.2}/tests/data/fixture_pkl/subject002__20260429_153653__probabilistic_switching_fixedsubjects.msw.csv +0 -0
  28. {murineshiftwork-2.16.1 → murineshiftwork-2.16.2}/tests/data/fixture_pkl/subject002__20260429_153653__probabilistic_switching_fixedsubjects.msw.df.pkl +0 -0
  29. {murineshiftwork-2.16.1 → murineshiftwork-2.16.2}/tests/data/fixture_pkl/subject002__20260429_153653__probabilistic_switching_fixedsubjects.msw.settings.process.json +0 -0
  30. {murineshiftwork-2.16.1 → murineshiftwork-2.16.2}/tests/data/fixture_pkl/subject002__20260429_153653__probabilistic_switching_fixedsubjects.msw.settings.task.json +0 -0
  31. {murineshiftwork-2.16.1 → murineshiftwork-2.16.2}/tests/data/fixture_sequence/_test_subject__20260520_114516_534465__sequence.msw.csv +0 -0
  32. {murineshiftwork-2.16.1 → murineshiftwork-2.16.2}/tests/data/fixture_sequence/_test_subject__20260520_114516_534465__sequence.msw.df.jsonl +0 -0
  33. {murineshiftwork-2.16.1 → murineshiftwork-2.16.2}/tests/data/fixture_sequence/_test_subject__20260520_114516_534465__sequence.msw.session.yaml +0 -0
  34. {murineshiftwork-2.16.1 → murineshiftwork-2.16.2}/tests/data/fixture_v2/_test_subject__20260516_130611_739182__probabilistic_switching_fixedsubjects.msw.csv +0 -0
  35. {murineshiftwork-2.16.1 → murineshiftwork-2.16.2}/tests/data/fixture_v2/_test_subject__20260516_130611_739182__probabilistic_switching_fixedsubjects.msw.df.jsonl +0 -0
  36. {murineshiftwork-2.16.1 → murineshiftwork-2.16.2}/tests/data/fixture_v2/_test_subject__20260516_130611_739182__probabilistic_switching_fixedsubjects.msw.session.yaml +0 -0
  37. {murineshiftwork-2.16.1 → murineshiftwork-2.16.2}/tests/data/namespace.v1.yaml +0 -0
  38. {murineshiftwork-2.16.1 → murineshiftwork-2.16.2}/tests/data/namespace.v2.yaml +0 -0
  39. {murineshiftwork-2.16.1 → murineshiftwork-2.16.2}/tests/data/namespace.v3.yaml +0 -0
  40. {murineshiftwork-2.16.1 → murineshiftwork-2.16.2}/tests/test_calibration_outliers.py +0 -0
  41. {murineshiftwork-2.16.1 → murineshiftwork-2.16.2}/tests/test_calibration_tasks_sim.py +0 -0
  42. {murineshiftwork-2.16.1 → murineshiftwork-2.16.2}/tests/test_cli_entrypoints.py +0 -0
  43. {murineshiftwork-2.16.1 → murineshiftwork-2.16.2}/tests/test_cli_evaluate.py +0 -0
  44. {murineshiftwork-2.16.1 → murineshiftwork-2.16.2}/tests/test_config_io.py +0 -0
  45. {murineshiftwork-2.16.1 → murineshiftwork-2.16.2}/tests/test_config_models.py +0 -0
  46. {murineshiftwork-2.16.1 → murineshiftwork-2.16.2}/tests/test_hooks.py +0 -0
  47. {murineshiftwork-2.16.1 → murineshiftwork-2.16.2}/tests/test_host_session.py +0 -0
  48. {murineshiftwork-2.16.1 → murineshiftwork-2.16.2}/tests/test_integration_deps.py +0 -0
  49. {murineshiftwork-2.16.1 → murineshiftwork-2.16.2}/tests/test_logagent.py +0 -0
  50. {murineshiftwork-2.16.1 → murineshiftwork-2.16.2}/tests/test_namespace_readiness.py +0 -0
  51. {murineshiftwork-2.16.1 → murineshiftwork-2.16.2}/tests/test_plot_spec.py +0 -0
  52. {murineshiftwork-2.16.1 → murineshiftwork-2.16.2}/tests/test_post_and_action.py +0 -0
  53. {murineshiftwork-2.16.1 → murineshiftwork-2.16.2}/tests/test_session_yaml_serialization.py +0 -0
  54. {murineshiftwork-2.16.1 → murineshiftwork-2.16.2}/tests/test_sim_hardware.py +0 -0
  55. {murineshiftwork-2.16.1 → murineshiftwork-2.16.2}/tests/test_task_discovery.py +0 -0
  56. {murineshiftwork-2.16.1 → murineshiftwork-2.16.2}/tests/test_taskrunner_paths.py +0 -0
@@ -0,0 +1,35 @@
1
+ BSD-3-Clause-NonCommercial
2
+
3
+ Copyright (c) 2020-present, Lars B. Rollik.
4
+ All rights reserved.
5
+
6
+ Redistribution and use in source and binary forms, with or without
7
+ modification, are permitted for NON-COMMERCIAL research, academic, and
8
+ educational purposes only, provided that the following conditions are met:
9
+
10
+ 1. Redistributions of source code must retain the above copyright notice,
11
+ this list of conditions and the following disclaimer.
12
+
13
+ 2. Redistributions in binary form must reproduce the above copyright notice,
14
+ this list of conditions and the following disclaimer in the documentation
15
+ and/or other materials provided with the distribution.
16
+
17
+ 3. Neither the name of the copyright holder nor the names of its contributors
18
+ may be used to endorse or promote products derived from this software
19
+ without specific prior written permission.
20
+
21
+ 4. Any use of this software or its derivatives for COMMERCIAL purposes -
22
+ including sale, paid licensing, or providing paid services built on it -
23
+ requires a separate commercial licence. Contact lars@rollik.me.
24
+
25
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
29
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
35
+ POSSIBILITY OF SUCH DAMAGE.
@@ -1,46 +1,51 @@
1
- Metadata-Version: 2.4
1
+ Metadata-Version: 2.5
2
2
  Name: murineshiftwork
3
- Version: 2.16.1
3
+ Version: 2.16.2
4
4
  Summary: Behaviour acquisition framework for standardised, scalable experiments.
5
5
  Project-URL: Homepage, https://github.com/MurineShiftWork/murineshiftwork
6
6
  Project-URL: Documentation, https://MurineShiftWork.github.io/murineshiftwork/
7
7
  Project-URL: Issue Tracker, https://github.com/MurineShiftWork/murineshiftwork/issues
8
8
  Author-email: "Lars B. Rollik" <lars@rollik.me>
9
- License: Copyright (c) 2020-present Lars B. Rollik. All rights reserved.
9
+ License: BSD-3-Clause-NonCommercial
10
10
 
11
- Permission is granted, free of charge, to use, copy, modify, and distribute
12
- this software and associated documentation files (the "Software") for
13
- non-commercial research or academic purposes only, subject to the following
14
- conditions:
11
+ Copyright (c) 2020-present, Lars B. Rollik.
12
+ All rights reserved.
15
13
 
16
- 1. This copyright notice and permission notice must be included in all copies
17
- or substantial portions of the Software.
14
+ Redistribution and use in source and binary forms, with or without
15
+ modification, are permitted for NON-COMMERCIAL research, academic, and
16
+ educational purposes only, provided that the following conditions are met:
18
17
 
19
- 2. Any publication, presentation, or product that uses or builds upon the
20
- Software must give clear attribution to the original work and its authors.
18
+ 1. Redistributions of source code must retain the above copyright notice,
19
+ this list of conditions and the following disclaimer.
21
20
 
22
- 3. Commercial use is prohibited without a separate written commercial licence
23
- agreement with the copyright holder. Commercial use means incorporation of
24
- the Software into anything for which fees or other compensation are charged
25
- or received, including commercial products and commercial services.
21
+ 2. Redistributions in binary form must reproduce the above copyright notice,
22
+ this list of conditions and the following disclaimer in the documentation
23
+ and/or other materials provided with the distribution.
26
24
 
27
- 4. No patent licence, express or implied, is granted under these terms. Any
28
- use that would require a patent licence from the copyright holder requires
29
- a separate written agreement.
25
+ 3. Neither the name of the copyright holder nor the names of its contributors
26
+ may be used to endorse or promote products derived from this software
27
+ without specific prior written permission.
30
28
 
31
- 5. Redistribution, in source or binary form, is permitted only for
32
- non-commercial purposes and must retain this notice unmodified.
29
+ 4. Any use of this software or its derivatives for COMMERCIAL purposes -
30
+ including sale, paid licensing, or providing paid services built on it -
31
+ requires a separate commercial licence. Contact lars@rollik.me.
33
32
 
34
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
35
- IMPLIED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM,
36
- DAMAGES, OR OTHER LIABILITY ARISING FROM, OUT OF, OR IN CONNECTION WITH THE
37
- SOFTWARE OR THE USE OR DEALINGS IN THE SOFTWARE.
38
-
39
- For commercial or patent licensing enquiries contact: lars@rollik.me
33
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
34
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
35
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
36
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
37
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
38
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
39
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
40
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
41
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
42
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
43
+ POSSIBILITY OF SUCH DAMAGE.
40
44
  License-File: LICENSE
45
+ Classifier: License :: Free for non-commercial use
41
46
  Requires-Python: <3.14,>=3.12
42
47
  Requires-Dist: ipython>=9.14.1
43
- Requires-Dist: msw-core>=0.12.1
48
+ Requires-Dist: msw-core>=0.15.0
44
49
  Requires-Dist: msw-io>=1.10.0
45
50
  Requires-Dist: plotly>=5.0
46
51
  Requires-Dist: pyarrow>=24.0.0
@@ -0,0 +1 @@
1
+ 2.16.2
@@ -8,12 +8,15 @@ dynamic = ["version"]
8
8
  description = "Behaviour acquisition framework for standardised, scalable experiments."
9
9
  readme = { file = "README.md", content-type = "text/markdown" }
10
10
  license = { file = "LICENSE" }
11
+ classifiers = [
12
+ "License :: Free for non-commercial use",
13
+ ]
11
14
  authors = [
12
15
  { name = "Lars B. Rollik", email = "lars@rollik.me" },
13
16
  ]
14
17
  requires-python = ">=3.12,<3.14"
15
18
  dependencies = [
16
- "msw-core>=0.12.1",
19
+ "msw-core>=0.15.0",
17
20
  "msw-io>=1.10.0",
18
21
  "tqdm",
19
22
  "plotly>=5.0",
@@ -141,7 +144,7 @@ include = [
141
144
  [tool.commitizen]
142
145
  name = "cz_conventional_commits"
143
146
  version_provider = "commitizen"
144
- version = "2.16.1"
147
+ version = "2.16.2"
145
148
  tag_format = "v$version"
146
149
  update_changelog_on_bump = false
147
150
  version_files = ["VERSION"]
@@ -265,7 +265,11 @@ class TestBpodDevice:
265
265
  MockFactory.return_value = MagicMock()
266
266
  dev.connect()
267
267
  MockFactory.assert_called_once_with(
268
- serial_port=str(port), connect_retries=5, retry_delay_s=0.1
268
+ serial_port=str(port),
269
+ workspace_path=None,
270
+ session_name=None,
271
+ connect_retries=5,
272
+ retry_delay_s=0.1,
269
273
  )
270
274
 
271
275
 
@@ -285,7 +285,7 @@ def test_preflight_fails_on_bad_bpod_port(tmp_path):
285
285
  preflight_hardware_check as _preflight_hardware_check,
286
286
  )
287
287
 
288
- with pytest.raises(RuntimeError, match="Bpod serial port not accessible"):
288
+ with pytest.raises(RuntimeError, match="bpod serial port not accessible"):
289
289
  _preflight_hardware_check(
290
290
  {
291
291
  "debug": False,
@@ -358,7 +358,7 @@ def test_preflight_collects_multiple_errors(tmp_path):
358
358
  }
359
359
  )
360
360
  msg = str(exc_info.value)
361
- assert "Bpod" in msg
361
+ assert "bpod" in msg
362
362
  assert "Camera" in msg
363
363
 
364
364
 
@@ -1,31 +0,0 @@
1
- Copyright (c) 2020-present Lars B. Rollik. All rights reserved.
2
-
3
- Permission is granted, free of charge, to use, copy, modify, and distribute
4
- this software and associated documentation files (the "Software") for
5
- non-commercial research or academic purposes only, subject to the following
6
- conditions:
7
-
8
- 1. This copyright notice and permission notice must be included in all copies
9
- or substantial portions of the Software.
10
-
11
- 2. Any publication, presentation, or product that uses or builds upon the
12
- Software must give clear attribution to the original work and its authors.
13
-
14
- 3. Commercial use is prohibited without a separate written commercial licence
15
- agreement with the copyright holder. Commercial use means incorporation of
16
- the Software into anything for which fees or other compensation are charged
17
- or received, including commercial products and commercial services.
18
-
19
- 4. No patent licence, express or implied, is granted under these terms. Any
20
- use that would require a patent licence from the copyright holder requires
21
- a separate written agreement.
22
-
23
- 5. Redistribution, in source or binary form, is permitted only for
24
- non-commercial purposes and must retain this notice unmodified.
25
-
26
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
27
- IMPLIED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM,
28
- DAMAGES, OR OTHER LIABILITY ARISING FROM, OUT OF, OR IN CONNECTION WITH THE
29
- SOFTWARE OR THE USE OR DEALINGS IN THE SOFTWARE.
30
-
31
- For commercial or patent licensing enquiries contact: lars@rollik.me
@@ -1 +0,0 @@
1
- 2.16.1