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.2.tar.gz
(6.3 kB
view details)
Built Distribution
File details
Details for the file tcfile-2024.2.tar.gz
.
File metadata
- Download URL: tcfile-2024.2.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a71a1ec4098e24f4c935c8d06648aaa30dbc4044fb577c628d704b339033cd7 |
|
MD5 | 8e37f970dbbc6ece299475aab784688a |
|
BLAKE2b-256 | f3efad5cdad8c47c0d673afe5c5a86f27defbab0eba3ecf7334df11c5e06584a |
File details
Details for the file tcfile-2024.2-py3-none-any.whl
.
File metadata
- Download URL: tcfile-2024.2-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b4d4f7ff85943cea3d5be8f139ffa4894dd509f80b25944764fe8f9f34189bf |
|
MD5 | 51014f2c5492a93fe409ef68e8dfa545 |
|
BLAKE2b-256 | dead7fcef4c5911a21b328c47df1fd22a470af809a448eb5afd88ad490cdaa22 |