desihub / desispec

DESI spectral pipeline
BSD 3-Clause "New" or "Revised" License
36 stars 23 forks source link

fix few obvious issues with undefined variables reported by static checker #2400

Closed segasai closed 3 weeks ago

segasai commented 1 month ago

While running pyright checker on desispec, I've seen a few obvious undefined variable cases. This fixes most of them where it was clear to me what was code's intention.

coveralls commented 1 month ago

Coverage Status

coverage: 30.199% (+0.008%) from 30.191% when pulling 259304629a1ee0e8937b05fcfeb935a4f0389440 on static_fixes into fe88bbdcaa67093c31a77459eb9dbb767adacb2a on main.