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

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.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 bisdecode 0.1.2
File Size Uploaded Provenance Actions
bisdecode-0.1.2.tar.gz 18.9 kB With provenance Details for bisdecode-0.1.2.tar.gz

Built distribution (wheel)

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

Total release size: 33.8 kB

Release files / bisdecode-0.1.2.tar.gz

Download URL bisdecode-0.1.2.tar.gz
Size 18.9 kB
Tags Source
SHA-256 checksum
How to use checksums
6503379d45263676de6d2fa2f2825b856dacffdaf37b5286b7ce197818ef8deb
BLAKE2b-256 checksum
How to use checksums
c9fb4b6f1e227b69d1d8677f9ffe82a888ae6e81470b4b5b996ddc62ffa9107c
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.2-py3-none-any.whl

Download URL bisdecode-0.1.2-py3-none-any.whl
Size 15.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
213e3f224913036f310a93db30068f698702338c1a32e396e3e5b5fdc41be8b1
BLAKE2b-256 checksum
How to use checksums
6ed80372ef205fd6a4b2649621fb17b051336ae9be86235ecfbdd9f4557223f1
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.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.

Full provenance

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

Select from 2 files

Attestation for bisdecode-0.1.2.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