Skip to main content

bisdecode

Decode Aspect / Covidien / Medtronic BIS Advance / Vista data-download files into analysis-ready tables. The per-case DH export is a vendor-undocumented, nine-file bundle; bisdecode reverse-engineers it into tidy CSV + NumPy.

⚠️ Unofficial / reverse-engineered. Not affiliated with or endorsed by the device manufacturer. Field mappings were validated against BIS R2 4.1 / BISx 1.15.2.22 exports cross-checked with the official BIS PDF reports. Verify against your own device revision before relying on it. Raw EEG is stored as ADC counts; µV scaling needs the (not-exported) BIS R2 gain constant.

Install

pip install bisdecode

CLI

# decode one case (folder containing a DH*/ subfolder, or the DH folder itself)
bisdecode decode path/to/M-XXXX-... -o decoded

# batch every case under a root
bisdecode decode raw-data --all -o decoded

# anonymised export: per-case date-shift, output named by Case ID, key kept secret
bisdecode decode raw-data --all --anonymise -o decoded_anon --key-file KEY.csv

# one-row-per-case cohort summary from decoded trends
bisdecode cohort decoded -o cohort_summary.csv

# same, but BIS/SR/EMG metrics use only seconds with SQI >= 50
bisdecode cohort decoded -o cohort_summary.csv --min-sqi 50

Per case you get: *_trend.csv (per-second BIS / SR / SEF / median freq / total power / EMG / SQI / impedance / artifact / burst, per channel), *_spectra.csv (60-bin density spectral array), *_events.csv, *_messages.csv, *_meta.json, and *_eeg.npy (raw EEG, int16, 2ch @ 128 Hz).

Python API

import bisdecode
meta = bisdecode.decode_case("path/to/M-XXXX-...", "decoded")
trend = bisdecode.parse_spa("…/L…spa")          # -> pandas DataFrame
eeg   = bisdecode.parse_eeg("…/L….r2a")          # -> ndarray (n, 2) int16
row   = bisdecode.summarize("decoded/X/X_trend.csv", channel="Ch1")

Anonymisation

--anonymise applies an independent random per-case offset (magnitude in [--shift-min-days, --shift-days], random sign) to every timestamp — including those embedded in message text — so dates and clock-times move while all within-case intervals are preserved. Outputs are named by the monitor Case ID. The key file maps source_base → offset_seconds; keep it secret (it reverses the shift: real = shifted − offset). Re-runs reuse the key, so offsets are stable.

License

MIT. See LICENSE.

Metadata

Release files for bisdecode 0.1.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 bisdecode 0.1.3
File Size Uploaded Provenance Actions
bisdecode-0.1.3.tar.gz 19.8 kB With provenance Details for bisdecode-0.1.3.tar.gz

Built distribution (wheel)

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

Total release size: 35.2 kB

Release files / bisdecode-0.1.3.tar.gz

Download URL bisdecode-0.1.3.tar.gz
Size 19.8 kB
Tags Source
SHA-256 checksum
How to use checksums
de564eecf89c0ada491b8657fbd6909a7e8beadede0705a6faf237eaadb57961
BLAKE2b-256 checksum
How to use checksums
dbc37c2b286d2e5a7a3040dce6fe4592a4f1537aca87c1e6990344a7079b6e0d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

Release files / bisdecode-0.1.3-py3-none-any.whl

Download URL bisdecode-0.1.3-py3-none-any.whl
Size 15.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
baf3f90832179cb26eabd03fc51207d2cc46c0e68b588e00b7f3ba7525e3d571
BLAKE2b-256 checksum
How to use checksums
01110a959117bb06c2839ae6b657080d6614596f2ab910538093f61f5e7a5010
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

Security for bisdecode 0.1.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for bisdecode-0.1.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

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