Skip to content

Commit

Permalink
Merge pull request #115 from bilal-tasdelen/replace_npfloat
Browse files Browse the repository at this point in the history
Replace np.float with np.float64
  • Loading branch information
btasdelen authored Apr 27, 2023
2 parents c61921e + bd8d7e9 commit fc49777
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pypulseq/Sequence/read_seq.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def read(self, path: str, detect_rf_use: bool = False) -> None:

# Bookkeeping
grad_prev_last[j] = grad.last
eps = np.finfo(np.float).eps
eps = np.finfo(np.float64).eps
if grad_duration + eps < block_duration:
grad_prev_last[j] = 0

Expand Down
2 changes: 1 addition & 1 deletion pypulseq/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def round_half_up(n, decimals=0):
# =========
# NP.FLOAT EPSILON
# =========
eps = np.finfo(np.float).eps
eps = np.finfo(np.float64).eps

# =========
# PACKAGE-LEVEL IMPORTS
Expand Down

0 comments on commit fc49777

Please sign in to comment.