edoddridge / aronnax

An idealised isopycnal model that can be run either with n+1/2 layers, or with n layers and variable bathymetry.
http://aronnax.readthedocs.io/en/latest/
MIT License
24 stars 6 forks source link

Output handling #204

Closed edoddridge closed 6 years ago

edoddridge commented 6 years ago

A grab bag of fixes and new features related to handling model output.

This PR implements a fix for #197 and ensures that the output is presented to users with axes in the order (z,y,x). It also implements a function to lazily load in multiple timestamps of a field. This new function provides some metadata for the array (axis labels and values). The metadata could be expanded, and perhaps even by making the function automatically look for aronnax-merged.conf and ingest lots of metadata from there.

Finally, some tests were added for the new functionality which required the addition of some more modules to the Travis install.

codecov[bot] commented 6 years ago

Codecov Report

Merging #204 into master will increase coverage by 0.15%. The diff coverage is 95.55%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #204      +/-   ##
==========================================
+ Coverage   90.38%   90.53%   +0.15%     
==========================================
  Files          19       19              
  Lines        1570     1596      +26     
  Branches       82       82              
==========================================
+ Hits         1419     1445      +26     
- Misses        124      125       +1     
+ Partials       27       26       -1
Impacted Files Coverage Δ
aronnax/core.py 96.05% <95.55%> (-0.56%) :arrow_down:
src/model_main.f90 95.65% <0%> (+1.73%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update de3ae35...c6b03f8. Read the comment docs.