Python package for handling TCF data. It works with Tomcube data
Project description
TCFile python package
Basic image processing tools of tomocube data.
Installation
After downloading the repository, execute the following command in the repository;
pip install .
Note
It is not for normal users, and API is not fixed. Please use this package with full understanding. Any suggestions and comments are welcome!
Use case
from TCFile import *
tcfile = TCFile('test.TCF','3D') # for now, it only read 3D RI data
print(f"number of snapshots : {len(tcfile)}")
## Usage 1: handling a data for each snapshot
data = tcfile[0]
print(f"shape of data : {data.shape}")
# or
for data in tcfile:
# do some operations on the data ...
pass
Test (for development and contribution)
pytest TCFile/tests/TCFhandler.py
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-2023.2.tar.gz
(4.5 kB
view details)
Built Distribution
File details
Details for the file TCFile-2023.2.tar.gz
.
File metadata
- Download URL: TCFile-2023.2.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.25.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 017029b8f6c306d067fdd48143950ec6c648d3e3aa052f9cceb552bc19eae96e |
|
MD5 | 8a639716df96501a1516523d83b86109 |
|
BLAKE2b-256 | 08fa045f8f46c4b68cb9ad68a6eb5de1bb9955bab7013db7fc5055290406d4a2 |
File details
Details for the file tcfile-2023.2-py3-none-any.whl
.
File metadata
- Download URL: tcfile-2023.2-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.25.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 483592194934787ad64ff07960d65d4716afac69cfb17ef0b6133d407f4d1afa |
|
MD5 | 21a9cd4c1f394673ea9ac1e630857be1 |
|
BLAKE2b-256 | 8d9cd7e6b26dbece3ec8ffe1dd410f01f060cb77308d5d78bdee54cf51ab13c0 |