diff --git a/gwemopt/chipgaps/decam.py b/gwemopt/chipgaps/decam.py index 5f01ad9..10a9774 100644 --- a/gwemopt/chipgaps/decam.py +++ b/gwemopt/chipgaps/decam.py @@ -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) diff --git a/gwemopt/chipgaps/ztf.py b/gwemopt/chipgaps/ztf.py index 152e8ca..72dd408 100644 --- a/gwemopt/chipgaps/ztf.py +++ b/gwemopt/chipgaps/ztf.py @@ -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)