Skip to content
Snippets Groups Projects
Commit 637fc16f authored by Alexandre Beelen's avatar Alexandre Beelen
Browse files

fix(numpy) removed np.int

parent d45ba26b
No related branches found
No related tags found
No related merge requests found
Pipeline #10870 passed
......@@ -73,7 +73,7 @@ def gen_psffield(positions, fluxes=None, shape=(32, 32), kernel=None, factor=Non
if fluxes is None:
fluxes = np.ones(positions.shape[1])
if isinstance(shape, (int, np.int)):
if isinstance(shape, int):
shape = [shape, shape]
_shape = np.array(shape) * factor
......@@ -138,7 +138,7 @@ def gen_psffield_direct(positions, fluxes=None, shape=(32, 32), kernel=None, fac
if fluxes is None:
fluxes = np.ones(positions.shape[1])
if isinstance(shape, (int, np.int)):
if isinstance(shape, int):
shape = [shape, shape]
_shape = np.array(shape) * factor
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment