Skip to content
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

Typo in the error message send by ds #234

Open
oliviermarti opened this issue Dec 15, 2021 · 1 comment
Open

Typo in the error message send by ds #234

oliviermarti opened this issue Dec 15, 2021 · 1 comment

Comments

@oliviermarti
Copy link

I define a dataset with an error (the variable does not exists) :

>>> tt = ds ( **{'project': 'IGCM_OUT', 'simulation': 'CM5A2-VLR-pi-Par01', 'variable': 'flat', 'period': '6020-6099', 'domain': 'global', 'root': '/thredds/tgcc/store', 'login': 'p86mart', 'model': 'IPSLCM5A2', 'status': 'PROD', 'experiment': 'piControl', 'DIR': 'SRF', 'OUT': 'Analyse', 'ave_length': '*', 'frequency': 'monthly', 'clim_period': '????_????', 'clim_period_length': '*', 'filenameVar': 'histmth'} )

Then I run cfile

>>> cfile(tt)
warning  : no file found for {'project': 'IGCM_OUT', 'simulation': 'CM5A2-VLR-pi-Par01', 'variable': 'flat', 'period': 6020-6099, 'domain': 'global', 'root': '/thredds/tgcc/store', 'login': 'p86mart', 'model': 'IPSLCM5A2', 'status': 'PROD', 'experiment': 'piControl', 'DIR': 'SRF', 'OUT': 'Analyse', 'ave_length': '*', 'frequency': 'monthly', 'clim_period': '????_????', 'clim_period_length': '*', 'filenameVar': 'histmth'}, at these data locations ...

This printed dictionary has no quote around the value of 'period'. A copy/paste in a python shell generates strange errors that can puzzle the error : it computes period=6020-6099=-79 and a strange error about erroneous date pops up !

Olivier

@senesis
Copy link
Collaborator

senesis commented Dec 15, 2021 via email

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

No branches or pull requests

2 participants