Skip to main content

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


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.3.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

tcfile-2023.3-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file TCFile-2023.3.tar.gz.

File metadata

  • Download URL: TCFile-2023.3.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.28.2

File hashes

Hashes for TCFile-2023.3.tar.gz
Algorithm Hash digest
SHA256 3a2f342babe6cdc30491ccfc03757ee789fc593cd067458cbbe032878c89466f
MD5 4fc1fcd7b739152f8e14e17e1aec57c8
BLAKE2b-256 15c77f0994cc9ea45c8fd7385d3943e8e606c42dbc9629bc077892ea2b8083fb

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for tcfile-2023.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1c95f11968e497132f4607626ebcd5b69cb51065ec1d43323b99a94d036888c2
MD5 cf9e101f437f6d9c21f54ae8b599ecb0
BLAKE2b-256 72f75e312b799cf4fef551319a5683a1385669e77b3bb482c8d6a2772672d639

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