Skip to main content

Murine Shift Work

Behaviour acquisition framework for standardised, scalable experiments.

msw run --setup rig-a --subject mouse001 --task sequence

What it does

  • Behavioural tasks: sequence learning, probabilistic switching, optotagging, calibration routines
  • Hardware abstraction: interchangeable backends for behaviour controllers, cameras, stage, scale, stimulators
  • Config system: layered YAML overrides (bundled defaults, rig overlay, task mode, subject, CLI)
  • Session files: structured .msw.session.yaml + JSONL trial data; reader API for analysis
  • Live plot: per-task online performance display during acquisition
  • TTL barcodes: unique per-trial barcodes on BNC output for alignment with parallel recordings

Installation

Requires Python ≥ 3.12 and uv.

pip install murineshiftwork

First-time setup

msw init --config-dir /path/to/msw_configs
msw setup create rig-a
msw subject add -s mouse001

Development

git clone https://github.com/MurineShiftWork/murineshiftwork.git
cd murineshiftwork
uv sync --group dev
uv run pytest tests/

Pre-commit hooks (ruff, mypy, secrets scan):

pre-commit install

Docs

See docs/ for CLI reference, config system, session files, and task guides. Key architecture decisions are in docs/MASTER_PLAN.md.


License

Copyright © 2021-2026 Lars B. Rollik. See LICENSE for terms.

Metadata

Release files for murineshiftwork 2.16.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for murineshiftwork 2.16.3
File Size Uploaded Provenance Actions
murineshiftwork-2.16.3.tar.gz 163.6 kB Without provenance Details for murineshiftwork-2.16.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for murineshiftwork 2.16.3
File Interpreter ABI Platform Actions
murineshiftwork-2.16.3-py3-none-any.whl Python 3 none any Details for murineshiftwork-2.16.3-py3-none-any.whl

Total release size: 168.5 kB

Release files / murineshiftwork-2.16.3.tar.gz

Download URL murineshiftwork-2.16.3.tar.gz
Size 163.6 kB
Tags Source
SHA-256 checksum
How to use checksums
3468c89691638c96baad823f065fcdca21ccd6e1c801c2e153466132145cded3
BLAKE2b-256 checksum
How to use checksums
9766fbfb093c2ae02a9d72c104a3822da5edc9ff62dbebd890703ab164d3f81b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / murineshiftwork-2.16.3-py3-none-any.whl

Download URL murineshiftwork-2.16.3-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
85b87d3e6f341ed4f4bab4ecfc2be5d867f4687c4a6931e2ea95992da814f1b2
BLAKE2b-256 checksum
How to use checksums
eb23cb65e5f6a87bbed1e877decc22304b64ca36c0e6aab1baea8c907a5a178f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for murineshiftwork 2.16.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page