Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

64 update re id tool.py to not rely on the changesheets submit endpoint #65

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading