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
Release history Release notifications | RSS feed
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.11.0.tar.gz
(6.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tcfile-2024.11.0.tar.gz.
File metadata
- Download URL: tcfile-2024.11.0.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6fd4ed5b25e2f482bb53a1beee5744742292f2c29229b316d9e995b96f4f6878
|
|
| MD5 |
b254c70e85b3e06fcf9259fdca9fd65d
|
|
| BLAKE2b-256 |
8e9f9507a6d958cf8cab0ca46bb40085246558a8c853ac0728e36294286411cf
|
File details
Details for the file tcfile-2024.11.0-py3-none-any.whl.
File metadata
- Download URL: tcfile-2024.11.0-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
372fa50e413615be67fb452672a182569a7be596fc3a1c9ddc814455b1aa5fd0
|
|
| MD5 |
54b70c01e04a5a642b409969ff74c916
|
|
| BLAKE2b-256 |
a88b4c3bfe8d699505fc11460bd930abc1a781504b021dfa07b04df2571f8c6b
|