Name | libifcb JSON |
Version |
0.6
JSON |
| download |
home_page | None |
Summary | A Python module for interacting with IFCB data. |
upload_time | 2025-07-30 10:36:51 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.6 |
license | LGPL-3.0 |
keywords |
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# libifcb
A native Python library for working with IFCB data.
## Example
```python
from libifcb import ROIReader
import json
sample = ROIReader("testdata/D20140117T003426_IFCB014.hdr", "testdata/D20140117T003426_IFCB014.adc", "testdata/D20140117T003426_IFCB014.roi")
print(json.dumps(sample.header, indent=4)) # We can read the header, with cleaned variable names, as a dictionary
for trigger in sample.triggers:
print(json.dumps(trigger.raw, indent=4)) # We can also dump raw trigger data as dictionaries
print(str(len(sample1.rois)) + " ROIs") # How many actual ROIs did we get?
sample.rois[1899].image.save("testout/D20140117T003426_IFCB014_02177.png") # This list only contains valid ROIs - indexes will not match with other software!
sample.rows[2176].image.save("testout/D20140117T003426_IFCB014_02177.tiff") # ADC row indexes start from one, but we start from zero to be pythonic - This will return None types for 0-ROI triggers!
sample.triggers[2102].rois[0].image.save("testout/D20140117T003426_IFCB014_02177.jpeg") # As do trigger indexes, this is trigger #2103
#NB: These are not standard python lists. Image data is only extracted when requested. Image data is extracted as PIL images.
```
Raw data
{
"_id": null,
"home_page": null,
"name": "libifcb",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": null,
"author": null,
"author_email": "Alex Baldwin <contact@alexbaldwin.dev>",
"download_url": "https://files.pythonhosted.org/packages/8f/bc/e60d4706cd70b88cfda09a2870ddf94286ef3b488d5ec9a8632a925dab9f/libifcb-0.6.tar.gz",
"platform": null,
"description": "# libifcb\nA native Python library for working with IFCB data.\n\n## Example\n```python\nfrom libifcb import ROIReader\nimport json\n\nsample = ROIReader(\"testdata/D20140117T003426_IFCB014.hdr\", \"testdata/D20140117T003426_IFCB014.adc\", \"testdata/D20140117T003426_IFCB014.roi\")\n\nprint(json.dumps(sample.header, indent=4)) # We can read the header, with cleaned variable names, as a dictionary\n\nfor trigger in sample.triggers:\n print(json.dumps(trigger.raw, indent=4)) # We can also dump raw trigger data as dictionaries\nprint(str(len(sample1.rois)) + \" ROIs\") # How many actual ROIs did we get?\n\nsample.rois[1899].image.save(\"testout/D20140117T003426_IFCB014_02177.png\") # This list only contains valid ROIs - indexes will not match with other software!\nsample.rows[2176].image.save(\"testout/D20140117T003426_IFCB014_02177.tiff\") # ADC row indexes start from one, but we start from zero to be pythonic - This will return None types for 0-ROI triggers!\nsample.triggers[2102].rois[0].image.save(\"testout/D20140117T003426_IFCB014_02177.jpeg\") # As do trigger indexes, this is trigger #2103\n\n#NB: These are not standard python lists. Image data is only extracted when requested. Image data is extracted as PIL images.\n```\n",
"bugtrack_url": null,
"license": "LGPL-3.0",
"summary": "A Python module for interacting with IFCB data.",
"version": "0.6",
"project_urls": {
"Homepage": "https://github.com/NOC-OI/libifcb",
"Issues": "https://github.com/NOC-OI/libifcb/issues"
},
"split_keywords": [],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "155ee736c2b185e3afbb6495e8a97e5a8f9d83e5b030cad604ceaca5f0545111",
"md5": "845b3b3368e29e992f127d67c0fe6f55",
"sha256": "1b9a33c734c34f9256560cef5590d61939e7fdb7d934d805cbb0d0818fa3da0c"
},
"downloads": -1,
"filename": "libifcb-0.6-py3-none-any.whl",
"has_sig": false,
"md5_digest": "845b3b3368e29e992f127d67c0fe6f55",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 8265,
"upload_time": "2025-07-30T10:36:50",
"upload_time_iso_8601": "2025-07-30T10:36:50.378205Z",
"url": "https://files.pythonhosted.org/packages/15/5e/e736c2b185e3afbb6495e8a97e5a8f9d83e5b030cad604ceaca5f0545111/libifcb-0.6-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "8fbce60d4706cd70b88cfda09a2870ddf94286ef3b488d5ec9a8632a925dab9f",
"md5": "5bf2d9d613b1bd3a77b04d94b494aade",
"sha256": "662f3ae7ab716de67273738c088085a91571361cacba230e26f4fb2700c29226"
},
"downloads": -1,
"filename": "libifcb-0.6.tar.gz",
"has_sig": false,
"md5_digest": "5bf2d9d613b1bd3a77b04d94b494aade",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 10219,
"upload_time": "2025-07-30T10:36:51",
"upload_time_iso_8601": "2025-07-30T10:36:51.833528Z",
"url": "https://files.pythonhosted.org/packages/8f/bc/e60d4706cd70b88cfda09a2870ddf94286ef3b488d5ec9a8632a925dab9f/libifcb-0.6.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-30 10:36:51",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "NOC-OI",
"github_project": "libifcb",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "libifcb"
}