Skip to content

Commit

Permalink
Fixing issue with check_append_constant function.
Browse files Browse the repository at this point in the history
  • Loading branch information
segsell committed Mar 24, 2020
1 parent fc158fe commit 629aff1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grmpy/read/read.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def check_append_constant(init_file, dict_, data, semipar=False):
"""
if (
"const" not in data
and np.array_equal(np.asarray(data.iloc[:, 0]), np.ones(len(data))) is False
or np.array_equal(np.asarray(data.iloc[:, 0]), np.ones(len(data))) is False
):
dict_ = read(init_file, semipar, include_constant=True)
data.insert(0, "const", 1.0)
Expand Down

0 comments on commit 629aff1

Please sign in to comment.