You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The proposal is that any value that exceeds these bounds should trigger an exception. We can issue exception messages that are easy to understand, e.g., "Dec values outside of the range [-90, 90] detected." but it should still raise the exception rather than "soldiering on".
@sbailey, @akremin, @schlafly any opinions on the exception, or other bounds that should be checked?
The text was updated successfully, but these errors were encountered:
Sounds good, and +1 for including an informative exception message. I'd suggest also including the invalid value itself in the message and not just that an invalid value was detected and what the good range is.
@sbailey I thought about that, but it could be inconvenient if the inputs are large arrays. Inf or NaN is easy, I'm thinking more about out-of-bounds RA, Dec.
As mentioned in desihub/desispec#2238, NaN can result in obviously bad values of DESINAME:
Other bounds should also be checked:
NaN
Inf
The proposal is that any value that exceeds these bounds should trigger an exception. We can issue exception messages that are easy to understand, e.g., "Dec values outside of the range [-90, 90] detected." but it should still raise the exception rather than "soldiering on".
@sbailey, @akremin, @schlafly any opinions on the exception, or other bounds that should be checked?
The text was updated successfully, but these errors were encountered: