achael / eht-imaging

Imaging, analysis, and simulation software for radio interferometry
https://achael.github.io/eht-imaging/
GNU General Public License v3.0
5.29k stars 496 forks source link

starwarps lightcurve can't be subscripted when None #148

Closed abao1999 closed 2 years ago

abao1999 commented 2 years ago

There were two instances where a getMeasurementTerms function call used argument tot_flux=lightcurve[t], despite lightcurve=None, so when running starwarps, I would get the error: "NoneType not subscriptable."

I fixed this by just adding if statements.

achael commented 2 years ago

thanks for catching this! I have changed the base branch to 'dev', but will push 'dev' into 'main' by the end of the month.