Skip to content

Commit c32634d

Browse files
committed
use toggle_winfile when reading master file
1 parent bf72a8d commit c32634d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

larch/xrmmap/xrm_mapfile.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
readEnvironFile, parseEnviron)
3030

3131
from .gsexrm_utils import (GSEXRM_MCADetector, GSEXRM_Area, GSEXRM_Exception,
32-
GSEXRM_MapRow, GSEXRM_FileStatus)
32+
GSEXRM_MapRow, GSEXRM_FileStatus, toggle_winfile)
3333

3434

3535
DEFAULT_XRAY_ENERGY = 39987.0 # probably means x-ray energy was not found in meta data
@@ -2359,6 +2359,7 @@ def read_master(self):
23592359
# if file the master file is not new, the current row data is OK:
23602360

23612361
try:
2362+
toggle_winfile(self.folder)
23622363
header, rows = readMasterFile(self.masterfile)
23632364
except IOError:
23642365
raise GSEXRM_Exception("cannot read Master file from '%s'" %

0 commit comments

Comments
 (0)