ACCESS-NRI / access-nri-intake-catalog

Tools and configuration info used to manage ACCESS-NRI's intake catalogue
https://access-nri-intake-catalog.rtfd.io
Apache License 2.0
8 stars 1 forks source link

Improve CatalogManager API #128

Closed dougiesquire closed 11 months ago

dougiesquire commented 11 months ago

Is your feature request related to a problem? Please describe.

The API for the CatalogManager is pretty unintuitive

Describe the feature you'd like

Reorganise the CatalogManager class to make it a little clearer how to use. E.g. build and load methods to build + add or load + add intake sources to the catalog. These should support a driver input to specify what type of intake source is being built/loaded, with (for now) NotImplementedError returned for anything other than "esm_datastore". A save method should be introduced for saving the catalog.