Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issues with drydep plots; Abstract some benchmark utilities code
In this commit, we have fixed issues in the creation of drydep velocity plots. We have also taken steps to start abstracting commonly-used benchmark code into reusable functions in benchmark_utils.py. This process will be continued in subsequent PRs. gcpy/benchmark/modules/benchmark_drydep.py - Remove unused imports - Add the "collection" keyword argument - Rename "datestr" argument to "subdst" for consistency w/ other routines - Set weightsdir to "." by default - Set default spcdb_dir to gcpy/species_database.yml - Updated Pydoc comments - Removed "plots" argument, as we only have drydep at the surface - Now call make_output_dir from benchmark_utils.py to make the directory where plots will be placed - Now call read_ref_and_dev tfrom benchmark_utils.py to read ref & dev data from disk - Update the call to get_common_varnames from benchmark_utils.py - Abstract the code to create the PDF filename to routine "pdf_filename" in benchmark_utils.py - Remove refmetds and devmetds, they're not needed here - Remove "normalize_by_area" keyword to compare_single_level - Now pass "log_color_scale" to compare_single_level - Abstract code to print significant differences to benchmark_utils.py gcpy/benchmark_utils.py - Updated Pydoc headers - Removed unused imports - Renamed "make_collection_subdir" to "make_output_dir" and simplify code - Update code in read_ref_and_dev - Fix bugs in routine "get_common_varnames", add Pydoc - Add routines "print_sigdiffs" and "write_sigdiff" (needs testing) - Add routine "pdf_filename" to get the name of the PDF output file - Add routine "print_benchmark_info" to print a list of which benchmark plots/tables will be created. This is called from the run_benchmark, run_1yr_fullchem_benchmark, run_1yr_tt_benchmark functions. gcpy/benchmark/modules/run_1yr_fullchem_benchmark.py - Now import and call "make_benchmark_drydep_plots" from "benchmark_drydep.py" - Now call "print_benchmark_info" from "benchmark_utils.py" to display the list of plots/tables being generated gcpy/benchmark/run_benchmark.py gcpy/benchmark/modules/run_1yr_fullchem_benchmark.py - Now call "print_benchmark_info" from "benchmark_utils.py" to display the list of plots/tables being generated CHANGELOG.md - Updated accordingly Signed-off-by: Bob Yantosca <[email protected]>
- Loading branch information