Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove use of deprecated np.int #21

Merged
merged 2 commits into from
Jan 12, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion acis_taco/acis_taco.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def calc_earth_vis(p_chandra_eci=None,
dx = (taco_x - rad_x) / rays_x

# Find rays that intersect shade within Y limits of the shade (0, N_TACO mm)
ray_taco_iys = np.array(rad_y + rays_y * dx, dtype=np.int)
ray_taco_iys = np.array(rad_y + rays_y * dx, dtype=int)
y_ok = (ray_taco_iys >= 0) & (ray_taco_iys < N_TACO)
y_not_ok = ~y_ok
ray_taco_iys[y_not_ok] = 0
Expand Down