Skip to main content

Python package for handling TCF data. It works with Tomcube data

Project description

TCFile python package

A basic image processing tool of tomocube data.

Installation

pip install TCFile

Use case

from TCFile import TCFile

tcfile = TCFile('test.TCF','3D') # ready for return 3D RI images
print(f"number of snapshots : {len(tcfile)}")

## Usage 1: handling each snapshots (numpy array)
data = tcfile[0]
print(f"shape of data : {data.shape}")
# or
for data in tcfile:
    # do some operations on the data ...
    pass

## Usage 2: handling fluorescence array
tcfile_fl = TCFile('test.TCF','3DFL')
fl_data = tcfile_fl[0]

## Usage 2: handling dask array
data = tcfile.asdask() # (T, Z, Y, X) array

Limitation

It does not support TCF writer due to the difficulty of configuring metadata and interoperability with commercial Tomocube software.

TODO

  • rigorous tests
  • TCFile converter

Any suggestions and comments are welcome!

Test

# install this package in editable mode
git clone https://github.com/ehgus/TCFile.git
cd TCFile
pip install -e .
# execute pytest
pytest

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

tcfile-2024.10.1.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

tcfile-2024.10.1-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file tcfile-2024.10.1.tar.gz.

File metadata

  • Download URL: tcfile-2024.10.1.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.3

File hashes

Hashes for tcfile-2024.10.1.tar.gz
Algorithm Hash digest
SHA256 1a2e63e46ca97c6390a69e212eeee3392b08491f2319e44608ce5d6f8fd39085
MD5 965d90d6c7c54420f4bf9c44da965624
BLAKE2b-256 95423b0711a394a17e3beffe68742c73be1cbea7848df11d78702a8ff323dfc7

See more details on using hashes here.

File details

Details for the file tcfile-2024.10.1-py3-none-any.whl.

File metadata

  • Download URL: tcfile-2024.10.1-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.3

File hashes

Hashes for tcfile-2024.10.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ebe7c9c425554aa68a20ca78ea5acbee436b5864a521dff48f956f9277ae87b3
MD5 7bb9a0e9c76a49ca4d7f206dd784b4b6
BLAKE2b-256 21be8e3654f044ede8f9efd78db276cb47a8b1ec5094143525f51b33c6374872

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page