Skip to content
Snippets Groups Projects
Commit 0e457785 authored by Annop Wongwathanarat's avatar Annop Wongwathanarat
Browse files

- fix path to sensor file for output in FLEX format

- use os.path.join instead of hard-coded \ which works only for windows
parent 485934d2
No related branches found
No related tags found
1 merge request!158- fix path to sensor file for output in FLEX format
Pipeline #13877 passed
......@@ -122,7 +122,7 @@ class ReadHawc2(object):
# read sensor file used if results are saved in FLEX format
DirName = os.path.dirname(self.FileName + ".int")
try:
fid = opent(DirName + r"\sensor ", 'r')
fid = opent(os.path.join(DirName, r"sensor"),'r')
except IOError:
print("can't finde sensor file for FLEX format")
return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment