We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac8e805 commit 87a9dadCopy full SHA for 87a9dad
1 file changed
GSASII/imports/G2phase_CIF.py
@@ -47,6 +47,9 @@ def ContentsValidator(self, filename):
47
return ok
48
49
def Reader(self,filename, ParentFrame=None, usedRanIdList=[], **unused):
50
+ if cif is None: # can happen in scripting
51
+ print('Attempting to read a CIF without PyCifRW installed')
52
+ raise Exception('Attempting to read a CIF without PyCifRW installed')
53
isodistort_warnings = '' # errors that would prevent an isodistort analysis
54
self.Phase = G2obj.SetNewPhase(Name='new phase') # create a new empty phase dict
55
# make sure the ranId is really unique!
0 commit comments