Skip to main content

FlashCam File Format (FCIO) reader for python.

Project description

Installation

Run python3 -m pip install fcio to install from the pypi repository.

Description

fcio-py provides a read-only wrapper around the fcio.c io library used in fc250b based digitizer systems.

The wrapper exposes the fcio.c memory fields as closely as possible to standard c-structs using numpy ndarrays or scalars where applicable. For convenience all supported fcio records are exposed as iterable properties of the base FCIO class to preselect records of interest.

Usage

Simple code example

The following example opens an fcio file and prints some basic event content to stdout:

from fcio import fcio_open

filename = 'path/to/an/fcio/file'

with fcio_open(filename, extended=True) as io:
  print("#evtno run_time utc_unix_sec utc_unix_nsec ntraces bl_mean bl_std")
  for event in io.events:
    print(f"{event.eventnumber} {event.run_time:.09f} {event.utc_unix_sec} {event.utc_unix_nsec} {event.trace_list.size} {event.fpga_baseline.mean():.1f} {event.fpga_baseline.std():.2f}")

Differences to C usage

  • fcio-py codifies the assumption that a FCIOConfig record must be available and skips all previous records on opening
  • reading of zstd or gzip compressed files is possible using suprocesses. This requires zstd or gzip to be available. If a file ends in .zst or .gz respectively and the compression parameter is default, this will happen automatically.

Development

Development is best done in a local environment, e.g. using venv:

# create local environment:
export MY_ENV=fcio_dev
python3 -m venv $MY_ENV

# activate the environment
source $MY_ENV/bin/activate

This library depends on meson-python/meson as build tool and Cython/numpy to wrap the c-sources. These should be installed automatically wenn running python3 -m build. To allow a more traditional workflow a thin Makefile is available which wraps the python3 and meson specific commands.

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

fcio-0.9.3.tar.gz (159.7 kB view details)

Uploaded Source

Built Distributions

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

fcio-0.9.3-cp314-cp314t-manylinux_2_28_x86_64.whl (287.6 kB view details)

Uploaded CPython 3.14tmanylinux: glibc 2.28+ x86-64

fcio-0.9.3-cp314-cp314t-macosx_11_0_arm64.whl (250.8 kB view details)

Uploaded CPython 3.14tmacOS 11.0+ ARM64

