Skip to main content

msw-open-ephys

Remote control for Open Ephys GUI v1+ — session naming, recording management, and metadata writing for MSW acquisition workflows.

Install

pip install msw-open-ephys

Or editable from the repo:

pip install -e external/msw-open-ephys

CLI

oe-remote status   --remote-ip 192.0.2.10
oe-remote preview  --remote-ip 192.0.2.10
oe-remote record   --remote-ip 192.0.2.10 --subject m1099 \
                   --acquisition-extension ephys_multi_behavior \
                   --session-extension pxi
oe-remote record   --remote-ip 192.0.2.10 --subject m1099 \
                   --session-extension intan_ttl --child @last
oe-remote stop     --remote-ip 192.0.2.10

oe-remote survey --subject m1099 (or msw oe survey) records every electrode of every Neuropixels probe once, in the fewest steps; see docs/usage.md, "Probe survey".

Session modes

Mode When OE records to
Standalone no --acquisition-extension, no --child remote/{subject}/{subject__dt__session}/
Parent --acquisition-extension set remote/{subject}/{subject__dt__acq}/{subject__dt__session}/
Child --child ACQ_PATH or --child @last remote/{acq_path}/{subject__dt__session}/

--child @last reuses the acquisition path cached by the most recent parent or record command.

Python API

from msw_open_ephys.controller import OEController
from msw_open_ephys.session import Session

oe = OEController(ip="oe-host")
oe.configure_recording(parent_directory=r"D:\DATA", base_text="m1099/acq/session")  # in IDLE
oe.preview()
oe.record(sync_timeout=30)

Paths must be set in IDLE: Open Ephys accepts a Record Node's directory while acquiring but does not apply it. configure_recording reads the paths back and raises OEStateError if they differ. Unreachable API, missing Record Nodes, a mode that is not reached and a sync timeout raise subclasses of OEError with one-line messages; the CLI prints them and exits 1.

Integration with MSW

msw run --parent openephys calls the OE REST API directly via murineshiftwork.hardware.parent_session (uses open-ephys-python-tools, not this package). This package provides the oe-remote CLI used to start the acquisition side before launching MSW tasks.

Set open_ephys_url in the setup YAML so MSW can attach automatically:

# msw_configs/setups/setup-npxb.yaml
open_ephys_url: 192.0.2.10

Metadata

Release files for msw-open-ephys 3.6.2

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

Source distribution (sdist)

Source distribution for msw-open-ephys 3.6.2
File Size Uploaded Provenance Actions
msw_open_ephys-3.6.2.tar.gz 45.4 kB Without provenance Details for msw_open_ephys-3.6.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for msw-open-ephys 3.6.2
File Interpreter ABI Platform Actions
msw_open_ephys-3.6.2-py3-none-any.whl Python 3 none any Details for msw_open_ephys-3.6.2-py3-none-any.whl

Total release size: 85.8 kB

Release files / msw_open_ephys-3.6.2.tar.gz

Download URL msw_open_ephys-3.6.2.tar.gz
Size 45.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b6109dfc01d82e928819535fd0f90a8d24d645ea0c502f4bef997acba6c4a4db
BLAKE2b-256 checksum
How to use checksums
527bcf00109552240865831462011c9d3b3618bdd03c76f81fb60234cad4f12a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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 / msw_open_ephys-3.6.2-py3-none-any.whl

Download URL msw_open_ephys-3.6.2-py3-none-any.whl
Size 40.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
838d3a8b9e5bd27715d7e36b15d7ece428d1f13ba1bde54a07b0223660f232d7
BLAKE2b-256 checksum
How to use checksums
eefa1041019a3cc3a19c3a97b1e24a94c1f220580a16c356dcfff6f1bbc96668
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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 msw-open-ephys 3.6.2

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