agilescientific / striplog

Lithology and stratigraphic logs for wells or outcrop.
https://code.agilescientific.com/striplog
Apache License 2.0
204 stars 69 forks source link

Fix potential bug in equality tests of `Position`s if `middle` is not explicitly defined. #143

Closed mtb-za closed 3 years ago

mtb-za commented 3 years ago

Changed Position to use the z attribute to test for equality and such. Previously middle was used, which could be a problem if it was not actually defined. Since z guarantees a middle exists, we should use it for these checks instead.