Skip to content

Commit

Permalink
get rid of np.float
Browse files Browse the repository at this point in the history
  • Loading branch information
j-faria committed Jul 25, 2024
1 parent db8321d commit 7bea769
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions iCCF/chromatic.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def bands(self):
@cached_property
def time(self):
""" BJD of observations """
return np.fromiter((i.bjd for i in self.I), np.float, self.n)
return np.fromiter((i.bjd for i in self.I), float, self.n)

@property
def blueRV(self):
Expand All @@ -252,11 +252,11 @@ def redRV(self):

@property
def fullRV(self):
return np.fromiter((i.RV for i in self.I), np.float, self.n)
return np.fromiter((i.RV for i in self.I), float, self.n)

@property
def fullRVerror(self):
return np.fromiter((i.RVerror for i in self.I), np.float, self.n)
return np.fromiter((i.RVerror for i in self.I), float, self.n)


def bin(self, night_indices):
Expand Down
4 changes: 2 additions & 2 deletions iCCF/iCCF.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,8 +452,8 @@ def plot_individual_RV(self, ax=None):
self.individual_RVerror, fmt='o', label='individual RV')
ax.axhline(self.RV, color='darkgreen', ls='--', label='final RV')

m = np.full_like(orders, self.RV, dtype=np.float)
e = np.full_like(orders, self.RVerror, dtype=np.float)
m = np.full_like(orders, self.RV, dtype=float)
e = np.full_like(orders, self.RVerror, dtype=float)
ax.fill_between(orders, m-e, m+e, color='g', alpha=0.3)

ax.legend()
Expand Down

0 comments on commit 7bea769

Please sign in to comment.