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.3.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.3-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pybif6-0.1.3.tar.gz
  • Upload date:
  • Size: 15.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.25.9 CPython/3.13.7 Linux/6.16.3-zen1-1-zen

File hashes

Hashes for pybif6-0.1.3.tar.gz
Algorithm Hash digest
SHA256 4f1b765f0ee135d107d370dc7528c6002c1b4ea9e8e354456ff76105a9430a00
MD5 dd6e16895086a033da9daa2fa3efdc9a
BLAKE2b-256 aaee5f820f5a101945651bcecfdcfffb9153a7236342e08a0a5ddd9997e8d337

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pybif6-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 405ee1d61e50120872bf49e8242623564e067a95550cfb68607cfba2410fff92
MD5 7a9f01f42233357e641915f93b750275
BLAKE2b-256 a7a3a7f79dfc1b851670f8c6b6f224ed43d8a36b8ff4b591c6aa6dbf13fe5815

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