Skip to content

Commit 9151415

Browse files
author
leroy.42
committed
Fixed so that spec behavior can be turned off for noise.
1 parent 2109fd8 commit 9151415

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

phangsPipeline/scNoiseRoutines.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -318,9 +318,10 @@ def noise_cube(data, mask=None,
318318
if not do_spec:
319319

320320
# If spectral variations are turned off then assume that
321-
# the noise_map describes all channels of the cube.
321+
# the noise_map describes all channels of the cube. In
322+
# that case the spectrum is just a series of ones.
322323

323-
pass
324+
noise_spec = np.ones(data.shape[0])
324325

325326
else:
326327

@@ -329,7 +330,7 @@ def noise_cube(data, mask=None,
329330
zz = np.arange(data.shape[0])
330331
for z in zz:
331332

332-
# Idententify the range of channels to be considered
333+
# Identify the range of channels to be considered
333334
# in this estimate.
334335

335336
lowz = np.clip(z - boxv, 0, data.shape[0])

0 commit comments

Comments
 (0)