Avoiding codec error when reading tp6 file in water vapor bound test
@@ -306,7 +306,7 @@ class ModtranRT(TabularRT):
max_water = None
- with open(os.path.join(self.lut_dir,filebase + '.tp6')) as tp6file:
+ with open(os.path.join(self.lut_dir,filebase + '.tp6'), errors='ignore') as tp6file:
for count, line in enumerate(tp6file):
if 'The water column is being set to the maximum' in line:
max_water = line.split(',')[1].strip()
