Skip to content

Commit 4260a86

Browse files
chores: update script to show we can use adapters and strings
1 parent c2e1008 commit 4260a86

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

sandbox/use_case_downloaders.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,18 @@ def main():
2424
logger.critical('This is a CRITICAL message')
2525

2626
# Call a given downloader from OntoGraph
27-
#downloader = PoochDownloaderAdapter(cache_dir=cache_dir)
28-
downloader = DownloadManagerAdapter(cache_dir=cache_dir)
27+
downloader = PoochDownloaderAdapter(cache_dir=cache_dir)
28+
# downloader = DownloadManagerAdapter(cache_dir=cache_dir)
2929

3030
# Download a catalog
31-
catalog = ClientCatalog(cache_dir=cache_dir, downloader=downloader)
31+
catalog = ClientCatalog(cache_dir=cache_dir, downloader=downloader) # using Pooch Adapter
3232
catalog.load_catalog()
3333

3434
# print the schema tree
3535
#catalog.print_catalog_schema_tree()
3636

3737
# Download a given ontology
38-
client = ClientOntology(cache_dir=cache_dir, downloader=downloader)
38+
client = ClientOntology(cache_dir=cache_dir, downloader="download_manager") # using string
3939
client.load(source='go') # catalog download
4040

4141
# Print roots of GO ontology

0 commit comments

Comments
 (0)