Skip to content

Commit

Permalink
use variable names directly from mocpy
Browse files Browse the repository at this point in the history
  • Loading branch information
mcoughlin committed Sep 20, 2024
1 parent a85afb0 commit a7946be
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion gwemopt/chipgaps/decam.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,9 @@ def get_decam_quadrant_moc(ra, dec, n_threads=None):
stacked = np.stack((ccd_coords.ra.deg, ccd_coords.dec.deg), axis=1)
result = stacked.reshape(-1, ccd_coords.ra.deg.shape[1])
lon_lat_list = [row for row in result]
indices = mocpy.from_polygons(lon_lat_list, np.uint8(10), n_threads)
indices = mocpy.from_polygons(
lon_lat_list, max_depth=np.uint8(10), n_threads=n_threads
)
moc = sum([MOC(index) for index in indices])
mocs.append(moc)

Expand Down
4 changes: 3 additions & 1 deletion gwemopt/chipgaps/ztf.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,9 @@ def get_ztf_quadrant_moc(ra, dec, n_threads=None):
stacked = np.stack((ccd_coords.ra.deg, ccd_coords.dec.deg), axis=1)
result = stacked.reshape(-1, ccd_coords.ra.deg.shape[1])
lon_lat_list = [row for row in result]
indices = mocpy.from_polygons(lon_lat_list, np.uint8(10), n_threads)
indices = mocpy.from_polygons(
lon_lat_list, max_depth=np.uint8(10), n_threads=n_threads
)
moc = sum([MOC(index) for index in indices])
mocs.append(moc)

Expand Down

0 comments on commit a7946be

Please sign in to comment.