NOAA-ORR-ERD / gridded

A single API for accessing / working with gridded model results on multiple grid types
https://noaa-orr-erd.github.io/gridded/index.html
The Unlicense
64 stars 14 forks source link

Change to surface_index in depthbase should clear cache #84

Open AmyMacFadyen opened 8 months ago

AmyMacFadyen commented 8 months ago

If you have a GridCurrent object and you use the .at() method on a particular location/time the results are cached and used by subsequent requests for that location. However, if a user changes the depth_index on the DepthBase object they will then get the wrong result. The cache needs to be cleared in that case.