Skip to main content

A Python module for interacting with IFCB data.

Project description

libflowcam

An optimised, native Python library for working with FlowCam data. Implements lazy-loading wherever possible and maintains open file pointers for speedy access. Returns standard Pillow image objects for further processing.

Example

from libflowcam import ROIReader

# Represents a typical sample density
sample1 = ROIReader("testdata/flowcam_polina_pontoon_0907_r2/flowcam_polina_pontoon_0907_r2.csv")
print(str(len(sample1.rois)) + " ROIs") # Should be 6268 ROIs
for roi_index in [10, 100, 1000]:
    sample1.rois[roi_index].image.save("testout/flowcam_polina_pontoon_0907_r2_" + str(roi_index) + ".png")

# A very dense sample, this is a cruel test
sample2 = ROIReader("testdata/flowcam_polina_pontoon_0707_r1/flowcam_polina_pontoon_0707_r1.csv")
print(str(len(sample2.rois)) + " ROIs") # Should be 137015 ROIs
for roi_index in [10, 100, 1000, 10000, 100000]:
    sample2.rois[roi_index].image.save("testout/flowcam_polina_pontoon_0707_r1_" + str(roi_index) + ".png")

Note

This library has been built with no internal knowledge of the FlowCam software, and the data output format was reverse engineered soley from output data. It would therefore be highly appreciated if users could contribute data that breaks the library in order to better accomodate for all use cases.

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

libflowcam-0.2.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

libflowcam-0.2-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file libflowcam-0.2.tar.gz.

File metadata

  • Download URL: libflowcam-0.2.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for libflowcam-0.2.tar.gz
Algorithm Hash digest
SHA256 04747d3585a76383651a91a6327e87366136403ac1d7dbbb88524ed72fd1c35f
MD5 6c70d1e8d0f77c9345d696af9ebfee50
BLAKE2b-256 85f1443d2491c88232002712be011ca8bd85bcad9baaae5e48bf67d7b161b14d

See more details on using hashes here.

File details

Details for the file libflowcam-0.2-py3-none-any.whl.

File metadata

  • Download URL: libflowcam-0.2-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for libflowcam-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dfb6399253e0efa53751b7758e0041160707eea01300e3b331c5ebe0cb49cd59
MD5 a564dc3d241c4da6257bb0724e87bf4b
BLAKE2b-256 4085b65194c01c470b625ae311e96239ab41a324cacb3430f52068b8e2be85e9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page