Skip to content

Commit 99f8a44

Browse files
carlkesselmanclaude
andcommitted
Fix API discrepancies with deriva-ml
- catalog.py: Change format_report() to to_text() for CloneReport - dataset.py: Change find_dataset() to lookup_dataset() Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent feba348 commit 99f8a44

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/deriva_ml_mcp/tools/catalog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ async def clone_catalog(
637637
}
638638
response["clone_type"] = "cross_server" if dest_hostname and dest_hostname != source_hostname else "same_server"
639639
response["message"] = f"Catalog {'subset ' if root_rid else ''}migrated from {source_hostname}:{source_catalog_id} to {result.hostname}:{result.catalog_id}"
640-
response["report_summary"] = result.report.format_report()
640+
response["report_summary"] = result.report.to_text()
641641

642642
return json.dumps(response)
643643

src/deriva_ml_mcp/tools/dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1034,7 +1034,7 @@ async def restructure_assets(
10341034
ml = conn_manager.get_active_or_raise()
10351035

10361036
# Download the dataset as a bag
1037-
dataset = ml.find_dataset(dataset_rid)
1037+
dataset = ml.lookup_dataset(dataset_rid)
10381038
if version:
10391039
dataset = dataset.set_version(version)
10401040

0 commit comments

Comments
 (0)