Skip to content

Commit

Permalink
Update printout structure
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-turner-1 committed Jan 24, 2025
1 parent bd33b58 commit a9aac2a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/access_nri_intake/experiment/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ def use_datastore(
f"{Fore.GREEN}Generating esm-datastore for {experiment_dir}{Style.RESET_ALL}"
)

scaffold_cmd = "scaffold_catalog_entry" if open_ds else "scaffold-catalog-entry"
ds_full_path = str((catalog_dir / f"{datastore_name}.json").absolute())

if not ds_info.valid:
builder_instance: Builder = builder(path=str(experiment_dir))
print(f"{Fore.BLUE}Building esm-datastore...{Style.RESET_ALL}")
Expand All @@ -103,11 +106,6 @@ def use_datastore(
directory=str(catalog_dir),
)

ds_full_path = str((catalog_dir / f"{datastore_name}.json").absolute())

scaffold_cmd = "scaffold_catalog_entry" if open_ds else "scaffold-catalog-entry"

if ds_info.valid:
print(
f"{Fore.GREEN}Datastore sucessfully written to {Fore.CYAN}{Style.BRIGHT}{ds_full_path}{Style.NORMAL}{Fore.GREEN}!"
f"\n{Fore.BLUE}Please note that this has not added the datastore to the access-nri-intake catalog."
Expand Down

0 comments on commit a9aac2a

Please sign in to comment.