Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
if zmet is not None:
self.params["zmet"] = zmet
if self.params.dirty:
self._compute_csp()
wavegrid = self.wavelengths
if peraa:
factor = 3e18 / wavegrid ** 2
else:
factor = np.ones_like(wavegrid)
NSPEC = driver.get_nspec()
if (tage > 0.0) or (tage == -99):
return wavegrid, driver.get_spec(NSPEC, 1)[0] * factor
NTFULL = driver.get_ntfull()
return wavegrid, driver.get_spec(NSPEC, NTFULL) * factor[None, :]
if self.params.dirty:
self._compute_csp()
wavegrid = self.wavelengths
if peraa:
factor = 3e18 / wavegrid ** 2
else:
factor = np.ones_like(wavegrid)
NSPEC = driver.get_nspec()
if (tage > 0.0) or (tage == -99):
return wavegrid, driver.get_spec(NSPEC, 1)[0] * factor
NTFULL = driver.get_ntfull()
return wavegrid, driver.get_spec(NSPEC, NTFULL) * factor[None, :]