Skip to content

Commit 2c067b1

Browse files
committed
check telescope
1 parent e1b3845 commit 2c067b1

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

gwemopt/moc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from gwemopt.utils.pixels import get_region_moc
1818

1919

20-
def construct_moc(params, config_struct, tesselation):
20+
def construct_moc(params, config_struct, telescope, tesselation):
2121

2222
if params["doParallel"]:
2323
n_threads = params["Ncores"]
@@ -83,7 +83,7 @@ def create_moc(params, map_struct=None):
8383
idx = np.where(tesselation[:, 0] >= 1000)[0]
8484
tesselation = tesselation[idx, :]
8585

86-
moc_struct = construct_moc(params, config_struct, tesselation)
86+
moc_struct = construct_moc(params, config_struct, telescope, tesselation)
8787
if map_struct is not None:
8888
moc_keep = map_struct["moc_keep"]
8989
else:

gwemopt/tiles.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,9 @@ def galaxy(params, map_struct, catalog_struct: pd.DataFrame):
758758
catalog_struct_new["dec"],
759759
)
760760
).T
761-
moc_struct = gwemopt.moc.construct_moc(params, config_struct, tesselation)
761+
moc_struct = gwemopt.moc.construct_moc(
762+
params, config_struct, telescope, tesselation
763+
)
762764
cnt = 0
763765
for _, row in catalog_struct_new.iterrows():
764766
moc_struct[cnt]["galaxies"] = row["galaxies"]

0 commit comments

Comments
 (0)