Changeset 3757 for trunk/imports/G2pwd_xye.py
- Timestamp:
- Dec 7, 2018 4:03:37 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/imports/G2pwd_xye.py
r3670 r3757 78 78 else: 79 79 if2theta = True 80 if i == 0 and 'xydata' in S.lower(): 81 continue # fullprof header 80 82 if gotCcomment and S.find('*/') > -1: 81 83 begin = False … … 84 86 gotCcomment = True 85 87 continue 86 if S[0] in ["'",'#' ]:88 if S[0] in ["'",'#','!']: 87 89 continue #ignore comments, if any 90 elif S.startswith('TITLE'): 91 continue 88 92 else: 89 93 begin = False … … 122 126 # or a block of comments delimited by /* and */ 123 127 # or (GSAS style) each line can begin with '#' 128 # or WinPLOTR style, a '!' 124 129 if begin: 125 130 if self.Chi or self.Wave: … … 137 142 gotCcomment = True 138 143 continue 139 if S[0] in ["'",'#' ]:144 if S[0] in ["'",'#','!']: 140 145 self.comments.append(S[:-1]) 141 146 continue #ignore comments, if any 147 elif i == 0 and 'xydata' in S.lower(): 148 continue # fullprof header 149 elif S.startswith('TITLE'): 150 self.comments = [S] 151 continue 142 152 else: 143 153 begin = False
Note: See TracChangeset
for help on using the changeset viewer.