export to ecotaxa format#101
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
Adds a new to_ecotaxa function that generates a ZIP archive containing PNG images and a TSV metadata file for import into EcoTaxa or compatible tools.
- Introduces
to_ecotaxainifcb/data/export.pyto export images and metadata. - Writes image files and assembles a TSV metadata file with manual header/type rows.
- Uses
pandasandBytesIOto build and write the TSV into the ZIP.
Comments suppressed due to low confidence (3)
ifcb/data/export.py:10
- [nitpick] The parameter name
bis ambiguous; consider renaming it to something more descriptive likebin_objorifcb_binto clarify its purpose.
def to_ecotaxa(b, zip_path=None):
ifcb/data/export.py:10
- Add a docstring for
to_ecotaxato explain its parameters, behavior, and the format of the resulting ZIP archive.
def to_ecotaxa(b, zip_path=None):
ifcb/data/export.py:10
- A new export function was added without any accompanying tests; consider adding unit tests to verify ZIP contents and TSV formatting.
def to_ecotaxa(b, zip_path=None):
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
johnwaalsh
reviewed
Jul 2, 2025
johnwaalsh
approved these changes
Jul 2, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Provides a
to_ecotaxafunction that produces a compressed archive of an IFCB bin containing pngs and necessary metadata for import into ecotaxa or ecotaxa-compatible tools such as morphocluster.