murineshiftwork 2.16.4__tar.gz → 2.16.6__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 (53) hide show
  1. {murineshiftwork-2.16.4 → murineshiftwork-2.16.6}/LICENSE +1 -1
  2. {murineshiftwork-2.16.4 → murineshiftwork-2.16.6}/PKG-INFO +17 -13
  3. murineshiftwork-2.16.6/VERSION +1 -0
  4. {murineshiftwork-2.16.4 → murineshiftwork-2.16.6}/pyproject.toml +13 -9
  5. {murineshiftwork-2.16.4 → murineshiftwork-2.16.6}/tests/test_cli_evaluate.py +2 -1
  6. {murineshiftwork-2.16.4 → murineshiftwork-2.16.6}/tests/test_host_session.py +3 -1
  7. {murineshiftwork-2.16.4 → murineshiftwork-2.16.6}/tests/test_logagent.py +1 -5
  8. murineshiftwork-2.16.4/VERSION +0 -1
  9. {murineshiftwork-2.16.4 → murineshiftwork-2.16.6}/.gitignore +0 -0
  10. {murineshiftwork-2.16.4 → murineshiftwork-2.16.6}/CITATION.cff +0 -0
  11. {murineshiftwork-2.16.4 → murineshiftwork-2.16.6}/README.md +0 -0
  12. {murineshiftwork-2.16.4 → murineshiftwork-2.16.6}/src/murineshiftwork/py.typed +0 -0
  13. {murineshiftwork-2.16.4 → murineshiftwork-2.16.6}/tests/conftest.py +0 -0
  14. {murineshiftwork-2.16.4 → murineshiftwork-2.16.6}/tests/data/fixture_fixedsubjects/_test_subject__20260518_121602_710824__probabilistic_switching_fixedsubjects.msw.csv +0 -0
  15. {murineshiftwork-2.16.4 → murineshiftwork-2.16.6}/tests/data/fixture_fixedsubjects/_test_subject__20260518_121602_710824__probabilistic_switching_fixedsubjects.msw.df.jsonl +0 -0
  16. {murineshiftwork-2.16.4 → murineshiftwork-2.16.6}/tests/data/fixture_fixedsubjects/_test_subject__20260518_121602_710824__probabilistic_switching_fixedsubjects.msw.session.yaml +0 -0
  17. {murineshiftwork-2.16.4 → murineshiftwork-2.16.6}/tests/data/fixture_jsonl/subject001__20260508_172956_258756__probabilistic_switching_fixedsubjects.msw.csv +0 -0
  18. {murineshiftwork-2.16.4 → murineshiftwork-2.16.6}/tests/data/fixture_jsonl/subject001__20260508_172956_258756__probabilistic_switching_fixedsubjects.msw.df.jsonl +0 -0
  19. {murineshiftwork-2.16.4 → murineshiftwork-2.16.6}/tests/data/fixture_jsonl/subject001__20260508_172956_258756__probabilistic_switching_fixedsubjects.msw.settings.process.json +0 -0
  20. {murineshiftwork-2.16.4 → murineshiftwork-2.16.6}/tests/data/fixture_jsonl/subject001__20260508_172956_258756__probabilistic_switching_fixedsubjects.msw.settings.task.json +0 -0
  21. {murineshiftwork-2.16.4 → murineshiftwork-2.16.6}/tests/data/fixture_legacy/subject003__20210426_183409__probabilistic_switching/subject003__20210426_183409__probabilistic_switching.pkl +0 -0
  22. {murineshiftwork-2.16.4 → murineshiftwork-2.16.6}/tests/data/fixture_legacy/subject003__20210426_183409__probabilistic_switching/subject003__20210426_183409__probabilistic_switching.task_settings.py +0 -0
  23. {murineshiftwork-2.16.4 → murineshiftwork-2.16.6}/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.4 → murineshiftwork-2.16.6}/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.4 → murineshiftwork-2.16.6}/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.4 → murineshiftwork-2.16.6}/tests/data/fixture_optotagging/_test_subject__20260527_133053_901389__optotagging/session_manifest.yaml +0 -0
  27. {murineshiftwork-2.16.4 → murineshiftwork-2.16.6}/tests/data/fixture_pkl/subject002__20260429_153653__probabilistic_switching_fixedsubjects.msw.csv +0 -0
  28. {murineshiftwork-2.16.4 → murineshiftwork-2.16.6}/tests/data/fixture_pkl/subject002__20260429_153653__probabilistic_switching_fixedsubjects.msw.df.pkl +0 -0
  29. {murineshiftwork-2.16.4 → murineshiftwork-2.16.6}/tests/data/fixture_pkl/subject002__20260429_153653__probabilistic_switching_fixedsubjects.msw.settings.process.json +0 -0
  30. {murineshiftwork-2.16.4 → murineshiftwork-2.16.6}/tests/data/fixture_pkl/subject002__20260429_153653__probabilistic_switching_fixedsubjects.msw.settings.task.json +0 -0
  31. {murineshiftwork-2.16.4 → murineshiftwork-2.16.6}/tests/data/fixture_sequence/_test_subject__20260520_114516_534465__sequence.msw.csv +0 -0
  32. {murineshiftwork-2.16.4 → murineshiftwork-2.16.6}/tests/data/fixture_sequence/_test_subject__20260520_114516_534465__sequence.msw.df.jsonl +0 -0
  33. {murineshiftwork-2.16.4 → murineshiftwork-2.16.6}/tests/data/fixture_sequence/_test_subject__20260520_114516_534465__sequence.msw.session.yaml +0 -0
  34. {murineshiftwork-2.16.4 → murineshiftwork-2.16.6}/tests/data/fixture_v2/_test_subject__20260516_130611_739182__probabilistic_switching_fixedsubjects.msw.csv +0 -0
  35. {murineshiftwork-2.16.4 → murineshiftwork-2.16.6}/tests/data/fixture_v2/_test_subject__20260516_130611_739182__probabilistic_switching_fixedsubjects.msw.df.jsonl +0 -0
  36. {murineshiftwork-2.16.4 → murineshiftwork-2.16.6}/tests/data/fixture_v2/_test_subject__20260516_130611_739182__probabilistic_switching_fixedsubjects.msw.session.yaml +0 -0
  37. {murineshiftwork-2.16.4 → murineshiftwork-2.16.6}/tests/data/namespace.v1.yaml +0 -0
  38. {murineshiftwork-2.16.4 → murineshiftwork-2.16.6}/tests/data/namespace.v2.yaml +0 -0
  39. {murineshiftwork-2.16.4 → murineshiftwork-2.16.6}/tests/data/namespace.v3.yaml +0 -0
  40. {murineshiftwork-2.16.4 → murineshiftwork-2.16.6}/tests/test_calibration_outliers.py +0 -0
  41. {murineshiftwork-2.16.4 → murineshiftwork-2.16.6}/tests/test_calibration_tasks_sim.py +0 -0
  42. {murineshiftwork-2.16.4 → murineshiftwork-2.16.6}/tests/test_cli_entrypoints.py +0 -0
  43. {murineshiftwork-2.16.4 → murineshiftwork-2.16.6}/tests/test_config_io.py +0 -0
  44. {murineshiftwork-2.16.4 → murineshiftwork-2.16.6}/tests/test_config_models.py +0 -0
  45. {murineshiftwork-2.16.4 → murineshiftwork-2.16.6}/tests/test_hooks.py +0 -0
  46. {murineshiftwork-2.16.4 → murineshiftwork-2.16.6}/tests/test_integration_deps.py +0 -0
  47. {murineshiftwork-2.16.4 → murineshiftwork-2.16.6}/tests/test_namespace_readiness.py +0 -0
  48. {murineshiftwork-2.16.4 → murineshiftwork-2.16.6}/tests/test_plot_spec.py +0 -0
  49. {murineshiftwork-2.16.4 → murineshiftwork-2.16.6}/tests/test_post_and_action.py +0 -0
  50. {murineshiftwork-2.16.4 → murineshiftwork-2.16.6}/tests/test_session_yaml_serialization.py +0 -0
  51. {murineshiftwork-2.16.4 → murineshiftwork-2.16.6}/tests/test_sim_hardware.py +0 -0
  52. {murineshiftwork-2.16.4 → murineshiftwork-2.16.6}/tests/test_task_discovery.py +0 -0
  53. {murineshiftwork-2.16.4 → murineshiftwork-2.16.6}/tests/test_taskrunner_paths.py +0 -0
