Bug in well log consistency rule prevent to write 255+ array bulk
Description
There are consistency rules that check metadata is aligned with bulk data. See wiki for all rules.
The bug is in the rule, completed in M13, that checks the column number (see !556 (merged)). It prevents to write any array with more than 255+ columns.
Details
The current code is using is not
operator to compare two int values. It should uses the not equals
(!=).
Due to a particularity on python interpreter implementation, it "keeps an array of integer objects for all integers between -5 and 256. When you create an int in that range you actually just get back a reference to the existing object."
This means is not
will return the same value if the value is between -5 and 256. This explain why current tests failed to see it. Outside this range if will returns False
.