Example #1
0
 def test_dres_without_superimposition(self, ens1, ens2):
     distance_matrix = encore.get_distance_matrix(
         encore.merge_universes([ens1, ens2]),
         superimpose=False)
     results, details = encore.dres([ens1, ens2],
                                    distance_matrix = distance_matrix)
     result_value = results[0,1]
     expected_value = 0.68
     assert_almost_equal(result_value, expected_value, decimal=1,
                         err_msg="Unexpected value for Dim. reduction Ensemble Similarity: {0:f}. Expected {1:f}.".format(result_value, expected_value))
Example #2
0
 def test_dres_without_superimposition(self, ens1, ens2):
     distance_matrix = encore.get_distance_matrix(encore.merge_universes(
         [ens1, ens2]),
                                                  superimpose=False)
     results, details = encore.dres([ens1, ens2],
                                    distance_matrix=distance_matrix)
     result_value = results[0, 1]
     expected_value = 0.68
     assert_almost_equal(
         result_value,
         expected_value,
         decimal=1,
         err_msg=
         "Unexpected value for Dim. reduction Ensemble Similarity: {0:f}. Expected {1:f}."
         .format(result_value, expected_value))