# -*- coding: utf-8 -*- def main(): startApplication("sasview") clickTab(waitForObject(":Data Explorer.DataLoadWidget_DataExplorerWindow"), "Theory") mouseClick(waitForObject(":groupBox_6.cbCategory_QComboBox"), 39, 4, 0, Qt.LeftButton) mouseClick(waitForObjectItem(":groupBox_6.cbCategory_QComboBox", "Cylinder"), 28, 3, 0, Qt.LeftButton) mouseClick(waitForObject(":groupBox_6.cbModel_QComboBox_2"), 43, 7, 0, Qt.LeftButton) mouseClick(waitForObjectItem(":groupBox_6.cbModel_QComboBox_2", "core\\_shell\\_bicelle\\_elliptical"), 49, 7, 0, Qt.LeftButton) clickButton(waitForObject(":FittingWidgetUI.cmdPlot_QPushButton_2")) snooze(2) waitForObjectItem(":groupBox_2.freezeView_QTreeView", "M1 [core\\_shell\\_bicelle\\_elliptical]") clickItem(":groupBox_2.freezeView_QTreeView", "M1 [core\\_shell\\_bicelle\\_elliptical]", 64, 7, 0, Qt.LeftButton) openItemContextMenu(waitForObject(":groupBox_2.freezeView_QTreeView"), "M1 [core\\_shell\\_bicelle\\_elliptical]", 64, 7, 0) activateItem(waitForObjectItem(":MainWindow_QMenu", "Data Info")) test.compare(waitForObjectExists(":Data Info: M1 [core_shell_bicelle_elliptical]_QTextEdit").visible, True) test.compare(str(waitForObjectExists(":Data Info: M1 [core_shell_bicelle_elliptical]_QTextEdit").html), "\n\n

File: M1 [core_shell_bicelle_elliptical]

\n

Title: M1 [core_shell_bicelle_elliptical]

\n

Run: []

\n

SESANS: None

\n

Instrument:

\n

Sample:

\n

ID:

\n

Transmission: None

\n

Thickness: None [mm]

\n

Temperature: None [None]

\n

Position: x = None y = None z = None [mm]

\n

Orientation: x = None y = None z = None [degree]

\n

Details:

\n


\n

Source:

\n

Radiation: None

\n

Shape: None

\n

Wavelength: None [A]

\n

Waveln_min: None [nm]

\n

Waveln_max: None [nm]

\n

Waveln_spread:None [percent]

\n

Beam_size: x = None y = None z = None [mm]

\n


\n


\n

Data:

\n

Type: Data1D

\n

X-axis: \\rm{Q} [A^{-1}]

\n

Y-axis: \\rm{Intensity} [cm^{-1}]

\n

Length: 25

\n


\n

Data Min Max:

\n

X_min = 0.005: X_max = 0.1

\n

Y_min = 4.61789496717: Y_max = 369.191266886

\n

dY_min = 0.0: dY_max = 0.0

\n


\n

Data Points:

\n

<index> <X> <Y> <dY> <dX>

\n

0 0.005 369.191266886 0.0 0.0

\n

1 0.00895833333333 343.924827081 0.0 0.0

\n

2 0.0129166666667 308.166416117 0.0 0.0

\n

3 0.016875 266.135593911 0.0 0.0

\n

4 0.0208333333333 222.25367246 0.0 0.0

\n

5 0.0247916666667 180.3727708 0.0 0.0

\n

6 0.02875 143.231604481 0.0 0.0

\n

7 0.0327083333333 112.237202971 0.0 0.0

\n

8 0.0366666666667 87.5714529475 0.0 0.0

\n

9 0.040625 68.5337536767 0.0 0.0

\n

10 0.0445833333333 53.9821956025 0.0 0.0

\n

11 0.0485416666667 42.7358242671 0.0 0.0

\n

12 0.0525 33.8423092996 0.0 0.0

\n

13 0.0564583333333 26.6782576019 0.0 0.0

\n

14 0.0604166666667 20.9089451174 0.0 0.0

\n

15 0.064375 16.3710952381 0.0 0.0

\n

16 0.0683333333333 12.9486265509 0.0 0.0

\n

17 0.0722916666667 10.4915918121 0.0 0.0

\n

18 0.07625 8.79599248628 0.0 0.0

\n

19 0.0802083333333 7.63199964682 0.0 0.0

\n

20 0.0841666666667 6.79137560771 0.0 0.0

\n

21 0.088125 6.12490078577 0.0 0.0

\n

22 0.0920833333333 5.55319597067 0.0 0.0

\n

23 0.0960416666667 5.05104882551 0.0 0.0

\n

24 0.1 4.61789496717 0.0 0.0

\n


") test.compare(str(waitForObjectExists(":Data Info: M1 [core_shell_bicelle_elliptical]_QTextEdit").windowTitle), "Data Info: M1 [core_shell_bicelle_elliptical]") sendEvent("QCloseEvent", waitForObject(":Data Info: M1 [core_shell_bicelle_elliptical]_QTextEdit")) openItemContextMenu(waitForObject(":groupBox_2.freezeView_QTreeView"), "M1 [core\\_shell\\_bicelle\\_elliptical]", 209, 15, 0) activateItem(waitForObjectItem(":MainWindow_QMenu", "Save As")) test.compare(str(waitForObjectExists(":QFileDialog_QFileDialog").windowTitle), "Save As") test.compare(waitForObjectExists(":QFileDialog_QFileDialog").visible, True) test.compare(str(waitForObjectExists(":QFileDialog.fileTypeCombo_QComboBox").currentText), "Text files (*.txt)") test.compare(waitForObjectExists(":QFileDialog.fileTypeCombo_QComboBox").enabled, True) test.compare(waitForObjectExists(":fileNameEdit_QLineEdit").enabled, True) test.compare(str(waitForObjectExists(":fileNameEdit_QLineEdit").text), "M1 [core_shell_bicelle_elliptical]_out.txt") clickButton(waitForObject(":QFileDialog.Cancel_QPushButton")) openItemContextMenu(waitForObject(":groupBox_2.freezeView_QTreeView"), "M1 [core\\_shell\\_bicelle\\_elliptical]", 138, 10, 0) activateItem(waitForObjectItem(":MainWindow_QMenu", "Quick Plot")) test.compare(waitForObjectExists(":Plot M1 [core_shell_bicelle_elliptical]_FigureCanvasQTAgg").visible, True) test.compare(waitForObjectExists(":Plot M1 [core_shell_bicelle_elliptical]_FigureCanvasQTAgg").enabled, True) test.compare(str(waitForObjectExists(":Plot M1 [core_shell_bicelle_elliptical]_Plotter").windowTitle), "Plot M1 [core_shell_bicelle_elliptical]") test.compare(waitForObjectExists(":Plot M1 [core_shell_bicelle_elliptical]_Plotter").visible, True) test.vp("VP1") sendEvent("QCloseEvent", waitForObject(":Plot M1 [core_shell_bicelle_elliptical]_Plotter"))