Exemple #1
0
    def test_get_metric_map_no_method(self):
        crystal_map = CrystallographicMap(np.array([[1]]))

        with pytest.raises(
                ValueError,
                match="crystallographic mapping method must be specified"):
            metric_map = crystal_map.get_metric_map("no metric")
Exemple #2
0
 def test_get_metric_map_no_method(self):
     crystal_map = CrystallographicMap(np.array([[1]]))
     metric_map = crystal_map.get_metric_map('no metric')