Skip to content

Commit

Permalink
Merge pull request #196 from PrincetonUniversity/floatfix
Browse files Browse the repository at this point in the history
 replace deprecated np.fload with np.float64 https://numpy.org/devdoc…
  • Loading branch information
smiet authored Oct 31, 2023
2 parents a41e487 + 3734362 commit c253ec3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Utilities/pythontools/py_spec/input/spec_namelist.py
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ def _rectify_namelist(self):
for key in self.boundary_keys:
if key.lower() not in self["physicslist"].keys():
self["physicslist"][key] = np.zeros(
[self._Mpol, self._Ntor * 2 + 1], dtype=np.float
[self._Mpol, self._Ntor * 2 + 1], dtype=np.float64
).tolist()
self["physicslist"].start_index[key.lower()] = [-self._Ntor, 0]
else:
Expand All @@ -651,7 +651,7 @@ def _rectify_namelist(self):
for key in self.axis_keys:
if key.lower() not in self["physicslist"].keys():
self["physicslist"][key] = np.zeros(
[self._Ntor + 1], dtype=np.float
[self._Ntor + 1], dtype=np.float64
).tolist()
self["physicslist"].start_index[key.lower()] = [0]
else:
Expand Down

0 comments on commit c253ec3

Please sign in to comment.