Skip to content

Commit

Permalink
Merge pull request #65 from microbiomedata/64-update-re_id_toolpy-to-…
Browse files Browse the repository at this point in the history
…not-rely-on-the-changesheetssubmit-endpoint

64 update re id tool.py to not rely on the changesheets submit endpoint
  • Loading branch information
Michal Babinski authored Feb 23, 2024
2 parents 5e6bc47 + d69a822 commit 3a9a05f
Show file tree
Hide file tree
Showing 28 changed files with 78,282 additions and 25,451 deletions.
6 changes: 3 additions & 3 deletions nmdc_automation/re_iding/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,16 +253,16 @@ def update_metagenome_assembly_set(self, db_record: Dict,
logger.warning(f"Data object url not found for {old_do_id} - {old_do_rec['description']}")
old_url = f"{DATA_BASE_URL}/{omics_processing_id}/assembly/{old_do_rec['name']}"
logger.warning(f"Using inferred url: {old_url}")
new_file_path = compute_new_data_file_path(old_do_rec["url"], new_assembly_base_dir, new_activity_id)
new_file_path = compute_new_data_file_path(old_url, new_assembly_base_dir, new_activity_id)

if update_links:
updated_md5, updated_file_size = assembly_file_operations(
old_do_rec, data_object_type, new_file_path, new_activity_id,
self.data_dir)
logging.info(f"Updated md5: {updated_md5}, updated file size: {updated_file_size}")
else:
updated_md5 = old_do_rec["md5_checksum"]
updated_file_size = old_do_rec["file_size_bytes"]
updated_md5 = old_do_rec.get("md5_checksum")
updated_file_size = old_do_rec.get("file_size_bytes")

logging.info(f"New file path computed for {data_object_type}: {new_file_path}")

Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 3a9a05f

Please sign in to comment.