Skip to content

Commit

Permalink
REF numpy >1.9 compatibility, indexing into empty slice closes #1754
Browse files Browse the repository at this point in the history
  • Loading branch information
josef-pkt committed Jun 18, 2014
1 parent d5c095a commit 9526d51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion statsmodels/regression/linear_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -2115,7 +2115,7 @@ def el_test(self, b0_vals, param_nums, return_weights=0,
params = np.copy(self.params)
opt_fun_inst = _ELRegOpts() # to store weights
if len(param_nums) == len(params):
llr = opt_fun_inst._opt_nuis_regress(b0_vals,
llr = opt_fun_inst._opt_nuis_regress([],
param_nums=param_nums,
endog=self.model.endog,
exog=self.model.exog,
Expand Down

0 comments on commit 9526d51

Please sign in to comment.