Example #1
0
 def test_get_datasets_raises(self, projection, hemisphere, error_msg):
     with File(EMSOFT_FILE, mode="r") as f:
         with pytest.raises(ValueError, match=error_msg):
             _ = _get_datasets(
                 data_group=f["EMData/EBSDmaster"],
                 projection=projection,
                 hemisphere=hemisphere,
             )
Example #2
0
 def test_get_datasets(self, projection, hemisphere, dataset_names):
     with File(EMSOFT_FILE, mode="r") as f:
         datasets = _get_datasets(
             data_group=f["EMData/EBSDmaster"],
             projection=projection,
             hemisphere=hemisphere,
         )
         assert [i.name.split("/")[-1] for i in datasets] == dataset_names