Closed adelavega closed 3 years ago
@effigies should be a pretty uncontroversial fix
@effigies should we also merge this or a similar fix to master?
Yes this would be good. Looking at this now, I might use a better check:
- const_name = mat.columns[(mat != 1).sum(0) == 0].values[0]
+ const_name = mat.columns[np.isclose(mat, 1).all(0)].values[0]
Fixes #320 by assuming constant name is:
constant