-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
esmvalcore.local._path2facets error when drs path contains elements which are not keys #2502
Comments
Noting the my proposed solution fails when keys are intermixed with text... e.g., This works though:
|
hi @k-a-webb and many thanks for raising this! Correct me if I'm wrong, but you are trying to map
to a path like
but that'll never work since |
Hi!
I can see how this is necessary for The code I suggested does not require every element in the path to be a placeholder. This is helpful when there is a set organization to your data (which in this case includes many fixed subdirectory names), but you want to limit the number of parameters required to define a dataset. |
@k-a-webb You're welcome to make a pull request to improve this, it looks like you already have some good ideas. You could probably set |
When
drs
is a path with both configurable (e.g.,{user}
) and not configurable (e.g.,nc_output
) keys,_path2facets
indexing of keys and paths fails.Example:
Gives the following error:
It incorrectly pairs keys to facets:
and then fails when the indexing does not match.
A solution is to record the index of
path.split
:The text was updated successfully, but these errors were encountered: