Skip to main content

Remote control for Open Ephys GUI v1+ — session naming and recording management

Project description

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 10.0.10.111
oe-remote preview  --remote-ip 10.0.10.111
oe-remote record   --remote-ip 10.0.10.111 --subject m1099 \
                   --acquisition-extension ephys_multi_behavior \
                   --session-extension pxi
oe-remote record   --remote-ip 10.0.10.111 --subject m1099 \
                   --session-extension intan_ttl --child @last
oe-remote stop     --remote-ip 10.0.10.111

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="10.0.10.111")
oe.preview()
oe.configure_recording(parent_directory=r"E:\OE_DATA", base_text="m1099/acq/session")
oe.record()

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: 10.0.10.111

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

msw_open_ephys-3.3.0.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

msw_open_ephys-3.3.0-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

Details for the file msw_open_ephys-3.3.0.tar.gz.

File metadata

  • Download URL: msw_open_ephys-3.3.0.tar.gz
  • Upload date:
  • Size: 11.8 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

Hashes for msw_open_ephys-3.3.0.tar.gz
Algorithm Hash digest
SHA256 6f1ae90d7b8ca7ec3db1fe0e6f48b9d9ca03fcadc6a94f6c32a75e4fa1fa2e51
MD5 a5792e1e8e8a1fa1c248279782727745
BLAKE2b-256 cf9ecf0fcc5e7ee0ffa274bf9ef92fed557e26b93b6a15f386e9a394a8740cc2

See more details on using hashes here.

File details

Details for the file msw_open_ephys-3.3.0-py3-none-any.whl.

File metadata

  • Download URL: msw_open_ephys-3.3.0-py3-none-any.whl
  • Upload date:
  • Size: 15.8 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

Hashes for msw_open_ephys-3.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 15457c587ccab8a6f151677a67097512399fe9c55dbc2433c3e73ab1eafabb9a
MD5 91ff6408b72b8f1f6d3cd17c722e0711
BLAKE2b-256 c1170c8d7e83a8c02301aa91548dd2469e1d0c89347de7f82bef5a6469cd179b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page