We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba07fab commit dfb7674Copy full SHA for dfb7674
tests/t_download.py
@@ -4,6 +4,7 @@
4
from holytools.devtools import Unittest
5
6
from opxrd import OpXRD
7
+from xrdpattern.pattern import XrdPattern
8
9
10
class TestLoading(Unittest):
@@ -16,8 +17,18 @@ def test_dl(self):
16
17
if self.is_manual_mode:
18
opxrd.plot_quantity(attr='primary_phase.spacegroup')
19
- for p in opxrd.patterns:
20
+
21
+ for fpath, patterns in opxrd.fpath_dict.items():
22
+ for p in patterns:
23
+ self.check_pattern_data(fpath,p)
24
25
+ @staticmethod
26
+ def check_pattern_data(fpath: str, p: XrdPattern):
27
+ try:
28
p.get_pattern_data()
29
+ except Exception as e:
30
+ print(f'Retriving pattern data failed for pattern at fpath = {fpath}')
31
+ raise e
32
33
if __name__ == "__main__":
34
TestLoading.execute_all()
0 commit comments