Skip to main content

Python bindings to xrif, the extreme reordered image format

Project description

fiXr

Open xrif archives from Python directly using the xrif library.

Example

from fixr import xrif2numpy
import logging
logging.basicConfig(level='DEBUG')
fh = open('example_data/camwfs_20240315225750994842000.xrif', 'rb')
data = xrif2numpy(fh)

which will print something like

DEBUG:fixr:xrif compression details:
  difference method:  previous
  reorder method:     bytepack
  compression method: LZ4
    LZ4 acceleration: 1
  dimensions:         120 x 120 x 1 x 512
  raw size:           14745600 bytes
  encoded size:       7446095 bytes
  ratio:              0.505

The file ends with the timing information for the frames, stored as a separate xrif section:

timings = xrif2numpy(fh)

Each row contains the frame index, acquisition timestamp (as integer seconds and integer nanoseconds), and write timestamp (again as two integers).

>>> timings.shape
(787, 1, 1, 5)

For an example that uses the C xrif lib more directly, see minimal_ex.py.

Changelog

0.2.0

  • Add missing typecodes (#1, #2)

0.1.0

  • Initial release

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

fixr-0.2.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distributions

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

fixr-0.2.0-cp312-cp312-manylinux_2_28_x86_64.whl (526.7 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

fixr-0.2.0-cp312-cp312-macosx_11_0_arm64.whl (375.4 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

fixr-0.2.0-cp312-cp312-macosx_10_9_x86_64.whl (391.5 kB view details)

Uploaded CPython 3.12macOS 10.9+ x86-64

fixr-0.2.0-cp311-cp311-manylinux_2_28_x86_64.whl (526.7 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

fixr-0.2.0-cp311-cp311-macosx_11_0_arm64.whl (375.4 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

fixr-0.2.0-cp311-cp311-macosx_10_9_x86_64.whl (391.5 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

fixr-0.2.0-cp310-cp310-manylinux_2_28_x86_64.whl (526.7 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

fixr-0.2.0-cp310-cp310-macosx_11_0_arm64.whl (375.4 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

fixr-0.2.0-cp310-cp310-macosx_10_9_x86_64.whl (391.5 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

File details

Details for the file fixr-0.2.0.tar.gz.

File metadata

  • Download URL: fixr-0.2.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for fixr-0.2.0.tar.gz
Algorithm Hash digest
SHA256 0f8793b003b5c0e15b256381bd7c13a94e46a5e110af3e63547b91d9fb48b1f1
MD5 f7a6bc2243bcce38b08c1a27f725d0d0
BLAKE2b-256 3ab8ece26d4f95ac6c564ff331a512e4ec792bde1477c20564a60eb6a14626b4

See more details on using hashes here.

Provenance

The following attestation bundles were made for fixr-0.2.0.tar.gz:

Publisher: publish-to-pypi.yml on joseph-long/fixr

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

File details

Details for the file fixr-0.2.0-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for fixr-0.2.0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a862b20dd28597a289e8f26534f224a6a0179e04079daf7227151c316dc61c2e
MD5 ae1dad6d48f9cabf86d8c8ab19bc38cc
BLAKE2b-256 81d0423753b9b6c3d31fe2f8b686a9f5dd14c8c95fe4f2a5b5b5646e5a4ef205

See more details on using hashes here.

Provenance

The following attestation bundles were made for fixr-0.2.0-cp312-cp312-manylinux_2_28_x86_64.whl:

Publisher: publish-to-pypi.yml on joseph-long/fixr

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

File details

Details for the file fixr-0.2.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for fixr-0.2.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 744bf70c87e1d5355278c70e52ef010102f689a61104d782b3d5c41089b48283
MD5 227d19fb83f09854a07bcf9276e68796
BLAKE2b-256 eba04a214f54dd88dff63625dea4f79ee4236429590418bf4938ad2711489157

See more details on using hashes here.

Provenance

The following attestation bundles were made for fixr-0.2.0-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: publish-to-pypi.yml on joseph-long/fixr

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

File details

Details for the file fixr-0.2.0-cp312-cp312-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for fixr-0.2.0-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 f6fffc315e6067baebcb9465bc0b4ad8b9660321d2cf75e40be5ea7c39c55380
MD5 607b9f1bbb938dabe60bcd85a55d9c1a
BLAKE2b-256 86395a4a26e6747475d30e3fc51694c928b1f145cc71c6fc20295652d3ab31d4

See more details on using hashes here.

Provenance

The following attestation bundles were made for fixr-0.2.0-cp312-cp312-macosx_10_9_x86_64.whl:

Publisher: publish-to-pypi.yml on joseph-long/fixr

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

File details

Details for the file fixr-0.2.0-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for fixr-0.2.0-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 134c8e7aae2fd9bff2d468991925e724d2fda42e6c43c4630057c334aad81f9f
MD5 bf6702015a4c3146a01ae79cae52f4c4
BLAKE2b-256 a2eec44dd41eb404ac6f1882a0c83c482b6638831355914706ae7d2abd9ad3d3

See more details on using hashes here.

Provenance

The following attestation bundles were made for fixr-0.2.0-cp311-cp311-manylinux_2_28_x86_64.whl:

Publisher: publish-to-pypi.yml on joseph-long/fixr

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

File details

Details for the file fixr-0.2.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for fixr-0.2.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d0d571f0dcaeffc36bb7e8af8de0e3ff529e573193411060a0e97a30dfce9a3e
MD5 47f2ce52ed4279a35ac39d19088a5dee
BLAKE2b-256 750147016ddc93c4b0426f19b7135aa8cc953b461bb73ff897c5bded78e617a4

See more details on using hashes here.

Provenance

The following attestation bundles were made for fixr-0.2.0-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: publish-to-pypi.yml on joseph-long/fixr

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

File details

Details for the file fixr-0.2.0-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for fixr-0.2.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 4ddb2699825dd5260cc468ba1a325bc9a537d032e172cf251bbe9dd99e05d0c8
MD5 93eb58cc7a636cea36378658d905b14e
BLAKE2b-256 6071c26e48bc7536d15186e1d5b6262c4c7bc024301f885d116d33419a8608a3

See more details on using hashes here.

Provenance

The following attestation bundles were made for fixr-0.2.0-cp311-cp311-macosx_10_9_x86_64.whl:

Publisher: publish-to-pypi.yml on joseph-long/fixr

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

File details

Details for the file fixr-0.2.0-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for fixr-0.2.0-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7e3cef640d22a3338b8fa93bce3e9c9ffac56e79746d21465dbf89d4cea58179
MD5 96ee30a391185f73ea373fd5b77146e5
BLAKE2b-256 fb6eb6529c9566dab6d0dc1c22e0100bfe49da02db5b08404d954107a4de2a10

See more details on using hashes here.

Provenance

The following attestation bundles were made for fixr-0.2.0-cp310-cp310-manylinux_2_28_x86_64.whl:

Publisher: publish-to-pypi.yml on joseph-long/fixr

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

File details

Details for the file fixr-0.2.0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for fixr-0.2.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4ade18862601320253de8d7aeb2fe4496abd4501b2ee9d47e1955c315336eeb3
MD5 4bd1c5810dd1595af8f5d0e1e371db91
BLAKE2b-256 5952c48a71a2cd5813e14441b35461e50d67591a3bf7eed4a5290ecb43f82747

See more details on using hashes here.

Provenance

The following attestation bundles were made for fixr-0.2.0-cp310-cp310-macosx_11_0_arm64.whl:

Publisher: publish-to-pypi.yml on joseph-long/fixr

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

File details

Details for the file fixr-0.2.0-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for fixr-0.2.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 9d43571c9b3f4b7fa80232331107d9fe72f57f48cec38b311b1b51db702f026d
MD5 15531b2cc604405e57f34a51c9edfb29
BLAKE2b-256 36b67b5bf446984332ae5e3bd0dea32feb5abbd15eece4a20a1ab73c8e7ef558

See more details on using hashes here.

Provenance

The following attestation bundles were made for fixr-0.2.0-cp310-cp310-macosx_10_9_x86_64.whl:

Publisher: publish-to-pypi.yml on joseph-long/fixr

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