Skip to content
Snippets Groups Projects

Resolve "release v1.4.0"

Merged Ghost User requested to merge release_v1.4.0 into master
1 file
+ 9
5
Compare changes
  • Side-by-side
  • Inline
+ 9
5
@@ -274,11 +274,15 @@ class ClimateFIRFilter:
@@ -274,11 +274,15 @@ class ClimateFIRFilter:
# plot
# plot
if self.plot_path is not None:
if self.plot_path is not None:
pos = 720
try:
filter_example = filter_input_data.isel({time_dim: pos})
pos = 720
t0 = filter_example.coords[time_dim].values
filter_example = filter_input_data.isel({time_dim: pos})
t_slice = filter_input_data.isel({time_dim: slice(pos - length, pos + length + 1)}).coords[time_dim].values
t0 = filter_example.coords[time_dim].values
self.plot(data, filter_example, var_dim, time_dim, t_slice, t0, plot_index)
t_slice = filter_input_data.isel({time_dim: slice(pos - length, pos + length + 1)}).coords[
 
time_dim].values
 
self.plot(data, filter_example, var_dim, time_dim, t_slice, t0, plot_index)
 
except IndexError:
 
pass
# select only values at tmp dimension 0 at each point in time
# select only values at tmp dimension 0 at each point in time
return filt.sel({new_dim: 0}, drop=True), h, apriori
return filt.sel({new_dim: 0}, drop=True), h, apriori
Loading