Join the discussion
Ask questions, share your code and help other Python learners. It's free.
Log in to comment, vote and follow discussions.
Continue with Google
or
Already have an account?
New to Space Python?
Check your inbox
We sent an activation link to . Open it in this browser and you'll come straight back here, logged in.
Nothing after a few minutes? Check your spam folder.
Comments 5
Join the discussion CommentAlready have an account? Log in
Noneis a singleton, soischecks identity, which is exact and fast.==can be overridden by objects to return weird things. PEP 8 recommendsis None.Good to know, switching to
is.Oof, that's exactly what I did first. 0 °C became "NO DATA".
Important part of this stage: don't write
if not temperature_c:— that treats 0 °C as missing!Very common bug. Zero is a valid reading.