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.5.tar.gz (12.8 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.5-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for libflowcam-0.5.tar.gz
Algorithm Hash digest
SHA256 82cc9fee089036a6486f3d7768b2af18dd4a1ee87981bc56528fb83c303c0ff7
MD5 6e343763edf642a772d032a25103b296
BLAKE2b-256 0527ec12b756a043920bc6ceab51d8c0369d230c180e4eb1d9d413516e0ab79e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: libflowcam-0.5-py3-none-any.whl
  • Upload date:
  • Size: 10.5 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 2abc2e4c6cc26acf326c8c40bf8554d2ad96bca93acc7d536dd27c68e4053441
MD5 10911977c83ce1abb5e82aa03db887f9
BLAKE2b-256 afe098c50650d7732008dff3a836bbed7cb12feb86478f7d0c36ca92b0e5729d

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