Skip to content
Snippets Groups Projects
Commit e4dce9fb authored by leufen1's avatar leufen1
Browse files

updated defaults test, /close #299 on test success

parent 0bc63e8f
No related branches found
No related tags found
5 merge requests!319add all changes of dev into release v1.4.0 branch,!318Resolve "release v1.4.0",!299Draft: Merge default data handler and preprocessing support parameter use_multiprocessing....,!288Resolve "histogram of inputs and targets",!259Draft: Resolve "WRF-Datahandler should inherit from SingleStationDatahandler"
Pipeline #65604 passed
......@@ -824,14 +824,14 @@ class PlotPeriodogram(AbstractPlotClass): # pragma: no cover
plt.close('all')
def f_proc(var, d_var):
def f_proc(var, d_var): # pragma: no cover
var_str = str(var)
t = (d_var.datetime - d_var.datetime[0]).astype("timedelta64[h]").values / np.timedelta64(1, "D")
f, pgram = LombScargle(t, d_var.values.flatten(), nterms=1).autopower()
return var_str, f, pgram
def f_proc_2(g, m, pos, variables_dim, time_dim):
def f_proc_2(g, m, pos, variables_dim, time_dim): # pragma: no cover
raw_data_single = dict()
if m == 0:
d = g.id_class._data
......@@ -847,7 +847,7 @@ def f_proc_2(g, m, pos, variables_dim, time_dim):
return raw_data_single
def f_proc_hist(data, variables, n_bins, variables_dim):
def f_proc_hist(data, variables, n_bins, variables_dim): # pragma: no cover
res = {}
bin_edges = {}
interval_width = {}
......
......@@ -68,4 +68,4 @@ class TestAllDefaults:
assert DEFAULT_PLOT_LIST == ["PlotMonthlySummary", "PlotStationMap", "PlotClimatologicalSkillScore",
"PlotTimeSeries", "PlotCompetitiveSkillScore", "PlotBootstrapSkillScore",
"PlotConditionalQuantiles", "PlotAvailability", "PlotAvailabilityHistogram",
"PlotSeparationOfScales"]
"PlotDataHistogram"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment