Skip to content

Commit

Permalink
Change print to log
Browse files Browse the repository at this point in the history
  • Loading branch information
anna-parker committed Jul 16, 2024
1 parent 18203ce commit 340564e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions ena-submission/scripts/call_loculus.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,11 @@ def get_open_and_released_data(
data_dict: dict[str, Any] = {}
for item in entries:
if item["metadata"]["dataUseTerms"] != "OPEN":
print("Discarding entry as not OPEN for release")
logging.debug("Discarding entry as not OPEN for release")
continue
fields = [1 if item["metadata"][field] else 0 for field in config.ena_specific_metadata]
if sum(fields) > 0:
print("Discarding entry as contains ENA-specific metadata already.")
logging.debug("Discarding entry as contains ENA-specific metadata already.")
else:
key = item["metadata"]["accessionVersion"]
data_dict[key] = item
Expand Down
1 change: 1 addition & 0 deletions ena-submission/test/ena_submission_list.json

Large diffs are not rendered by default.

0 comments on commit 340564e

Please sign in to comment.