-
Notifications
You must be signed in to change notification settings - Fork 18
Add different download directories for JRA55 and Bathymetry #180
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
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #180 +/- ##
=====================================
Coverage 0.00% 0.00%
=====================================
Files 31 31
Lines 1730 1732 +2
=====================================
- Misses 1730 1732 +2 ☔ View full report in Codecov by Sentry. |
src/DataWrangling/ecco_metadata.jl
Outdated
@@ -16,6 +22,7 @@ struct ECCOMetadata{D, V} | |||
name :: Symbol | |||
dates :: D | |||
version :: V | |||
dir :: String |
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.
what? why?
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.
I could also revert it back, but it is nice to know the path of the directory where the data resides, compactly in the metadata information
The PR isn't well motivated. The problem described has to do with improper initialization of the tests. During test initialization we apparently should download all relevant data. This can be done by adding to the ClimaOcean.jl/test/runtests.jl Lines 7 to 10 in ddea939
I'm not sure about the other changes regarding download directories. Maybe are positive. But making these changes for tests is clearly wrong. |
This PR won't fix the issue that will arise eventually (hopefully) when more than one test group has to use the downloaded bathymetry data. |
Ok i wll try downloading data in the init step |
This PR should be ready to go. We have to remember to add the data we download in the tests in the init when adding new tests. |
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.
I think init for any module should always go in the top-level file. It's going to be hard to find otherwise. Plus we want the top-level file to give an overview of the module.
Was trying to run ps. NOAA servers struggled during past weeks after Hurricane Helene, which may explain the 503 error
|
Huh, this looks like an issue downloading the etopo data (which happens in ClimaOcean.jl/examples/near_global_ocean_simulation.jl Lines 55 to 58 in fc175f6
@gaelforget can you check to see if it is still broken? Another solution is you can provide a |
I have noticed that JRA55 and Bathymetry tests might struggle because they are split into CPU and GPU tests. Sometimes, one of the tests downloads the files while the other wants to read them before the downloading process is complete, and the tests fail with a NetCDF (101) error. By splitting the download directory into two different paths for CPU and GPU, this problem can be solved.
This PR also introduces a download directory for the ECCO module directly in the
ECCOMetadata
type. This is a first step to generalize theMetadata
type for all the data we need to download