Skip to content

RevitComparisonConfig.NumericTolerance overridden #1200

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

Merged
merged 1 commit into from
Apr 29, 2022

Conversation

pawelbaran
Copy link
Member

@pawelbaran pawelbaran commented Apr 28, 2022

Issues addressed by this PR

Closes #1199

Test files

Invoke the RevitDiffing tests in DiffingTests_Prototypes . They should all pass.

Changelog

  • The default NumericalTolerance for RevitDiffing is now set to 1e-6 instead of Double.MaxValue. This will affect every Diffing done with RevitDiffing from now on. Comparisons on the same sets of objects done previously with RevitDiffing will return different results after this PR, if the default tolerance of was used. To replicate the same results as before, set Double.MaxValue manually on the NumericTolerance property of the RevitComparisonConfig before triggering the RevitDiffing.

Additional comments

@pawelbaran pawelbaran added the type:feature New capability or enhancement label Apr 28, 2022
@pawelbaran pawelbaran requested a review from alelom April 28, 2022 17:05
@pawelbaran pawelbaran self-assigned this Apr 28, 2022
@pawelbaran
Copy link
Member Author

@BHoMBot check required

@bhombot-ci
Copy link

bhombot-ci bot commented Apr 28, 2022

@pawelbaran to confirm, the following checks are now queued:

  • code-compliance
  • documentation-compliance
  • project-compliance
  • core
  • null-handling
  • serialisation
  • versioning
  • installer

There are 9 requests in the queue ahead of you.

alelom added a commit to BHoM/DiffingTests_Prototypes that referenced this pull request Apr 28, 2022
BHoM/Revit_Toolkit#1200 introduced a new default value for tolerance, so the default number of differences for the same objects dataset changed.
@bhombot-ci
Copy link

bhombot-ci bot commented Apr 28, 2022

@pawelbaran just to let you know, I have provided a check-versioning result to this Pull Request as it was detected to be linked to other Pull Requests in a series. The comment which triggered this check came from @pawelbaran on BHoM_Engine

@bhombot-ci
Copy link

bhombot-ci bot commented Apr 28, 2022

@pawelbaran just to let you know, I have provided a check-installer result to this Pull Request as it was detected to be linked to other Pull Requests in a series. The comment which triggered this check came from @pawelbaran on BHoM_Engine

Copy link
Member

@alelom alelom left a comment

Choose a reason for hiding this comment

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

This PR was tested with the DiffingTests_Prototypes toolkit. No errors were reported by it.

All scripts are bound to keep working as before, with the exception that the results returned by the RevitDiffing (on the same couples of input object sets) may be different because of this PR.

This approach is the preferred one when modifying default values for ComparisonConfigs (and finally a good use case for virtual/override)! 😄

@pawelbaran
Copy link
Member Author

@BHoMBot check copyright-compliance
@BHoMBot check dataset-compliance

@bhombot-ci
Copy link

bhombot-ci bot commented Apr 29, 2022

@pawelbaran to confirm, the following checks are now queued:

  • copyright-compliance
  • dataset-compliance

@pawelbaran
Copy link
Member Author

@BHoMBot check ready-to-merge

@bhombot-ci
Copy link

bhombot-ci bot commented Apr 29, 2022

@pawelbaran to confirm, the following checks are now queued:

  • ready-to-merge

There are 7 requests in the queue ahead of you.

@bhombot-ci
Copy link

bhombot-ci bot commented Apr 29, 2022

FAO: @FraserGreenroyd
@pawelbaran is seeking dispensation on this Pull Request to skip a required check. Please can you provide authorisation for the check to be skipped, or provide assistance as appropriate.

The check they wish to have dispensation on is ready-to-merge.

If you are providing dispensation on this occasion, please reply with:

@BHoMBot this is a DevOps instruction. I am authorising dispensation to be granted on check ref. 6225050990

@FraserGreenroyd
Copy link
Contributor

@BHoMBot this is a DevOps instruction. I am authorising dispensation to be granted on check ref. 6225050990

@bhombot-ci
Copy link

bhombot-ci bot commented Apr 29, 2022

@FraserGreenroyd I have now provided a passing check on reference 6225050990 as requested.

@pawelbaran pawelbaran merged commit 0d49373 into main Apr 29, 2022
@pawelbaran pawelbaran deleted the Revit_Toolkit-#1199-DiffingTolerance branch April 29, 2022 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:feature New capability or enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Override RevitComparisonConfig.NumericTolerance to 1e-6
3 participants