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.1

  • Fix macOS-ism (using .dylib instead of .so to load library)
  • Declare NumPy >= 2.0 dependency
  • Update various bits of CI machinery

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.1.tar.gz (4.6 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.1-cp313-cp313-manylinux_2_28_x86_64.whl (526.8 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

fixr-0.2.1-cp313-cp313-macosx_11_0_arm64.whl (375.5 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

fixr-0.2.1-cp313-cp313-macosx_10_13_x86_64.whl (391.6 kB view details)

Uploaded CPython 3.13macOS 10.13+ x86-64

fixr-0.2.1-cp312-cp312-manylinux_2_28_x86_64.whl (526.8 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

fixr-0.2.1-cp312-cp312-macosx_11_0_arm64.whl (375.5 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

fixr-0.2.1-cp312-cp312-macosx_10_13_x86_64.whl (391.6 kB view details)

Uploaded CPython 3.12macOS 10.13+ x86-64

fixr-0.2.1-cp311-cp311-manylinux_2_28_x86_64.whl (526.8 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

fixr-0.2.1-cp311-cp311-macosx_11_0_arm64.whl (375.5 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

fixr-0.2.1-cp311-cp311-macosx_10_9_x86_64.whl (391.6 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

fixr-0.2.1-cp310-cp310-manylinux_2_28_x86_64.whl (526.8 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

fixr-0.2.1-cp310-cp310-macosx_11_0_arm64.whl (375.5 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

fixr-0.2.1-cp310-cp310-macosx_10_9_x86_64.whl (391.6 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: fixr-0.2.1.tar.gz
  • Upload date:
  • Size: 4.6 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.1.tar.gz
Algorithm Hash digest
SHA256 27c57d9bcf1819bddf8df3b345cbb32d27fb40cc0fbf9bb4b2e3bae11569bda9
MD5 2e0bd8818f46facd4b5f123472cd46dd
BLAKE2b-256 631ec2f0b2d4818e2212a831eb08c5cf098d4c0b194185c4e12856423d09947b

See more details on using hashes here.

Provenance

The following attestation bundles were made for fixr-0.2.1.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.1-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for fixr-0.2.1-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 79f50800c400e7612b20761fc897649ca3738251332d4cc797e854d5d8895d3f
MD5 eee09783bad7b0e74c091cada82a7db9
BLAKE2b-256 2b9ed930517273dbc5bed3b1183e5df4fba2541eb47d5d422abfd5817ff0a60a

See more details on using hashes here.

Provenance

The following attestation bundles were made for fixr-0.2.1-cp313-cp313-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.1-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for fixr-0.2.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b0b1669482cc489c0cce5332254dacfb89be5016bc2596aadb433803673ade22
MD5 2a226a36b3fe7d3d7581ce9d0440744c
BLAKE2b-256 5dd906e09779abbed00aea9fe9fe7d482572f2d68d692c90018465294d08afcd

See more details on using hashes here.

Provenance

The following attestation bundles were made for fixr-0.2.1-cp313-cp313-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.1-cp313-cp313-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for fixr-0.2.1-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 3e2e371c399a3ee305e0ce1f91daaf768ebe9a38d20b1e6dfdd4838fba2f1bda
MD5 aa21791b5d1ad0fae77a30cc4e9b3d4c
BLAKE2b-256 415ca5c65ebf627d920fefdb751da97f503c5e7c5ce6d2c50f2b3ffad6b1d817

See more details on using hashes here.

Provenance

The following attestation bundles were made for fixr-0.2.1-cp313-cp313-macosx_10_13_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.1-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for fixr-0.2.1-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4d135a182611c1b8b3e0c30109608ba6173c5d8767cda19ac1318ec734c830be
MD5 4fdebb631197519dd4cba6bc35844d05
BLAKE2b-256 702a7ed6ab2b668ac93fab079fd4d3877dddc4e327b4e2793b89ae4a50f57359

See more details on using hashes here.

Provenance

The following attestation bundles were made for fixr-0.2.1-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.1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for fixr-0.2.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c21619032a529282bd168cb4cde3f731d4de50cad32cc544b0ce3ed06ec7eca2
MD5 7b468cc9cae88f86c9910bd071d8df77
BLAKE2b-256 87259b36115a023bbf7299bcc5a45ef2d7cf5919abaeef6f41b1e13c540049a9

See more details on using hashes here.

Provenance

The following attestation bundles were made for fixr-0.2.1-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.1-cp312-cp312-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for fixr-0.2.1-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 0b93a5de7572be04ba5a3bb692c519cbb01bf605c37bb389c30d7c43a9110c49
MD5 fe635660c6ba777e62cba073a6036fd6
BLAKE2b-256 684e303494ad1240ef0c076ec0a051e8e7ca187689721958e81292adc824c600

See more details on using hashes here.

Provenance

The following attestation bundles were made for fixr-0.2.1-cp312-cp312-macosx_10_13_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.1-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for fixr-0.2.1-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0e6de4c25118f9a7b9fd824d2cd97b53a1981a24107387106ba14c6d9a235f38
MD5 9816ba3e664b5989a09a5c48bfa150d0
BLAKE2b-256 e8f95a2c7ce4d8aa903e7e7a2448149bc2274e9d42770f037d6b58fe516ec437

See more details on using hashes here.

Provenance

The following attestation bundles were made for fixr-0.2.1-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.1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for fixr-0.2.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4944abecbfc78b59ac2dcf066329e03e126fa6da93267e8268b58a12b4d6e2f0
MD5 d9193d8d87a8900955d8e755cd891981
BLAKE2b-256 ab1be879dfb13ecd7f4b268b78372fc2990d7928fc5c00583fd6596ca5f0cb10

See more details on using hashes here.

Provenance

The following attestation bundles were made for fixr-0.2.1-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.1-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for fixr-0.2.1-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 10aea8f148e035e5021c8352d8b99a33a29919430119c8030d81849207f06b44
MD5 7fa930af2c09dc77ea69bf961b3d61c2
BLAKE2b-256 79740f77720479b4b8fb50a8964464426df02b94cd1eb60edda7b78c678aee57

See more details on using hashes here.

Provenance

The following attestation bundles were made for fixr-0.2.1-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.1-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for fixr-0.2.1-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a04044ab0aad72212e11f3cebee3563d8af9c0b13d663c9679c731e889f4799e
MD5 7c259185dd68c7298d8a61378d987baf
BLAKE2b-256 5a6325485218c4a8c81ee10a29db77dc049d8d055d00626b605c2b187ac19b80

See more details on using hashes here.

Provenance

The following attestation bundles were made for fixr-0.2.1-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.1-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for fixr-0.2.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e60977cba1736bab7df9be2818990fb24f6e8afcd62d2908323d7fb630ee3790
MD5 7f04890b9ecfedda2f4022111cf7b8df
BLAKE2b-256 0adcb1b2a5a42a5bbf5122ea9453c38f9ec25110bb5f134d10a86ffd94c4056b

See more details on using hashes here.

Provenance

The following attestation bundles were made for fixr-0.2.1-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.1-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for fixr-0.2.1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 1e01ac032138405d6e7fcc905d4f095d3ae7a7b343bb62314b6f357adc6f9d8d
MD5 140cde61860e53ca76368c105b632656
BLAKE2b-256 1174100b70322cd347b784621a0ba69686e18b08a8495c7207900800a868fe9e

See more details on using hashes here.

Provenance

The following attestation bundles were made for fixr-0.2.1-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