Changeset f4a1433 in sasview for src/sas/qtgui/MainWindow/UnitTesting
- Timestamp:
- Oct 24, 2017 2:44:26 AM (7 years ago)
- Branches:
- ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- fca1f50, d6b234b
- Parents:
- 16afe01 (diff), 5582b078 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Location:
- src/sas/qtgui/MainWindow/UnitTesting
- Files:
-
- 6 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/MainWindow/UnitTesting/DataExplorerTest.py
r464cd07 rf4a1433 25 25 import sas.qtgui.Plotting.PlotHelper as PlotHelper 26 26 27 if not QApplication.instance():28 27 #if not QApplication.instance(): 28 app = QApplication(sys.argv) 29 29 30 30 class DataExplorerTest(unittest.TestCase): … … 150 150 151 151 # Populate the model 152 filename = ["cyl_400_20.txt", " Dec07031.ASC", "cyl_400_20.txt"]152 filename = ["cyl_400_20.txt", "P123_D2O_10_percent.dat", "cyl_400_20.txt"] 153 153 self.form.readData(filename) 154 154 … … 170 170 171 171 # Populate the model 172 filename = ["cyl_400_20.txt", "Dec07031.ASC", "cyl_400_20.txt"] 172 #filename = ["cyl_400_20.txt", "P123_D2O_10_percent.dat", "cyl_400_20.txt"] 173 filename = ["cyl_400_20.txt", "cyl_400_20.txt", "P123_D2O_10_percent.dat"] 173 174 self.form.readData(filename) 175 176 self.form.show() 177 app.exec_() 174 178 175 179 # Assure the model contains three items … … 319 323 """ 320 324 # Populate the model with 1d and 2d data 321 filename = ["cyl_400_20.txt", " Dec07031.ASC"]325 filename = ["cyl_400_20.txt", "P123_D2O_10_percent.dat"] 322 326 self.form.readData(filename) 323 327 … … 469 473 470 474 defaults = 'All (*.*);;canSAS files (*.xml);;SESANS files' +\ 471 ' (*.ses);;ASCII files (*.txt);; IGOR 2D files (*.asc);;' +\475 ' (*.ses);;ASCII files (*.txt);;' +\ 472 476 'IGOR/DAT 2D Q_map files (*.dat);;IGOR 1D files (*.abs);;'+\ 473 ' HFIR 1D files (*.d1d);;DANSE files (*.sans);;NXS files (*.nxs)'477 'DANSE files (*.sans)' 474 478 default_list = defaults.split(';;') 475 479 … … 525 529 p_file="cyl_400_20.txt" 526 530 output_object = loader.load(p_file) 527 new_data = [manager.create_gui_data(output_object , p_file)]531 new_data = [manager.create_gui_data(output_object[0], p_file)] 528 532 529 533 # Mask retrieval of the data … … 556 560 557 561 # get Data2D 558 p_file=" Dec07031.ASC"562 p_file="P123_D2O_10_percent.dat" 559 563 output_object = loader.load(p_file) 560 new_data = [manager.create_gui_data(output_object , p_file)]564 new_data = [manager.create_gui_data(output_object[0], p_file)] 561 565 562 566 # Mask retrieval of the data … … 594 598 output_object = loader.load(p_file) 595 599 output_item = QtGui.QStandardItem() 596 new_data = [(output_item, manager.create_gui_data(output_object , p_file))]600 new_data = [(output_item, manager.create_gui_data(output_object[0], p_file))] 597 601 598 602 # Mask plotting … … 737 741 738 742 # get Data2D 739 p_file=[" Dec07031.ASC"]743 p_file=["P123_D2O_10_percent.dat"] 740 744 # Read in the file 741 745 output, message = self.form.readData(p_file) … … 754 758 QFileDialog.getSaveFileName.assert_called_with( 755 759 caption="Save As", 756 directory=' Dec07031_out.dat',760 directory='P123_D2O_10_percent_out.dat', 757 761 filter='IGOR/DAT 2D file in Q_map (*.dat)', 758 762 parent=None) … … 782 786 """ 783 787 # get Data1D 784 p_file=[" Dec07031.ASC"]788 p_file=["P123_D2O_10_percent.dat"] 785 789 # Read in the file 786 790 output, message = self.form.readData(p_file)
Note: See TracChangeset
for help on using the changeset viewer.