Skip to main content

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

Metadata

Release files for TCFile 2024.11.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for TCFile 2024.11.0
File Size Uploaded
tcfile-2024.11.0.tar.gz 6.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for TCFile 2024.11.0
File Interpreter ABI Platform
tcfile-2024.11.0-py3-none-any.whl Python 3 none any Details

Total release size: 12.6 kB

Release files / tcfile-2024.11.0.tar.gz

Download URL tcfile-2024.11.0.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
6fd4ed5b25e2f482bb53a1beee5744742292f2c29229b316d9e995b96f4f6878
BLAKE2b-256 checksum
How to use checksums
8e9f9507a6d958cf8cab0ca46bb40085246558a8c853ac0728e36294286411cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.32.3

Release files / tcfile-2024.11.0-py3-none-any.whl

Download URL tcfile-2024.11.0-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
372fa50e413615be67fb452672a182569a7be596fc3a1c9ddc814455b1aa5fd0
BLAKE2b-256 checksum
How to use checksums
a88b4c3bfe8d699505fc11460bd930abc1a781504b021dfa07b04df2571f8c6b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.32.3

Release history Release notifications | RSS feed

This release

2024.11.0 This release

2 release files

2024.9

2 release files

2024.2

2 release files

2023.7

2 release files

2023.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page