Skip to content

Commit

Permalink
fix ar order selection (#305)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathause authored Sep 25, 2023
1 parent e75aa35 commit acd80e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mesmer/calibrate_mesmer/train_gv.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def train_gv_AR(params_gv, gv, max_lag, sel_crit):

# median over all scenarios
AR_order_scen = xr.concat(AR_order_scen, dim="scen")
AR_order_sel = int(AR_order.quantile(q=0.5, **{method: "nearest"}).item())
AR_order_sel = int(AR_order_scen.quantile(q=0.5, **{method: "nearest"}).item())

# determine the AR params for the selected AR order
params_scen = list()
Expand Down

0 comments on commit acd80e4

Please sign in to comment.