Murine Shift Work session data IO: file codec, namespace utilities, and session readers.
Project description
msw-io
Murine Shift Work session data IO: file codec, namespace utilities, and session readers.
Provides a lean, installable library for reading and writing MSW session data without
requiring the full murineshiftwork acquisition stack. Install it in analysis
environments where you only need to load sessions, not run them.
Key features
- Session readers - load MSW session data (JSONL, PKL, YAML) into structured
MswSessionmodels - Namespace utilities - build and parse MSW session paths from the canonical
subject__datetime__taskspec - IO codec - save and load trial data with numpy/tuple encoding
- Standalone - no dependency on the
murineshiftworkacquisition stack
Installation
pip install msw-io
Quick start
from murineshiftwork.readers import load_session
session = load_session("/data/mouse_01/session__20260514_143022_123456__gonogo")
print(session.subject, session.task, session.n_trials)
Load an entire acquisition (all sessions in a container directory):
from murineshiftwork.readers import load_acquisition
sessions = load_acquisition("/data/mouse_01/session__20260514_143022_123456__session_gonogo")
for s in sessions:
print(s.basename, s.is_complete)
Generate session paths for a new recording:
from murineshiftwork.namespace import generate_session_paths
paths = generate_session_paths("mouse_01", "gonogo", "/data", printout=False)
print(paths["session_folder"])
Documentation
Full documentation including API reference: https://murineshiftwork.github.io/msw-io
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file msw_io-1.0.2.tar.gz.
File metadata
- Download URL: msw_io-1.0.2.tar.gz
- Upload date:
- Size: 183.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e4180342856e1f2b67b78a4596fadbdb0c4e023a7ae359778ad329943829b2d
|
|
| MD5 |
9c6f83640af391a007f1c77fdca258af
|
|
| BLAKE2b-256 |
10313f7bf6689c234085a560ef34586d9698a37f7a6c786471f95de6e0921dbf
|
File details
Details for the file msw_io-1.0.2-py3-none-any.whl.
File metadata
- Download URL: msw_io-1.0.2-py3-none-any.whl
- Upload date:
- Size: 23.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
21da5833438b28c2e1652f6cf7ea0ce31d1ff127c07f9369396018165ecb794d
|
|
| MD5 |
9f1df171caad7fd5eabde46f42f1617f
|
|
| BLAKE2b-256 |
c78548e5153d309b5bde67be2b21d6577308831d8ccfa30262948f45ddecfa06
|