Changeset 9220e89c in sasview for src/sas/sasgui/guiframe/gui_manager.py
- Timestamp:
- Nov 20, 2018 10:55:05 AM (6 years ago)
- Branches:
- master, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249
- Children:
- c7c8143
- Parents:
- c222c27
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/guiframe/gui_manager.py
r9f45f83 r9220e89c 2580 2580 # Instantiate a loader 2581 2581 loader = Loader() 2582 if os.path.splitext(mypath)[1].lower() == '.dat': 2582 ext = os.path.splitext(mypath)[1].lower() 2583 if ext == '.dat': 2583 2584 # Make sure the ext included in the file name 2584 2585 # especially on MAC 2585 2586 fileName = os.path.splitext(path)[0] + ext_format 2586 2587 loader.save(fileName, data, ext_format) 2587 elif os.path.splitext(mypath)[1].lower()== '.h5':2588 elif ext == '.h5': 2588 2589 # Make sure the ext included in the file name 2589 2590 # especially on MAC
Note: See TracChangeset
for help on using the changeset viewer.