Skip to content

Commit ae5466a

Browse files
committed
Merge branch 'master' into multithread-remove-weights
2 parents 670ae56 + 337a07d commit ae5466a

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

maps/src/maputils.cxx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -374,10 +374,8 @@ void ReprojMap(const G3SkyMap &in_map, G3SkyMap &out_map, int rebin, bool interp
374374
size_t stop = out_map.size();
375375
if (rebin > 1) {
376376
for (size_t i = 0; i < stop; i++) {
377-
if (!!out_map_mask && !out_map_mask->at(i)) {
378-
out_map[i] = 0;
377+
if (!!out_map_mask && !out_map_mask->at(i))
379378
continue;
380-
}
381379
double val = 0;
382380
auto quats = out_map.GetRebinQuats(i, rebin);
383381
if (rotate)
@@ -395,10 +393,8 @@ void ReprojMap(const G3SkyMap &in_map, G3SkyMap &out_map, int rebin, bool interp
395393
}
396394
} else {
397395
for (size_t i = 0; i < stop; i++) {
398-
if (!!out_map_mask && !out_map_mask->at(i)) {
399-
out_map[i] = 0;
396+
if (!!out_map_mask && !out_map_mask->at(i))
400397
continue;
401-
}
402398
double val = 0;
403399
auto q = out_map.PixelToQuat(i);
404400
if (rotate)

0 commit comments

Comments
 (0)