pygeo
pygeo copied to clipboard
LocationConstraints1D returns NaN when polyline point values are zero and scaling is on
Description
LocationConstraints1D returns NaN when polyline point values are zero and scaled=True
For example,
Steps to reproduce issue
Please provide a minimum working example (MWE) if possible Run Test 12 in test_DVConstraints, but turn scaled=True
Current behavior
NaN is returned if the original point location had a coordinate value of 0.0
Expected behavior
Should produce value 1.0 if the point is unchanged from its original location. Or deprecate this if nobody is using it
Code versions
List versions only if relevant
- Python
- …