spamlab-iee / os

An open source, cross-platform structural geology analysis software
GNU General Public License v3.0
25 stars 5 forks source link

fix opening project files that contain spreadsheets #8

Closed endarthur closed 6 years ago

endarthur commented 6 years ago

Traceback (most recent call last): File "C:\Users\endar\AppData\Local\OpenStereo\pkgs\openstereo\os_base.py", line 694, in open_project_dialog self.open_project(fname) File "C:\Users\endar\AppData\Local\OpenStereo\pkgs\openstereo\os_base.py", line 836, in open_project item_data = get_data(item_file, data['kwargs']) File "C:\Users\endar\AppData\Local\OpenStereo\pkgs\openstereo\data_import.py", line 382, in get_data sheet = book.sheet_by_name(kwargs['booksheet']) KeyError: 'booksheet'

endarthur commented 6 years ago

Also fix project files for the case of opening the same file twice