@@ -158,7 +158,7 @@ def read_yaml_header(fpath):
158158def is_dms1_screen (fname ):
159159 if not fname .endswith (".csv" ):
160160 return False
161- pattern = re .compile ("#\s?format\s?:\s?dwr-dms-1.0" )
161+ pattern = re .compile (r "#\s?format\s?:\s?dwr-dms-1.0" )
162162 with open (fname , "r" ) as f :
163163 line = f .readline ()
164164 if pattern .match (line ) is None :
@@ -201,7 +201,7 @@ def read_dms1_screen(
201201def is_dms1 (fname ):
202202 if not fname .endswith (".csv" ):
203203 return False
204- pattern = re .compile ("#\s?format\s?:\s?dwr-dms-1.0" )
204+ pattern = re .compile (r "#\s?format\s?:\s?dwr-dms-1.0" )
205205 with open (fname , "r" ) as f :
206206 line = f .readline ()
207207 if pattern .match (line ) is None :
@@ -240,7 +240,7 @@ def is_ncro_json(fname):
240240
241241
242242def is_ncro_cnra (fname ):
243- pattern = re .compile ("#\s?provider\s?=\s?dwr-ncro" )
243+ pattern = re .compile (r "#\s?provider\s?=\s?dwr-ncro" )
244244 with open (fname , "r" ) as f :
245245 for i , line in enumerate (f ):
246246 if i > 6 :
@@ -301,8 +301,8 @@ def read_ncro_hydstra(
301301def is_des_std (fname ):
302302 import re
303303
304- pattern0 = re .compile ("#\s?provider\s?=\s?dwr-des" )
305- pattern1 = re .compile ("#\s?provider\s?:\s?dwr-des" )
304+ pattern0 = re .compile (r "#\s?provider\s?=\s?dwr-des" )
305+ pattern1 = re .compile (r "#\s?provider\s?:\s?dwr-des" )
306306 with open (fname , "r" ) as f :
307307 for i , line in enumerate (f ):
308308 if i > 6 :
@@ -1195,7 +1195,7 @@ def read_vtide(fpath_pattern, start=None, end=None, selector=None, force_regular
11951195 parsedates = [0 ],
11961196 indexcol = 0 ,
11971197 header = None ,
1198- sep = "\s+" ,
1198+ sep = r "\s+" ,
11991199 comment = "#" ,
12001200 )
12011201
0 commit comments