Skip to content

Commit db0326a

Browse files
committed
incidental fixes to .ins importer
1 parent a8343ca commit db0326a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

GSASII/imports/G2phase_INS.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,16 @@ def ContentsValidator(self, filename):
2626
if l.startswith('CELL'):
2727
break
2828
else:
29-
self.errors = 'no CELL record found'
30-
self.errors = 'This is not a valid .ins file.'
29+
self.errors = 'no CELL record found. '
30+
self.errors += 'This is not a valid .ins file.'
3131
fp.close()
3232
return False
3333
fp.close()
3434
return True
3535

3636
def Reader(self,filename,filepointer, ParentFrame=None, **unused):
3737
'Read a ins file using :meth:`ReadINSPhase`'
38+
self.MPhase = None
3839
self.Phase = self.ReadINSPhase(filename, ParentFrame)
3940
return True
4041

0 commit comments

Comments
 (0)