Skip to content

Commit

Permalink
clean floating error code
Browse files Browse the repository at this point in the history
  • Loading branch information
Krisha authored and bbkrr committed Dec 30, 2024
1 parent c4ee93d commit 71d8f49
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions causing/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,6 @@ def compute(
for eq_in in eq_inputs:
eq_in = [np.float128(value) for value in eq_in]
computed_yvars.append(eq(*eq_in, *parameters.values()))
# try:
# computed_yvars.append(eq(*eq_in, *parameters.values()))
# except FloatingPointError:
# # Floating Point Error for self.yvars[i]
# # Adding 0.0 to overcome this.
# computed_yvars.append(0.0)

yhat[i] = np.array(
computed_yvars,
Expand Down

0 comments on commit 71d8f49

Please sign in to comment.