Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tugui/tu_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def save_loaded_inp(self) -> str:
check_file_existence(os.path.join(self.inp_dir, plireader.mac_path), 'mac')
check_file_existence(os.path.join(self.inp_dir, plireader.mic_path), 'mic')
# Check the .sta file existence only if required, i.e if the 'ISTATI' field is '1'
if plireader.opt_dict['ISTATI'] == 1:
if int(plireader.opt_dict['ISTATI']):
check_file_existence(os.path.join(self.inp_dir, plireader.sta_path), 'sta')

# Declare a string holding the .inp filename (with default to 'TuPlot')
Expand Down Expand Up @@ -509,7 +509,7 @@ def init_PliReader(pli_path: str) -> Self:
pli_reader.sta_dataset = f.readline().split()[0]

# Extract the number of axial sections depending on the ISLICE field
if pli_reader.opt_dict['ISLICE'] == 1:
if int(pli_reader.opt_dict['ISLICE']):
pli_reader.axial_steps = int(pli_reader.opt_dict['M3'])
else:
pli_reader.axial_steps = int(pli_reader.opt_dict['M3']) + 1
Expand Down