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

Fix bug where PointDisplacement is incorrectly assigned #193

Merged
merged 3 commits into from
Nov 12, 2019

Conversation

peterjamesnugent
Copy link
Member

Issues addressed by this PR

Closes #190

  • Fixes bug where PointDisplacement loads were being incorrectly applied to nodes.

Test files

https://burohappold.sharepoint.com/:f:/s/BHoM/EhfSrsAvM4FBqQqRC-7GizQBu7sDKLd1Vxn5mirBB08sHg?e=SlAoUq

Changelog

https://burohappold.sharepoint.com/:f:/s/BHoM/EhfSrsAvM4FBqQqRC-7GizQBu7sDKLd1Vxn5mirBB08sHg?e=SlAoUq

Additional comments

The PointID of a LusasPoint (Node) is not synonmous with the Lusas_id, as the PointID cannot be set. Therefore, the Lusas_Toolkit uses the name parameter of the LusasPoint to mirror the AdapterId.

So when you push a Node to Lusas, you can force the Lusas_id to be 2 (as I have done in the script) but the PointID will not be unrelated. The name of the LusasPoint will be "P2" to reflect the Lusas_id.

This was the source of the error, the PointDisplacement assignment was using the Lusas_id but not adding the prefix, resulting in the load being incorrectly assigned.

@peterjamesnugent peterjamesnugent added severity:medium Slows progress, but workaround is possible size:S Measured in minutes type:bug Error or unexpected behaviour labels Oct 29, 2019
@peterjamesnugent peterjamesnugent added this to the BHoM 3.0 β MVP milestone Oct 29, 2019
@peterjamesnugent peterjamesnugent self-assigned this Oct 29, 2019
Copy link

@ismaelibrahim ismaelibrahim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested script and now the point and displaced point are correctly assigned.

@peterjamesnugent peterjamesnugent merged commit c236a93 into master Nov 12, 2019
@peterjamesnugent peterjamesnugent deleted the Issue-190-LoadAssignmentIsIncorrect branch November 12, 2019 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity:medium Slows progress, but workaround is possible size:S Measured in minutes type:bug Error or unexpected behaviour
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Load Assignment is incorrect
2 participants