Skip to content

Commit

Permalink
fix cesm option, add path to stdout of resulting catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
bitterbark committed Apr 3, 2024
1 parent 88f1f67 commit ffc23f3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/catalog_builder/catalog_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def call_build(self, file_parse_method=None):
file_parse_method = parse_cesm_timeseries
# see https://github.com/ncar-xdev/ecgtools/blob/main/ecgtools/parsers/cesm.py
# for more parsing methods
self.cb.build(file_parse_method)
self.cb = self.cb.build(parsing_func=file_parse_method)


def load_config(config):
Expand Down Expand Up @@ -315,7 +315,8 @@ def main(config: str):

print("Time to build catalog:", timedelta(seconds=end_time - start_time))
# save the catalog
print('Saving catalog to', conf['output_filename'] + ".csv")
print('Saving catalog to', conf['output_dir'],'/',conf['output_filename'] + ".csv")

cat_obj.call_save(output_dir=conf['output_dir'],
output_filename=conf['output_filename']
)
Expand Down

0 comments on commit ffc23f3

Please # to comment.