@@ -20,7 +20,7 @@ educational purposes only, provided that the following conditions are met:
20
20
 
21
21
  4. Any use of this software or its derivatives for COMMERCIAL purposes -
22
22
  including sale, paid licensing, or providing paid services built on it -
23
- requires a separate commercial licence. Contact lars@rollik.me.
23
+ requires a separate commercial licence. Contact code@rollik.me.
24
24
 
25
25
  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26
26
  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: murineshiftwork
3
- Version: 2.16.4
3
+ Version: 2.16.6
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
- Author-email: "Lars B. Rollik" <lars@rollik.me>
8
+ Author-email: "Lars B. Rollik" <code@rollik.me>
9
9
  License: BSD-3-Clause-NonCommercial
10
10
 
11
11
  Copyright (c) 2020-present, Lars B. Rollik.
@@ -28,7 +28,7 @@ License: BSD-3-Clause-NonCommercial
28
28
 
29
29
  4. Any use of this software or its derivatives for COMMERCIAL purposes -
30
30
  including sale, paid licensing, or providing paid services built on it -
31
- requires a separate commercial licence. Contact lars@rollik.me.
31
+ requires a separate commercial licence. Contact code@rollik.me.
32
32
 
33
33
  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
34
34
  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
@@ -43,10 +43,14 @@ License: BSD-3-Clause-NonCommercial
43
43
  POSSIBILITY OF SUCH DAMAGE.
