Read about our upcoming Code of Conduct on this issue

Commit cbd65b3b authored by Pierre Augier's avatar Pierre Augier
Browse files

Less np.int, np.bool & np.float

parent 6bd6d989a37a
......@@ -50,7 +50,7 @@ class OperatorsPseudoSpectral1D(OperatorsBase1D):
assert kx_max == self.kx.max()
CONDKX = abs(self.kx) > self.coef_dealiasing * kx_max
self.where_dealiased = np.array(CONDKX, dtype=np.bool)
self.where_dealiased = np.array(CONDKX, dtype=bool)
# for spectra
self.nkxE = self.nx // 2 + 1
......
......@@ -68,7 +68,7 @@ class PrintStdOutLorenz(PrintStdOutBase):
if nt > 1:
nt -= 1
it = np.zeros(nt, dtype=np.int)
it = np.zeros(nt, dtype=int)
t = np.zeros(nt)
deltat = np.zeros(nt)
......
......@@ -79,7 +79,7 @@ class PrintStdOutPredaPrey(PrintStdOutBase):
if nt > 1:
nt -= 1
it = np.zeros(nt, dtype=np.int)
it = np.zeros(nt, dtype=int)
t = np.zeros(nt)
deltat = np.zeros(nt)
......
......@@ -51,7 +51,7 @@ class PrintStdOutSW1L(PrintStdOutBase):
if nt > 1:
nt -= 1
it = np.zeros(nt, dtype=np.int)
it = np.zeros(nt, dtype=int)
t = np.zeros(nt)
deltat = np.zeros(nt)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment