imcgreer / simqso

Module for generating simulated quasar spectra
BSD 3-Clause "New" or "Revised" License
12 stars 11 forks source link

power law continuum model incorrectly handling breakpoints #2

Closed imcgreer closed 7 years ago

imcgreer commented 9 years ago

FixedPLContinuumGrid does nothing to the input breakpoints. GaussianPLContinuumGrid adds '0' to the beginning so num(breaks)=num(slopes)

But the way the iteration works, it should be asserted in setPowerLawContinuum that num(breaks) = num(slopes)-1, then breaks = [0,breaks,np.inf]

(what is currently happening with default models? last slope is being dropped?)

imcgreer commented 7 years ago

fixed by 348f0e9641013239f499d6a8ad25b706764c5c73