jjtobin / auto_selfcal

MIT License
17 stars 8 forks source link

Fix bug in cont.dat matching when 0 is a valid spw #21

Closed psheehan closed 1 year ago

psheehan commented 1 year ago

In the event that 0 is a valid spw for cont.dat, there is a bug in the cont.dat matching that will lead to the code thinking it cant match and will not flag anything (and subsequently breaks for some reason). This PR fixes that by setting the "not found" spw to -1, which should never be a valid spw.