File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -3472,6 +3472,7 @@ def _open_um_file(
3472
3472
fmt = None ,
3473
3473
word_size = None ,
3474
3474
byte_ordering = None ,
3475
+ parse = True
3475
3476
):
3476
3477
"""Open a UM fields file or PP file.
3477
3478
@@ -3493,7 +3494,7 @@ def _open_um_file(
3493
3494
byte_ordering = byte_ordering ,
3494
3495
word_size = word_size ,
3495
3496
fmt = fmt ,
3496
- parse = True
3497
+ parse = parse
3497
3498
)
3498
3499
except Exception as error :
3499
3500
try :
@@ -3528,7 +3529,7 @@ def is_um_file(self, filename):
3528
3529
3529
3530
"""
3530
3531
try :
3531
- self .file_open (filename )
3532
+ self .file_open (filename , parse = False )
3532
3533
except Exception as error :
3533
3534
self .file_close ()
3534
3535
return False
@@ -3550,7 +3551,7 @@ def file_close(self):
3550
3551
3551
3552
self ._um_file = None
3552
3553
3553
- def file_open (self , filename ):
3554
+ def file_open (self , filename , parse = True ):
3554
3555
"""Open the file for reading.
3555
3556
3556
3557
:Paramters:
@@ -3568,6 +3569,7 @@ def file_open(self, filename):
3568
3569
byte_ordering = g .get ("byte_ordering" ),
3569
3570
word_size = g .get ("word_size" ),
3570
3571
fmt = g .get ("fmt" ),
3572
+ parse = parse
3571
3573
)
3572
3574
3573
3575
You can’t perform that action at this time.
0 commit comments