44
44
  License-File: LICENSE
45
45
  Classifier: License :: Free for non-commercial use
46
- Requires-Python: <3.14,>=3.12
46
+ Classifier: Programming Language :: Python :: 3
47
+ Classifier: Programming Language :: Python :: 3.12
48
+ Classifier: Programming Language :: Python :: 3.13
49
+ Classifier: Programming Language :: Python :: 3.14
50
+ Requires-Python: >=3.12
47
51
  Requires-Dist: ipython>=9.14.1
48
- Requires-Dist: msw-core>=0.36.3
49
- Requires-Dist: msw-io>=1.16.0
52
+ Requires-Dist: msw-core>=0.40.0
53
+ Requires-Dist: msw-io>=1.18.2
50
54
  Requires-Dist: plotly>=5.0
51
55
  Requires-Dist: pyarrow>=24.0.0
52
56
  Requires-Dist: tqdm
@@ -70,21 +74,21 @@ Provides-Extra: docs
70
74
  Requires-Dist: mkdocs-material<10,>=9.6; extra == 'docs'
71
75
  Requires-Dist: mkdocstrings[python]<2,>=1.0.8; extra == 'docs'
72
76
  Provides-Extra: flir
73
- Requires-Dist: msw-flir-bonsai>=0.6.1; extra == 'flir'
77
+ Requires-Dist: msw-flir-bonsai>=0.8.0; extra == 'flir'
74
78
  Provides-Extra: full
75
- Requires-Dist: msw-flir-bonsai>=0.6.1; extra == 'full'
76
- Requires-Dist: msw-open-ephys>=3.5.4; extra == 'full'
77
- Requires-Dist: msw-tasks-core>=0.5.13; extra == 'full'
79
+ Requires-Dist: msw-flir-bonsai>=0.8.0; extra == 'full'
80
+ Requires-Dist: msw-open-ephys>=3.6.2; extra == 'full'
81
+ Requires-Dist: msw-tasks-core>=0.5.18; extra == 'full'
78
82
  Provides-Extra: oe
79
- Requires-Dist: msw-open-ephys>=3.5.4; extra == 'oe'
83
+ Requires-Dist: msw-open-ephys>=3.6.2; extra == 'oe'
80
84
  Provides-Extra: pulsepal
81
85
  Requires-Dist: pypulsepal>=0.4.7; extra == 'pulsepal'
82
86
  Provides-Extra: rce
83
- Requires-Dist: rpi-camera-ensemble[conductor]>=0.18.1; extra == 'rce'
87
+ Requires-Dist: rpi-camera-ensemble[msw]>=0.18.1; extra == 'rce'
84
88
  Provides-Extra: stage
85
89
  Requires-Dist: one-axis-stage>=0.3.0; extra == 'stage'
86
90
  Provides-Extra: tasks
87
- Requires-Dist: msw-tasks-core>=0.5.13; extra == 'tasks'
91
+ Requires-Dist: msw-tasks-core>=0.5.18; extra == 'tasks'
88
92
  Description-Content-Type: text/markdown
89
93
 
90
94
  # Murine Shift Work
@@ -0,0 +1 @@
1
+ 2.16.6
@@ -10,14 +10,18 @@ readme = { file = "README.md", content-type = "text/markdown" }
10
10
  license = { file = "LICENSE" }
11
11
  classifiers = [
12
12
  "License :: Free for non-commercial use",
13
+ "Programming Language :: Python :: 3",
14
+ "Programming Language :: Python :: 3.12",
15
+ "Programming Language :: Python :: 3.13",
16
+ "Programming Language :: Python :: 3.14",
13
17
  ]
14
18
  authors = [
15
- { name = "Lars B. Rollik", email = "lars@rollik.me" },
19
+ { name = "Lars B. Rollik", email = "code@rollik.me" },
16
20
  ]
