Closed tomvothecoder closed 10 months ago
This PR refactors code that was originally implemented in PR #658 to be reusable across other diagnostic sets.
type_annotations.py
lat_lon_driver._save_data_metrics_and_plots()
io.py
_save_data_metrics_and_plots
plot_func
metrics.spatial_avg
xr.DataArray
as_list=False
parameter
lat_lon_plot.plot
_set_param_output_attrs
_set_name_yr_attrs
lat_lon_driver
CoreParameter
If applicable:
Description
This PR refactors code that was originally implemented in PR #658 to be reusable across other diagnostic sets.
Additional Changes:
type_annotations.py
lat_lon_driver._save_data_metrics_and_plots()
toio.py
_save_data_metrics_and_plots
args to acceptplot_func
callablemetrics.spatial_avg
to return an optionallyxr.DataArray
withas_list=False
parameter
arg to the top inlat_lon_plot.plot
_set_param_output_attrs
and_set_name_yr_attrs
fromlat_lon_driver
toCoreParameter
classChecklist
If applicable: