Skip to content

Commit ff0a9c2

Browse files
authored
Merge pull request #42 from audunarn/bugfix
Bugfix
2 parents 7278619 + 5f74a52 commit ff0a9c2

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed
-4.73 KB
Binary file not shown.

ANYstructure/main_application.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2834,12 +2834,12 @@ def openfile(self, defined = None):
28342834
imp_file.close()
28352835
self.update_frame()
28362836

2837-
def open_example(self):
2837+
def open_example(self, file_name = 'ship_section_example.txt'):
28382838
''' Open the example file. To be used in help menu. '''
2839-
if os.path.isfile('ship_section_example.txt') :
2840-
self.openfile(defined = 'ship_section_example.txt')
2839+
if os.path.isfile(file_name) :
2840+
self.openfile(defined = file_name)
28412841
else:
2842-
self.openfile(defined= self._root_dir + '/' + 'ship_section_example.txt')
2842+
self.openfile(defined= self._root_dir + '/' + file_name)
28432843

28442844
def on_open_structure_window(self):
28452845
'''

ANYstructure_install.ifp

-105 Bytes
Binary file not shown.

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ matplotlib==3.2
22
numpy
33
pytest
44
reportlab
5-
scipy
5+
scipy==1.5.4
66

7+
pip

0 commit comments

Comments
 (0)