Skip to main content

ToF-SIMS BIF6 file parsing library

Project description

pybif6

PyPI - Version

This tiny project rewrites the BIF6 file parsing part of the R package tofsims in Python.

Usage

import pybif6

with pybif6.parse_bif6("path/to/bif6/file") as bif6_file:
    for inteval_image in bif6_file:
        print(
            f'id: {inteval_image.id}, '
            f'mz_lower: {inteval_image.mz_lower}, '
            f'mz_middle: {inteval_image.mz_middle}, '
            f'mz_upper: {inteval_image.mz_upper}, '
            f'image: {inteval_image.image.shape}'
        )
        # The image data is stored in `inteval_image.image`, a 2D numpy array.

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

pybif6-0.1.2.tar.gz (15.0 kB view details)

Uploaded Source

Built Distribution

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

pybif6-0.1.2-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file pybif6-0.1.2.tar.gz.

File metadata

  • Download URL: pybif6-0.1.2.tar.gz
  • Upload date:
  • Size: 15.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.22.4 CPython/3.13.2 Linux/6.13.7-zen1-1-zen

File hashes

Hashes for pybif6-0.1.2.tar.gz
Algorithm Hash digest
SHA256 9a74c3fba4540c8ca0d66bf7dae350b79c470fc26dd8ba4ca79f6fcf08b44128
MD5 f0ac730166a1b12da190c496933c6100
BLAKE2b-256 3afc5e151102449693d02626b924bb0900aa7ec150391637ab40e946a0c3441d

See more details on using hashes here.

File details

Details for the file pybif6-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pybif6-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 15.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.22.4 CPython/3.13.2 Linux/6.13.7-zen1-1-zen

File hashes

Hashes for pybif6-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1cf6d8e2049219d8b26b5053ea6e22b8a4c89e035f1802d0d325c026c57e4bd1
MD5 4412fe8c52bd24f7018dfc555ad2b5eb
BLAKE2b-256 4d5e20880ab8a15f576471c750b616d6209483a62bcb395609c7766fa2de5654

See more details on using hashes here.

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