Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LocationConstraints1D returns NaN when polyline point values are zero and scaling is on #49

Open
bbrelje opened this issue Oct 25, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@bbrelje
Copy link
Collaborator

bbrelje commented Oct 25, 2020

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
@ewu63 ewu63 added the bug Something isn't working label May 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants
@ewu63 @bbrelje and others