cctbx / dxtbx

Diffraction Experiment Toolbox
BSD 3-Clause "New" or "Revised" License
2 stars 12 forks source link

Reduce comparison precision in `test_FormatISISSXD.py` #696

Closed dagewa closed 4 months ago

dagewa commented 4 months ago

This test was failing for me on the last digits of high precision values such as fast_axis and slow_axis. Unfortunately pytest.approx cannot handle nested dictionaries, so just round the overly precise values prior to exact comparison.

codecov[bot] commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (f901366) 42.39% compared to head (c5260b9) 42.39%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #696 +/- ## ======================================= Coverage 42.39% 42.39% ======================================= Files 186 186 Lines 16362 16362 Branches 3121 3121 ======================================= Hits 6937 6937 Misses 8793 8793 Partials 632 632 ```