17
- requires-python = ">=3.12,<3.14"
21
+ requires-python = ">=3.12"
18
22
  dependencies = [
19
- "msw-core>=0.36.3",
20
- "msw-io>=1.16.0",
23
+ "msw-core>=0.40.0",
24
+ "msw-io>=1.18.2",
21
25
  "tqdm",
22
26
  "plotly>=5.0",
23
27
  "pyarrow>=24.0.0",
@@ -50,16 +54,16 @@ docs = [
50
54
  "mkdocstrings[python]>=1.0.8,<2",
51
55
  ]
52
56
  tasks = [
53
- "msw-tasks-core>=0.5.13", # >=0.5.6 declares sshkeyboard; >=0.5.7 takes the scale from the device collection
57
+ "msw-tasks-core>=0.5.18", # >=0.5.6 declares sshkeyboard; >=0.5.7 takes the scale from the device collection
54
58
  ]
55
59
  agent = [
56
60
  "msw-agent>=0.1.0",
57
61
  ]
58
62
  oe = [
59
- "msw-open-ephys>=3.5.4",
63
+ "msw-open-ephys>=3.6.2",
60
64
  ]
61
65
  flir = [
62
- "msw-flir-bonsai>=0.6.1",
66
+ "msw-flir-bonsai>=0.8.0",
63
67
  ]
64
68
  pulsepal = [
65
69
  "pypulsepal>=0.4.7",
@@ -72,7 +76,7 @@ calibration = [
72
76
  # stack ships with the task packages that plot (e.g. msw-tasks-lab[qt]). Both former
73
77
  # umbrella extras ([keyboard], [qt]) are therefore removed.
74
78
  rce = [
75
- "rpi-camera-ensemble[conductor]>=0.18.1",
79
+ "rpi-camera-ensemble[msw]>=0.18.1",
76
80
  ]
77
81
  stage = [
78
82
  "one-axis-stage>=0.3.0",
@@ -144,7 +148,7 @@ include = [
144
148
  [tool.commitizen]
145
149
  name = "cz_conventional_commits"
146
150
  version_provider = "commitizen"
147
- version = "2.16.4"
151
+ version = "2.16.6"
148
152
  tag_format = "v$version"
149
153
  update_changelog_on_bump = false
150
154
  version_files = ["VERSION"]
@@ -2,6 +2,7 @@
2
2
 
3
3
  import pytest
4
4
  import yaml
5
+ from murineshiftwork.logic.config.models import SUBJECT_CONFIG_SCHEMA_VERSION
5
6
  from murineshiftwork.logic.task_settings import parse_key_value_list
6
7
 
7
8
  # ---------------------------------------------------------------------------
@@ -88,7 +89,7 @@ def _base_args(tmp_path, subject, task="_test_flush_valves", **overrides):
88
89
 
89
90
  def _write_subject_yaml(tmp_path, name, **fields):
90
91
  (tmp_path / "subjects").mkdir(exist_ok=True)
91
- data = {"name": name, **fields}
92
+ data = {"name": name, "schema_version": SUBJECT_CONFIG_SCHEMA_VERSION, **fields}
92
93
  (tmp_path / "subjects" / f"{name}.yaml").write_text(yaml.dump(data))
93
94
 
94
95
 
@@ -73,7 +73,9 @@ def _attach_with_mock_gui(client, gui_mock):
73
73
  "sys.modules",
74
74
  {
75
75
  "msw_open_ephys": MagicMock(),
76
- "msw_open_ephys.controller": MagicMock(OEController=lambda ip: gui_mock),
76
+ "msw_open_ephys.controller": MagicMock(
77
+ OEController=lambda ip, **_: gui_mock
78
+ ),
77
79
  },
78
80
  ):
79
81
  return client.attach()
@@ -8,12 +8,10 @@ LogAgent unit tests and server tests live in msw-agent/tests/test_logagent.py.
8
8
  """
9
9
 
10
10
  import multiprocessing
11
- import types
12
11
 
13
12
 
14
13
  def test_task_process_starts_log_agent_when_log_url_set(monkeypatch):
15
14
  """TaskProcess creates relay_queue and starts LogAgent when log_url is set."""
16
- import sys
17
15
 
18
16
  import murineshiftwork.logic.task_process as tp_mod
19
17
 
@@ -47,9 +45,7 @@ def test_task_process_starts_log_agent_when_log_url_set(monkeypatch):
47
45
  def start(self):
48
46
  pass
49
47
 
50
- fake_mod = types.ModuleType("murineshiftwork.logagent.logagent")
51
- fake_mod.LogAgent = FakeLogAgent
52
- monkeypatch.setitem(sys.modules, "murineshiftwork.logagent.logagent", fake_mod)
48
+ monkeypatch.setattr("murineshiftwork.logic.trial_relay.TrialRelay", FakeLogAgent)
53
49
 
54
50
  tp = object.__new__(tp_mod.TaskProcess)
55
51
  tp._relay_queue = None
@@ -1 +0,0 @@
1
- 2.16.4