Skip to content

Commit

Permalink
Merge pull request #204 from le-ander/dev
Browse files Browse the repository at this point in the history
fix extraction of corf_loc_names when dmat is provided directly
  • Loading branch information
davidsebfischer authored Jul 15, 2021
2 parents 974b482 + 0edf9f8 commit 80478b0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion diffxpy/testing/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,10 @@ def wald(
as_numeric=as_numeric
)
else:
coef_loc_names = dmat_loc.columns.tolist()
if isinstance(dmat_loc, patsy.design_info.DesignMatrix):
coef_loc_names = dmat_loc.design_info.column_names
else:
coef_loc_names = dmat_loc.columns.tolist()
if not np.all([x in coef_loc_names for x in coef_to_test]):
raise ValueError(
"the requested test coefficients %s were found in model coefficients %s" %
Expand Down

0 comments on commit 80478b0

Please sign in to comment.