Loading file with scalar coordinate with valid_min
/valid_max
fails if coordinate point is outside valid range
#6420
Labels
🐛 Bug Report
A cube with a scalar coordinate that has a point outside its
valid_min
/valid_max
cannot be read with Iris. Loading it fails with aTypeError
.How To Reproduce
Steps to reproduce the behaviour:
Reading this file with
iris.load(path)
fails with aTypeError: unhashable type: 'MaskedConstant'
Full traceback
Expected behaviour
No error.
Environment
Additional context
It looks like the resulting coordinate point is set to
masked
, which causes the__hash__
function to fail.Doing the same with a 1D coordinate that contains an invalid value works just fine:
Interestingly enough, the first value is not
masked
now.Repeating this with invalid data also works:
Again, the data is not masked at all.
The text was updated successfully, but these errors were encountered: