- Timestamp:
- Sep 18, 2018 9:36:59 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, unittest-saveload
- Children:
- 5218180
- Parents:
- f4e2f22
- Location:
- src/sas
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sascalc/dataloader/readers/cansas_reader_HDF5.py
rfeec1cb r926ece5 601 601 iter(iterable) 602 602 if (not isinstance(iterable, np.ndarray) and not isinstance( 603 iterable, list)) or (isinstance(iterable, str) or 604 isinstance(iterable, unicode)): 603 iterable, list)) or (isinstance(iterable, basestring)): 605 604 raise TypeError 606 605 except TypeError: … … 633 632 elif q_vals.attrs.get("uncertainty") is not None: 634 633 self.q_uncertainties = q_vals.attrs.get("uncertainty") 635 if isinstance(self.q_uncertainties, str):634 if isinstance(self.q_uncertainties, basestring): 636 635 self.q_uncertainties = self.q_uncertainties.split(",") 637 636 if q_vals.attrs.get("resolutions") is not None: 638 637 self.q_resolutions = q_vals.attrs.get("resolutions") 639 if isinstance(self.q_resolutions, (str, unicode)):638 if isinstance(self.q_resolutions, basestring): 640 639 self.q_resolutions = self.q_resolutions.split(",") 641 640 if self.i_name in keys: -
src/sas/sasgui/guiframe/gui_manager.py
rfeec1cb r926ece5 2425 2425 "CanSAS 1D files (*.xml)|*.xml|"\ 2426 2426 "NXcanSAS files (*.h5)|*.h5|" 2427 options = {0: ".txt", 2428 1: ".xml", 2429 2: ".h5"} 2427 options = [".txt", ".xml",".h5"] 2430 2428 dlg = wx.FileDialog(self, "Choose a file", 2431 2429 self._default_save_location, … … 2530 2528 text += 'dY_min = %s: dY_max = %s\n' % (min(data.dy), max(data.dy)) 2531 2529 text += '\nData Points:\n' 2532 text += "<index> \t<X> \t<Y> \t<dY> \t<dX" 2533 if data.dxl is not None and data.dxw is not None: 2534 text += "l> \t<dxw" 2535 text += ">\n" 2530 text += "<index> \t<X> \t<Y> \t<dY> " 2531 text += "\t<dX>\n" if(data.dxl is not None and 2532 data.dxw is not None) else "\t<dXl> \t<dXw>\n" 2536 2533 for index in range(len(data.x)): 2537 2534 if data.dy is not None and len(data.dy) > index:
Note: See TracChangeset
for help on using the changeset viewer.