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.4.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.4-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.4-cp314-cp314t-macosx_11_0_arm64.whl (250.8 kB view details)

Uploaded CPython 3.14tmacOS 11.0+ ARM64

fcio-0.9.4-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.4-cp314-cp314-macosx_11_0_arm64.whl (239.1 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

fcio-0.9.4-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.4-cp313-cp313-macosx_11_0_arm64.whl (239.1 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

fcio-0.9.4-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.4-cp312-cp312-macosx_11_0_arm64.whl (230.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

fcio-0.9.4-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.4-cp311-cp311-macosx_11_0_arm64.whl (230.8 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

fcio-0.9.4-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.4-cp310-cp310-macosx_11_0_arm64.whl (232.0 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

fcio-0.9.4-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.4-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.4.tar.gz.

File metadata

  • Download URL: fcio-0.9.4.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.4.tar.gz
Algorithm Hash digest
SHA256 ba991f582e29d7eb556c731aa8c8e59a8f53f92c65792a99ff2b75c532834583
MD5 3bdfce337a9da0f290d171eeb558b3e1
BLAKE2b-256 8b3226887d6dfaf781fa47b79672fd01045c11aa62aaf22d32ab75c398d19787

See more details on using hashes here.

Provenance

The following attestation bundles were made for fcio-0.9.4.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.4-cp314-cp314t-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for fcio-0.9.4-cp314-cp314t-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d7c0b98634edaab97b9f5f4de0ea50a8aa4a2408f0ec03817325308dd0750a9b
MD5 3fb19ea6ffcb2bc342d9d52f33a2f166
BLAKE2b-256 e44ee7d8bf52bab8fa568539143f06976283bb585d6cf65eafefa1b544819603

See more details on using hashes here.

Provenance

The following attestation bundles were made for fcio-0.9.4-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.4-cp314-cp314t-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for fcio-0.9.4-cp314-cp314t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dcc10c639634b1aa3d8cfbd1121575e6ccece27cb4dc0b36ed93a91b93ae3469
MD5 16a1fc333145344ae6efbea498119add
BLAKE2b-256 771f524b21a962dcf3a7a3df3ee6eb530d20d78e490ce6855a98d26739167fe3

See more details on using hashes here.

Provenance

The following attestation bundles were made for fcio-0.9.4-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.4-cp314-cp314-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for fcio-0.9.4-cp314-cp314-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5764859698452dd979be6973455802e71cc55d98e6b362ef9444c859263d1329
MD5 96236fe0610e25a9dbd6e5ca5116ee02
BLAKE2b-256 39234323d2319a0a7aeff8dd47a7d5516444a7b63c4df765a1c7858a5d9ccfed

See more details on using hashes here.

Provenance

The following attestation bundles were made for fcio-0.9.4-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.4-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

  • Download URL: fcio-0.9.4-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.4-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6771d244786be56cb4ac9bb0fbb3cc228170fe3d6c0b4c27c891cf4f7f4001ec
MD5 0014df382258373a0c0b1dcd776c4968
BLAKE2b-256 8979bc85da4fb20487dcd7a9414c4d51907c8847223322ae83466b8de2481f41

See more details on using hashes here.

Provenance

The following attestation bundles were made for fcio-0.9.4-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.4-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for fcio-0.9.4-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0f33e80c793c48ff46666fda31ce51313bbf29b70e9bdedb3f00b60bbb495b37
MD5 655190fab856cbd2c9fbc0c1da427f2e
BLAKE2b-256 3a235a488f3f6e807913166b249566c28149b5e39d84a7cc58b7b10e95c843b8

See more details on using hashes here.

Provenance

The following attestation bundles were made for fcio-0.9.4-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.4-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

  • Download URL: fcio-0.9.4-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.4-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 46eaa59eade7584024f1e2d5d9c77e337b9159a668de55b7f738bdfa44829fbf
MD5 53a54fc818c71b3b0a3c54b58f7799d7
BLAKE2b-256 4e4d4baadff18d0e6f4c913f52a50992e48e714709593332221a4410dc6176a7

See more details on using hashes here.

Provenance

The following attestation bundles were made for fcio-0.9.4-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.4-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for fcio-0.9.4-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2ccba963368fef4ed303debf1b7b13779a5c967313596bb1bf583ffe8a574ed0
MD5 9e44e450a017d75fc58a0cd11db52f74
BLAKE2b-256 f6eb855a489c0801de404c092444545371a732dac5df9066939031fa28494b60

See more details on using hashes here.

Provenance

The following attestation bundles were made for fcio-0.9.4-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.4-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

  • Download URL: fcio-0.9.4-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.4-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2de9e5e45626d615746fd0aaa1f2708b755e57d8c639ccd72b882785c9959e03
MD5 63723896655bc1d574904d2c6d9493e0
BLAKE2b-256 b10dd0ecf4fc6cf191b712552fe29a587e808a2bfb0118f83a71ee65a9f55cdb

See more details on using hashes here.

Provenance

The following attestation bundles were made for fcio-0.9.4-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.4-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for fcio-0.9.4-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 940eed150571aad4441c16797b7e2616a0517d46871e4864fd9d9235b5a0ec7a
MD5 6921ff03898998bb7bd0939c52cb5433
BLAKE2b-256 ec64c5d1b1ae4e141c337ce68cb8db72535f19d8702a0d92b6bca595d4adbf21

See more details on using hashes here.

Provenance

The following attestation bundles were made for fcio-0.9.4-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.4-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

  • Download URL: fcio-0.9.4-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.4-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9298af16f35282dcfc8fad8c12ce75d111ba8882c680e22e92425ba028467520
MD5 b012753ee9973e2045215b06450039a6
BLAKE2b-256 83b252f29defa7474f23536d94c71cfd8f89ee11ad3283a880f745b5e4663283

See more details on using hashes here.

Provenance

The following attestation bundles were made for fcio-0.9.4-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.4-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for fcio-0.9.4-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d8235d0cd0184167b3bafeb3d97554c2bb0f23606af6dfe8b894f2e1811e6ce8
MD5 39e3cb73b3b42f24d22f0a2210a64add
BLAKE2b-256 b4a1fff3f7b18467601af95150ad73034eea752af3511fb94fa8c5bd69fb196a

See more details on using hashes here.

Provenance

The following attestation bundles were made for fcio-0.9.4-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.4-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

  • Download URL: fcio-0.9.4-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.4-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 58d9f3a059ac4bcf3d6b12fd5f97224192a7e5815d009bf693541de2d19f4618
MD5 64bdfb1e63bdfd5451e973f86eb2eb2f
BLAKE2b-256 858140c58b52a5bb81fad1ed282949473c7278a5db2eed456bbb4426e86fad38

See more details on using hashes here.

Provenance

The following attestation bundles were made for fcio-0.9.4-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.4-cp39-cp39-manylinux_2_28_x86_64.whl.

File metadata

  • Download URL: fcio-0.9.4-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.4-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 37768f5f038caaa114cd0535167c8acad4f475759768a1f458f2652517505ca3
MD5 60e163425e9ad973dd6317e357f41e45
BLAKE2b-256 6a237b2943de2cccd705202cbaa6b0593907fe6488ae0e28e564eed8352ec414

See more details on using hashes here.

Provenance

The following attestation bundles were made for fcio-0.9.4-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.4-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

  • Download URL: fcio-0.9.4-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.4-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d0ef0de944888424323e5a7a36ad341bde57c5a09c2d5353f3e6200f24218ed0
MD5 a1a878c327cdfc72acfa7aa54afd29d2
BLAKE2b-256 6656715fb10480a3fbe8c278d784fa1b87cf20e71f157cc4e521dbf96177efe0

See more details on using hashes here.

Provenance

The following attestation bundles were made for fcio-0.9.4-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