File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 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]:
5050 '''
5151 Looks for CVs in the input file and returns them as a list of CV objects.
5252 '''
53- return self ._read_object (r'\bCV \d{3}00\b' )
53+ return self ._read_object (r'\b\s*CV \d{3}00\b' )
5454
5555 def _read_fls (self ) -> List [FL ]:
5656 '''
5757 Looks for FLs in the input file and returns them as a list of FL objects.
5858 '''
59- return self ._read_object (r'\bFL \d{3}00\b' )
59+ return self ._read_object (r'\b\s*FL \d{3}00\b' )
6060
6161 def _read_cfs (self ) -> List [CF ]:
6262 '''
6363 Looks for CFs in the input file and returns them as a list of CF objects.
6464 '''
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' )
6666
6767 def get_cv (self , cv_id : str ) -> CV :
6868 '''
@@ -343,7 +343,7 @@ def get_edf_vars(self) -> List[str]:
343343 keys = ['TIME' ]
344344 with open (self ._filename , 'r' ) as file :
345345 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 ):
347347 keys .append (line .split ()[1 ])
348348 return keys
349349
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