Skip to content

Commit

Permalink
fix bug in putting noise maps in 4d
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelstjean committed Mar 9, 2021
1 parent b427775 commit a2b9c52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/get_distribution
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ def main():
else:
overlap = 'non overlapping windows'

if noise_maps.ndim == 3:
noise_maps = noise_maps[..., None]
if data.ndim == 3:
data = data[..., None]

logger.info('Estimation will be done over noise maps with a window of size {} and {}'.format(size, overlap))
sigma, N, mask = estimate_from_nmaps(data, size=size, return_mask=True, method=method, full=full, ncores=ncores, use_rejection=False, verbose=args.verbose)
Expand Down

0 comments on commit a2b9c52

Please sign in to comment.