Skip to content

Commit

Permalink
Remove some unnecessary lines added by the PR
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanjli committed Sep 16, 2024
1 parent 67574ee commit a8d193e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions processing/segmenter/planktoscope/segmenter/ecotaxa.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import zipfile
import os
import io
import json

"""
Example of metadata file received
Expand Down Expand Up @@ -218,7 +217,7 @@ def dtype_to_ecotaxa(dtype):



def ecotaxa_export(archive_filepath, metadata, image_base_path,keep_files=False):
def ecotaxa_export(archive_filepath, metadata, image_base_path, keep_files=False):
"""Generates the archive compatible with an export to ecotaxa
Args:
Expand Down Expand Up @@ -274,7 +273,7 @@ def ecotaxa_export(archive_filepath, metadata, image_base_path,keep_files=False)

# create the filename with the acquisition ID
acquisition_id = metadata.get("acq_id")
acquisition_id=acquisition_id.replace(" ","_")
acquisition_id = acquisition_id.replace(" ","_")
tsv_filename = f"ecotaxa_{acquisition_id}.tsv"

# add the tsv to the archive
Expand All @@ -289,7 +288,5 @@ def ecotaxa_export(archive_filepath, metadata, image_base_path,keep_files=False)
tsv_content.to_csv(
path_or_buf=tsv_file, sep="\t", encoding="utf-8", index=False
)

logger.success("Ecotaxa archive is ready!")

return 1
return 1

0 comments on commit a8d193e

Please sign in to comment.