fcio-0.9.3-cp314-cp314-manylinux_2_28_x86_64.whl (305.4 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.28+ x86-64

fcio-0.9.3-cp314-cp314-macosx_11_0_arm64.whl (239.1 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

fcio-0.9.3-cp313-cp313-manylinux_2_28_x86_64.whl (304.2 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

fcio-0.9.3-cp313-cp313-macosx_11_0_arm64.whl (239.1 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

fcio-0.9.3-cp312-cp312-manylinux_2_28_x86_64.whl (304.9 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

fcio-0.9.3-cp312-cp312-macosx_11_0_arm64.whl (230.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

fcio-0.9.3-cp311-cp311-manylinux_2_28_x86_64.whl (311.2 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

fcio-0.9.3-cp311-cp311-macosx_11_0_arm64.whl (230.8 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

fcio-0.9.3-cp310-cp310-manylinux_2_28_x86_64.whl (318.6 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

fcio-0.9.3-cp310-cp310-macosx_11_0_arm64.whl (232.0 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

fcio-0.9.3-cp39-cp39-manylinux_2_28_x86_64.whl (319.9 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64

fcio-0.9.3-cp39-cp39-macosx_11_0_arm64.whl (232.5 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

File details

Details for the file fcio-0.9.3.tar.gz.

File metadata

  • Download URL: fcio-0.9.3.tar.gz
  • Upload date:
  • Size: 159.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for fcio-0.9.3.tar.gz
Algorithm Hash digest
SHA256 6e8646ce7236d5fa696f321e4ea039db634bcaa7d81f29b6539c4576dae2ff42
MD5 44cffe66164c9d08e3f338e1d67626cd
BLAKE2b-256 e2dc0dbada50b7644766f87106899992b55510a6859dda04bc2e69782f1b53e5

See more details on using hashes here.

Provenance

The following attestation bundles were made for fcio-0.9.3.tar.gz:

Publisher: publish.yml on FlashCam/fcio-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fcio-0.9.3-cp314-cp314t-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for fcio-0.9.3-cp314-cp314t-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f41a82c0db70a359c48cc8782c6b76f9bdf44ad18967466d316bbaf949adb046
MD5 3b2adddf6812e3d897e15f1a2203909e
BLAKE2b-256 24f4fc60e4b54c9c28ba9060e7b955475e301cb0cd2570683424fa97f50edeb0

See more details on using hashes here.

Provenance

The following attestation bundles were made for fcio-0.9.3-cp314-cp314t-manylinux_2_28_x86_64.whl:

Publisher: publish.yml on FlashCam/fcio-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fcio-0.9.3-cp314-cp314t-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for fcio-0.9.3-cp314-cp314t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 48d5bb4d7bee2b25ac5aec3cdfbad59cc1b4afdc4ac6cacb5037c2a42c10b30f
MD5 562aa5ff843787fc56d35f5a665689bf
BLAKE2b-256 0744d498e7dea60791fe439bded2181cf7068d019d59489587c149de87c461b9

See more details on using hashes here.

Provenance

The following attestation bundles were made for fcio-0.9.3-cp314-cp314t-macosx_11_0_arm64.whl:

Publisher: publish.yml on FlashCam/fcio-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fcio-0.9.3-cp314-cp314-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for fcio-0.9.3-cp314-cp314-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4ed2192aaa6e7613b6008475cf42e048d001dce727b5964dd7ac1789c00f9dbb
MD5 e2a73d39e145c0ab77f77a987e688730
BLAKE2b-256 d8d4c261007afb87dec7f0475849f5c0d34721653f2a868f5b98b4f1cf06477a

See more details on using hashes here.

Provenance

The following attestation bundles were made for fcio-0.9.3-cp314-cp314-manylinux_2_28_x86_64.whl:

Publisher: publish.yml on FlashCam/fcio-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fcio-0.9.3-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

  • Download URL: fcio-0.9.3-cp314-cp314-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 239.1 kB
  • Tags: CPython 3.14, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for fcio-0.9.3-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f007a8104630c2f91f732becf0d655b3471afd88be696542e40c4e2c177c078c
MD5 813d0b8e95afbcf2477cb6b9115c50c0
BLAKE2b-256 a3535b2d74a67cc9ae68ca6476b4033a0ef0512ea7d68e00c7584f0d63290c25

See more details on using hashes here.

Provenance

The following attestation bundles were made for fcio-0.9.3-cp314-cp314-macosx_11_0_arm64.whl:

Publisher: publish.yml on FlashCam/fcio-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fcio-0.9.3-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for fcio-0.9.3-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fb375ce6af5281f004e6d2f60bcf585d404403ca35928c06dcf2123f9ff979a0
MD5 6cfeea1d83a50c93c598d2ebc442e5c8
BLAKE2b-256 b625273476592cf2971d137853365de995b939bd6022e13c13ef8aa098e69631

See more details on using hashes here.

Provenance

The following attestation bundles were made for fcio-0.9.3-cp313-cp313-manylinux_2_28_x86_64.whl:

Publisher: publish.yml on FlashCam/fcio-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fcio-0.9.3-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

  • Download URL: fcio-0.9.3-cp313-cp313-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 239.1 kB
  • Tags: CPython 3.13, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for fcio-0.9.3-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3b01701e39400c023bd6524e12bff19ce5fe398f61189b47be799e1a6c100a71
MD5 3aec8f1eac7359dbba80474055e82bd5
BLAKE2b-256 c940225d7bd5a0d0f4b81145d660506c7706016950748fb8038a7586a84f33c3

See more details on using hashes here.

Provenance

The following attestation bundles were made for fcio-0.9.3-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: publish.yml on FlashCam/fcio-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fcio-0.9.3-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for fcio-0.9.3-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 dcbd2dea20c486315e94d5909eecdfad1235ec37e278331aaef5cd9e62a9759b
MD5 5784237d8cb0b6c744bc7161d5afcfe1
BLAKE2b-256 93347a998779481ed047521e9b626b98fc2f46ba0f1ca53b82a3d1d105e40561

See more details on using hashes here.

Provenance

The following attestation bundles were made for fcio-0.9.3-cp312-cp312-manylinux_2_28_x86_64.whl:

Publisher: publish.yml on FlashCam/fcio-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fcio-0.9.3-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

  • Download URL: fcio-0.9.3-cp312-cp312-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 230.9 kB
  • Tags: CPython 3.12, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for fcio-0.9.3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 be7b88dfbb71055c75cb1f1c4fc7fc132b8f73117893f9d60bdb4da54d14aa8f
MD5 d14ebaf797908d716616bfe918cd0158
BLAKE2b-256 29371e4d224ccce377909707f3a995f14c41f739494e5d15595c6348b4a48827

See more details on using hashes here.

Provenance

The following attestation bundles were made for fcio-0.9.3-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: publish.yml on FlashCam/fcio-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fcio-0.9.3-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for fcio-0.9.3-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7fe3f723fe18d6b75c464a94a9ecbfc2aadb672bed6f1e87133378f811654211
MD5 3cd1eb4e9ce5111d6d6601133017f8dc
BLAKE2b-256 2531c4f2865b5e020a46a85886311d1ed7673c95dfc1a09030743685d5b788ac

See more details on using hashes here.

Provenance

The following attestation bundles were made for fcio-0.9.3-cp311-cp311-manylinux_2_28_x86_64.whl:

Publisher: publish.yml on FlashCam/fcio-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fcio-0.9.3-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

  • Download URL: fcio-0.9.3-cp311-cp311-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 230.8 kB
  • Tags: CPython 3.11, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for fcio-0.9.3-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5e080087666d90279de24fe6a9cdc7b732e5ecb03825a7e1cef089e7798145ed
MD5 42ad1fe83fe160183b645ba020fd53f9
BLAKE2b-256 61ca4c1b3ffc57a302b6d7fe61f860ca5886eb58c080b729c0968f6c28ccdc47

See more details on using hashes here.

Provenance

The following attestation bundles were made for fcio-0.9.3-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: publish.yml on FlashCam/fcio-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fcio-0.9.3-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for fcio-0.9.3-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 068d99c585e63a668c7a21ce4ea71bed77f3f88ad1737347d78a5263d0b134e6
MD5 ad63e2e55af5c976f5da74fa92109583
BLAKE2b-256 18b29a2a2e8375ee5d0a342bea1ef58b75dfdda02b4e39927d2ae96811cc02b7

See more details on using hashes here.

Provenance

The following attestation bundles were made for fcio-0.9.3-cp310-cp310-manylinux_2_28_x86_64.whl:

Publisher: publish.yml on FlashCam/fcio-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fcio-0.9.3-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

  • Download URL: fcio-0.9.3-cp310-cp310-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 232.0 kB
  • Tags: CPython 3.10, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for fcio-0.9.3-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 71064937529594f86e09fa79fdf9972fffb50958aa63c2d3509b7c99a9df319b
MD5 fd352fae7facdcb4ddf9aae9b10d8fa6
BLAKE2b-256 cd85e607d2ad994496bd49aa45644027f4a72e477b464f9d099a89453d929f42

See more details on using hashes here.

Provenance

The following attestation bundles were made for fcio-0.9.3-cp310-cp310-macosx_11_0_arm64.whl:

Publisher: publish.yml on FlashCam/fcio-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fcio-0.9.3-cp39-cp39-manylinux_2_28_x86_64.whl.

File metadata

  • Download URL: fcio-0.9.3-cp39-cp39-manylinux_2_28_x86_64.whl
  • Upload date:
  • Size: 319.9 kB
  • Tags: CPython 3.9, manylinux: glibc 2.28+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for fcio-0.9.3-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 68a7f61e514b6c5b4ef376181c38594f1adc6e46876fad86a37db0cab06fba35
MD5 dbb7a994fb7424735dd971d73e49ccd9
BLAKE2b-256 bbc33cc07bb38f00da7c3d47ed0bc5ec098aa8f188cf891074a659cda21543fe

See more details on using hashes here.

Provenance

The following attestation bundles were made for fcio-0.9.3-cp39-cp39-manylinux_2_28_x86_64.whl:

Publisher: publish.yml on FlashCam/fcio-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fcio-0.9.3-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

  • Download URL: fcio-0.9.3-cp39-cp39-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 232.5 kB
  • Tags: CPython 3.9, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for fcio-0.9.3-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ebdbf04bbf2a256650b9887bd2bf557cdb6dbf016a6f3cb5db5a637ba1c8a545
MD5 730934bf7126001c16de91c5b3893e24
BLAKE2b-256 ae8c27807beda8f93943a485c81b86d4b11343eadff44addc08a59cad4b2cb92

See more details on using hashes here.

Provenance

The following attestation bundles were made for fcio-0.9.3-cp39-cp39-macosx_11_0_arm64.whl:

Publisher: publish.yml on FlashCam/fcio-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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