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")

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.1.tar.gz (10.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.1-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: libflowcam-0.1.tar.gz
  • Upload date:
  • Size: 10.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.1.tar.gz
Algorithm Hash digest
SHA256 11f4834d9d70043896f04c9b18e7f2ae994c9507a1d105eb1ae913970e623668
MD5 4730e34a4bdfd4345a8ec061811b2f31
BLAKE2b-256 a3979fa4978165d3c36ba55e871cb601fb3b0c7e0b74803edba9cac496cfe1e3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: libflowcam-0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.0 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f2fde18c84a6d546974ede62a8fa1d22b8d24d7446c1c63234ba419117327747
MD5 7330a0be607dbfafdd4e5d19c88358cc
BLAKE2b-256 eb6c164e635aa29d77090253b9c7fc50c1cc31320ab07ca8c23cc3a8fae385d9

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