In the simulating-desi-spectra tutorial when the plotspec function is defined a loop is used to iterate over ['b', 'r', 'z'] using the variable x however within the loop x is never used, instead, only 'r' is used in its place. See below:
for x in ['b', 'r', 'z']:
tmpmin, tmpmax = np.percentile(spectra.flux['r'][i], [1, 99])
ymin = min(tmpmin, ymin)
ymax = max(tmpmax, ymax)
Instead this worked better for me:
for x in ['b', 'r', 'z']:
tmpmin, tmpmax = np.percentile(spectra.flux[x][i], [1, 99])
ymin = min(tmpmin, ymin)
ymax = max(tmpmax, ymax)
Good catch. Could you please open a pull request with that fix? ping me and @moustakas if there are any procedural hiccups with write permission, how to open a PR, etc. Thanks.
In the simulating-desi-spectra tutorial when the plotspec function is defined a loop is used to iterate over ['b', 'r', 'z'] using the variable x however within the loop x is never used, instead, only 'r' is used in its place. See below:
for x in ['b', 'r', 'z']: tmpmin, tmpmax = np.percentile(spectra.flux['r'][i], [1, 99]) ymin = min(tmpmin, ymin) ymax = max(tmpmax, ymax)
Instead this worked better for me:
for x in ['b', 'r', 'z']: tmpmin, tmpmax = np.percentile(spectra.flux[x][i], [1, 99]) ymin = min(tmpmin, ymin) ymax = max(tmpmax, ymax)