-
Notifications
You must be signed in to change notification settings - Fork 12
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 <[email protected]> * 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 <[email protected]> * 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 <[email protected]> * 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 <[email protected]> * 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 <[email protected]> * 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 <[email protected]> Co-authored-by: Cory Martin <[email protected]> Co-authored-by: kevindougherty-noaa <[email protected]> Co-authored-by: Steve Lawrence <[email protected]>
- Loading branch information
1 parent
3c08671
commit 10774b1
Showing
22 changed files
with
1,951 additions
and
252 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
*.nc filter=lfs diff=lfs merge=lfs -text | ||
*.nc4 filter=lfs diff=lfs merge=lfs -text | ||
*.res filter=lfs diff=lfs merge=lfs -text | ||
*.odb filter=lfs diff=lfs merge=lfs -text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,5 @@ pyyaml>=5.4 | |
pycodestyle>=2.8.0 | ||
netCDF4>=1.5.7 | ||
matplotlib>=3.4.3 | ||
cartopy==0.19.0.post1 | ||
scikit-learn>=1.0.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# (C) Copyright 2021-2022 United States Government as represented by the Administrator of the | ||
# National Aeronautics and Space Administration. All Rights Reserved. | ||
# | ||
# This software is licensed under the terms of the Apache Licence Version 2.0 | ||
# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. | ||
|
||
import os | ||
|
||
repo_directory = os.path.dirname(__file__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.