Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes made in the code sprint into develop (#14)
* Add some hofx test data (#6) Co-authored-by: danholdaway <danholdaway@users.noreply.github.com> * Add in declarative plotting (#5) * Create figure.py * Add in the rest of declarative plotting * Fix missing EOL * pycodestyle * more pycodestyle * Remove mstats * Add missing save_figure method Co-authored-by: Dan Holdaway <27729500+danholdaway@users.noreply.github.com> * Changes to ObsCorrelationScatter to use new plotting methods (#7) * Create figure.py * Add in the rest of declarative plotting * Fix missing EOL * pycodestyle * more pycodestyle * Update obs_correlation_scatter.py * Remove mstats * Add missing save_figure method * Finish thought * Changes to plot * Small fixes * make dots blue * pycodestyle * Remove old plot routine * Move diagnostics into new, separate directory (#8) * Start to move file * add init file; modify base.py to import from eva.diagnostics * pycodestyle Co-authored-by: Dan Holdaway <27729500+danholdaway@users.noreply.github.com> * apt get CI update (#10) * Feature/new api (#9) * move to single argument api * update logger passing * norms * review comments * update requirements * req typo and review comment * req typo pasted * try removing cartopy version * cartopy 0.19 * cartopy 0.19 * fix cartopy version Co-authored-by: danholdaway <danholdaway@users.noreply.github.com> * Fix colorbar issue in `figure.py` (#11) * address colorbar issue * added note about using single colorbar * pycodestyle * Remove deprecated base class file (#13) Co-authored-by: danholdaway <danholdaway@users.noreply.github.com> * Feature/add unittests (#12) * feat: introduce unit test for the ObsCorrelationScatter method body: This unit test relies on a new method for loading yaml files which allows the user to create a substution for an environment variable identified by the yaml tag !ENVVAR . If the tag !ENVVAR exists before a yaml key value, and the environment variable specified between the {} brackets is set, the yaml load routine will substitude whatever is set in the specified environment variable. For instance, if one set an environment variable 'EVA_TESTS_DIR' to the following: export EVA_TESTS_DIR=/absolute/path/to/eva/install/location the the yaml load routine will change the following yaml key yaml_key: !ENVVAR ${EVA_TESTS_DIR}/data/datafile.nc4 to yaml_key: /absolute/path/to/eva/install/location/data/datafile.nc4 * refactor: remove unnecessary logging and associated lines * fix: update test yaml config to adopt the new format body: due to a change made to the expected format of the config yaml format, I had to fix a few yaml keys (i.e. the yaml key 'diagnostics' needed to be changed to 'applications'. I also fixed a yaml subkey 'diagnostic name' to 'application name'. * fix: accidentally moved several print statements, moving them back * fix: making changes to comply with pycodestyle * refactor: move and modify yaml loading routine body: This commit is to revert the yaml loading routine to what it was prior to the unit test addition, however it is moved to it's own method so that the unit test can substitute it's own version of 'load_yaml_file'. The logger is added to the unit test as well as the new function'load_yaml_file'. * fix: fixing bad indentation within a helper function Co-authored-by: danholdaway <danholdaway@users.noreply.github.com> Co-authored-by: Cory Martin <cory.r.martin@noaa.gov> Co-authored-by: kevindougherty-noaa <69815622+kevindougherty-noaa@users.noreply.github.com> Co-authored-by: Steve Lawrence <57503604+slawrence87544@users.noreply.github.com>
- Loading branch information