diff --git a/optim_esm_tools/analyze/tipping_criteria.py b/optim_esm_tools/analyze/tipping_criteria.py index b2105ffb..1418ef49 100644 --- a/optim_esm_tools/analyze/tipping_criteria.py +++ b/optim_esm_tools/analyze/tipping_criteria.py @@ -1,4 +1,3 @@ - from .xarray_tools import apply_abs, _native_date_fmt from optim_esm_tools.utils import check_accepts import xarray as xr @@ -171,7 +170,6 @@ def max_derivative( data_array = _remove_any_none_times(data_set[var_name], time_var) result = data_array.differentiate(time_var).max(dim=time_var) * _SECONDS_TO_YEAR - var_unit = data_array.attrs.get('units', '{units}') name = data_array.attrs.get(rename_to, variable) diff --git a/optim_esm_tools/plotting/map_maker.py b/optim_esm_tools/plotting/map_maker.py index 16c90e1c..bd5b1621 100644 --- a/optim_esm_tools/plotting/map_maker.py +++ b/optim_esm_tools/plotting/map_maker.py @@ -201,6 +201,7 @@ def _ts_single(time_val, mean, std, plot_kw, fill_kw): (mean - std).plot(color=l[0]._color, alpha=0.4) (mean + std).plot(color=l[0]._color, alpha=0.4) + def _ts( self, variable, @@ -283,7 +284,6 @@ def _ddt_ts( ds = self.data_set variable_rm = f'{variable}_run_mean_{running_mean}' - da = ds[variable] da_rm = ds[variable_rm]