Skip to content

Add function to generate rootpath entry for user config#15

Merged
nielsdrost merged 5 commits intomasterfrom
get_rootpaths
Jan 6, 2021
Merged

Add function to generate rootpath entry for user config#15
nielsdrost merged 5 commits intomasterfrom
get_rootpaths

Conversation

@stefsmeets
Copy link
Contributor

This PR adds a function to get the rootpath structure for the user config.
This is needed for ESMValGroup/ESMValCore#907

In [1]: from esmvaltool_sample_data import get_rootpaths
In [2]: get_rootpaths()
Out[2]:
{'rootpath': {'CMIP6': ['/home/stef/r/esmvaltool_sample_data/esmvaltool_sample_data/data/timeseries/CMIP6']},
 'drs': {'CMIP6': 'default'}}

Co-authored-by: Bouwe Andela <b.andela@esciencecenter.nl>
@stefsmeets stefsmeets requested a review from bouweandela January 5, 2021 13:50
Copy link
Member

@nielsdrost nielsdrost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @stefsmeets for taking care of all the comments by @bouweandela!

@nielsdrost nielsdrost merged commit f77f75e into master Jan 6, 2021
@nielsdrost nielsdrost deleted the get_rootpaths branch January 6, 2021 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants