-
Notifications
You must be signed in to change notification settings - Fork 10
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
Fix bug in converted forcings filepath #185
Fix bug in converted forcings filepath #185
Conversation
Previously the lagtraj prefix (`lagtraj://`) was erroneously included in the filepath of the yaml-file defining how the conversion is done. Closes EUREC4A-UK#184
this is ready for review @sjboeing when you have a moment. Fixes #184 $> python -m lagtraj.forcings.create lagtraj://eurec4a_20200202_first_short --conversion lagtraj://dephy
100%|█████████████████████████████████████████████████
Wrote forcing file to `/home/leifdenby/git-repos/lagtraj/data/forcings/eurec4a_20200202_first_short.nc`
Wrote converted forcing file to `/home/leifdenby/git-repos/lagtraj/data/forcings/eurec4a_20200202_first_short.dephy.nc`
$> tree data
data
├── domains
│ ├── eurec4a_circle_data
│ │ ├── an_model_2020-02-02.nc
│ │ ├── an_single_2020-02-02.nc
│ │ ├── fc_model_2020-02-01.nc
│ │ ├── fc_model_2020-02-02.nc
│ │ ├── fc_single_2020-02-01.nc
│ │ ├── fc_single_2020-02-02.nc
│ │ └── VERSION
│ └── eurec4a_circle.yaml
├── forcings
│ ├── eurec4a_20200202_first_short.dephy.nc
│ ├── eurec4a_20200202_first_short.dephy.yaml
│ ├── eurec4a_20200202_first_short.nc
│ └── eurec4a_20200202_first_short.yaml
└── trajectories
├── eurec4a_20200202_first_short.nc
└── eurec4a_20200202_first_short.yaml
4 directories, 14 files |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @leifdenby. May be quickest to go over this quickly tomorrow, it looks good but I need to get my head around the different subtypes, desc etc.
The whole "types" and "subtypes" of input definitions is a bit hacky anyway. I should write a docstring for lagtraj/lagtraj/input_definitions/load.py Line 31 in 655b41c
|
@leifdenby: are you happy to merge this in, maybe we can add some more documentation later? |
Tests are failing because python 3.6 is no longer supporting in Github actions CI. I'm trying to work around that in #186 I think we should talk about not supporting older python versions anyway. https://numpy.org/neps/nep-0029-deprecation_policy.html#drop-schedule |
Previously the lagtraj prefix (
lagtraj://
) was erroneously included in the filepath of the yaml-file defining how the conversion is done.Closes #184