You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
QMessageBox.information(self, " ", "Tilt to some zone axis and capture the diffraction pattern. Of 2 non-colinear reflections (hkl) measure:\n-the distance between (000) and (hkl) in 1/nm.\n-the angle between the detector X-axis and the line that connects (000) and (hkl).\nNote that the X-axis points to the right and that positive angles are clockwise.")
2312
+
#self.testIndexation()
2292
2313
2293
2314
deftestIndexation(self):
2294
2315
self.l1box.setValue(5.6)
@@ -2401,7 +2422,37 @@ def getres(self):
2401
2422
else:
2402
2423
values.append(None)
2403
2424
returnvalues
2404
-
2425
+
2426
+
classindexingDialog(Dialog):
2427
+
"""Opens a window with only an indexing wizard widget"""
QMessageBox.information(self, " ", "The \u03b1-axis (X) runs along the double-tilt holder main axis pointed out of the microscope, the absolute Z axis is pointed down the column. The \u03b2-axis (Y) is defined by X x Y = Z at (0,0) tilt. Rotations follow the right hand rule.\n\nIf your holder doesn't follow these conventions, use the 'Reversed?' checkboxes appropriately.")
- I installed pipenv (as admin) and created a virtual environment for my folder
3
+
- In the virtual environment, I installed scipy, numpy, matplotlib, pyqt5, and pyinstaller using:
4
+
pyenv run pip package_name
5
+
- I ran: pipenv run pyinstaller GUI.py
6
+
- This created a spec file. I modified the spec file to include verbose and to include scipy.messagebox as hiddenimport (whatever that does, it was needed)
7
+
- I ran the command (as admin) in windows powershell:
8
+
pipenv run pyinstaller --onedir --noupx --clean GUI.py
9
+
- This gave me a permission error
10
+
- I ran it again and there was no problem anymore
11
+
- I mannually coppied the Images folder into the generated dist folder. This finally got me a working exe.
0 commit comments