Skip to content

Commit

Permalink
stronger test
Browse files Browse the repository at this point in the history
  • Loading branch information
tjlane committed Oct 28, 2024
1 parent 4603466 commit f4f730b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions test/functional/test_compute_iterative_tv_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,7 @@ def test_script_produces_consistent_results(
assert negentropy_over_iterations[-1] > negentropy_over_iterations[0]

# 2. make sure negentropy increased in the final TV pass
if kweight_mode == WeightMode.none and tv_weight_mode == WeightMode.none:
np.testing.assert_allclose(
final_tv_metadata.optimal_negentropy, final_tv_metadata.initial_negentropy
)
else:
assert final_tv_metadata.optimal_negentropy >= final_tv_metadata.initial_negentropy
assert final_tv_metadata.optimal_negentropy >= final_tv_metadata.initial_negentropy

# 3. make sure computed DF are close to those stored on disk
reference_dataset = rs.read_mtz(str(testing_mtz_file))
Expand Down

0 comments on commit f4f730b

Please sign in to comment.