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 (or data)
data = tcfile[0]
print(f"shape of data : {data.shape}")
# or
for data in tcfile:
# do some operations on the data ...
pass
TODO
- fluorescence data reader
- TCFile compressor/decompressor for portability
- rich documentation
- rigorous tests
- TCFile writer ?
- 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.9.tar.gz
(6.4 kB
view details)
Built Distribution
File details
Details for the file tcfile-2024.9.tar.gz
.
File metadata
- Download URL: tcfile-2024.9.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e00b12eb92210178ef5395d335d441f6207e3397ab4e17309b4fb68615ae6862 |
|
MD5 | 8f91bb0fc9474d1099cc37a3906b1b58 |
|
BLAKE2b-256 | ae13eaba3f1ea816a45aee35d89dd3dd092b14456cabd28b30d21b7a56198392 |
File details
Details for the file tcfile-2024.9-py3-none-any.whl
.
File metadata
- Download URL: tcfile-2024.9-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4403203dbed3b65e1b9c208ef0d37337c36fa415ba5edd22ea47ed6f9a97f3fd |
|
MD5 | f30ca960f458a75f7b7a5d84fc673f7a |
|
BLAKE2b-256 | 307f5f211d13ee4411d32233ff672fe5a17290e9d057537222d041ae65b8e0f2 |