File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -50,19 +50,19 @@ def _read_cvs(self) -> List[CV]:
50
50
'''
51
51
Looks for CVs in the input file and returns them as a list of CV objects.
52
52
'''
53
- return self ._read_object (r'\bCV \d{3}00\b' )
53
+ return self ._read_object (r'\b\s*CV \d{3}00\b' )
54
54
55
55
def _read_fls (self ) -> List [FL ]:
56
56
'''
57
57
Looks for FLs in the input file and returns them as a list of FL objects.
58
58
'''
59
- return self ._read_object (r'\bFL \d{3}00\b' )
59
+ return self ._read_object (r'\b\s*FL \d{3}00\b' )
60
60
61
61
def _read_cfs (self ) -> List [CF ]:
62
62
'''
63
63
Looks for CFs in the input file and returns them as a list of CF objects.
64
64
'''
65
- return self ._read_object (r'\bCF \d{3,8}00\b' )
65
+ return self ._read_object (r'\b\s*CF \d{3,8}00\b' )
66
66
67
67
def get_cv (self , cv_id : str ) -> CV :
68
68
'''
@@ -343,7 +343,7 @@ def get_edf_vars(self) -> List[str]:
343
343
keys = ['TIME' ]
344
344
with open (self ._filename , 'r' ) as file :
345
345
for line in file :
346
- if match (r'\bEDF \d{3}[A-Z][A-Z0-9]' , line ):
346
+ if match (r'\b\s*EDF \d{3}[A-Z][A-Z0-9]' , line ):
347
347
keys .append (line .split ()[1 ])
348
348
return keys
349
349
Original file line number Diff line number Diff line change 1
- 0.2
1
+ 0.3
You can’t perform that action at this time.
0 commit comments