orGUI 1.1.0__tar.gz → 1.1.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. {orgui-1.1.0/orGUI.egg-info → orgui-1.1.2}/PKG-INFO +6 -2
  2. {orgui-1.1.0 → orgui-1.1.2/orGUI.egg-info}/PKG-INFO +6 -2
  3. {orgui-1.1.0 → orgui-1.1.2}/orGUI.egg-info/SOURCES.txt +5 -4
  4. {orgui-1.1.0 → orgui-1.1.2}/orGUI.egg-info/requires.txt +5 -0
  5. {orgui-1.1.0 → orgui-1.1.2}/orgui/__init__.py +2 -2
  6. {orgui-1.1.0 → orgui-1.1.2}/orgui/app/QUBCalculator.py +3 -3
  7. {orgui-1.1.0 → orgui-1.1.2}/orgui/app/orGUI.py +11 -5
  8. {orgui-1.1.0 → orgui-1.1.2}/orgui/backend/backends.py +1 -1
  9. {orgui-1.1.0 → orgui-1.1.2}/orgui/backend/beamline/id31_tools.py +8 -0
  10. {orgui-1.1.0 → orgui-1.1.2}/orgui/backend/universalScanLoader.py +11 -5
  11. {orgui-1.1.0 → orgui-1.1.2}/orgui/datautils/__init__.py +1 -1
  12. {orgui-1.1.0 → orgui-1.1.2}/orgui/datautils/xrayutils/CTRcalc.py +3 -3
  13. {orgui-1.1.0 → orgui-1.1.2}/orgui/main.py +2 -3
  14. {orgui-1.1.0 → orgui-1.1.2}/orgui/resources/icons/alpha.svg +66 -66
  15. orgui-1.1.2/orgui/resources/icons/diffractometer_v2.png +0 -0
  16. orgui-1.1.2/orgui/resources/icons/diffractometer_v2.svg +1212 -0
  17. orgui-1.1.2/orgui/resources/icons/diffractometer_v3.svg +1226 -0
  18. orgui-1.1.2/orgui/resources/icons/diffractometer_v3_norm.svg +968 -0
  19. orgui-1.1.2/orgui/resources/icons/diffractometer_v3_opt.svg +5627 -0
  20. {orgui-1.1.0 → orgui-1.1.2}/orgui/resources/icons/lattice-view.svg +160 -160
  21. {orgui-1.1.0 → orgui-1.1.2}/orgui/resources/icons/logo.svg +875 -875
  22. {orgui-1.1.0 → orgui-1.1.2}/orgui/resources/icons/max_image.svg +76 -76
  23. {orgui-1.1.0 → orgui-1.1.2}/orgui/resources/icons/max_image2.svg +82 -82
  24. {orgui-1.1.0 → orgui-1.1.2}/orgui/resources/icons/orguiicon.svg +82 -82
  25. {orgui-1.1.0 → orgui-1.1.2}/orgui/resources/icons/sum_image.svg +62 -62
  26. {orgui-1.1.0 → orgui-1.1.2}/orgui/resources/icons/sum_image2.svg +74 -74
  27. {orgui-1.1.0 → orgui-1.1.2}/pyproject.toml +3 -2
  28. orgui-1.1.0/.gitignore +0 -35
  29. orgui-1.1.0/orgui/datautils/xrayutils/test/testdata/0V12_calculated.dat +0 -4001
  30. orgui-1.1.0/orgui/datautils/xrayutils/test/testdata/0V12_calculated.xpr +0 -26
  31. orgui-1.1.0/requirements.txt +0 -11
  32. {orgui-1.1.0 → orgui-1.1.2}/LICENSE +0 -0
  33. {orgui-1.1.0 → orgui-1.1.2}/README.rst +0 -0
  34. {orgui-1.1.0 → orgui-1.1.2}/orGUI.egg-info/dependency_links.txt +0 -0
  35. {orgui-1.1.0 → orgui-1.1.2}/orGUI.egg-info/entry_points.txt +0 -0
  36. {orgui-1.1.0 → orgui-1.1.2}/orGUI.egg-info/top_level.txt +0 -0
  37. {orgui-1.1.0 → orgui-1.1.2}/orgui/app/ArrayTableDialog.py +0 -0
  38. {orgui-1.1.0 → orgui-1.1.2}/orgui/app/QReflectionSelector.py +0 -0
  39. {orgui-1.1.0 → orgui-1.1.2}/orgui/app/QScanSelector.py +0 -0
  40. {orgui-1.1.0 → orgui-1.1.2}/orgui/app/__init__.py +0 -0
  41. {orgui-1.1.0 → orgui-1.1.2}/orgui/app/database.py +0 -0
  42. {orgui-1.1.0 → orgui-1.1.2}/orgui/app/qutils.py +0 -0
  43. {orgui-1.1.0 → orgui-1.1.2}/orgui/backend/__init__.py +0 -0
  44. {orgui-1.1.0 → orgui-1.1.2}/orgui/backend/beamline/ID31DiffractLinTilt.py +0 -0
  45. {orgui-1.1.0 → orgui-1.1.2}/orgui/backend/beamline/P212_tools.py +0 -0
  46. {orgui-1.1.0 → orgui-1.1.2}/orgui/backend/beamline/__init__.py +0 -0
  47. {orgui-1.1.0 → orgui-1.1.2}/orgui/backend/beamline/fio_reader.py +0 -0
  48. {orgui-1.1.0 → orgui-1.1.2}/orgui/backend/scans.py +0 -0
  49. {orgui-1.1.0 → orgui-1.1.2}/orgui/backend/udefaults.py +0 -0
  50. {orgui-1.1.0 → orgui-1.1.2}/orgui/datautils/util.py +0 -0
  51. {orgui-1.1.0 → orgui-1.1.2}/orgui/datautils/xrayutils/CTRopt.py +0 -0
  52. {orgui-1.1.0 → orgui-1.1.2}/orgui/datautils/xrayutils/CTRplotutil.py +0 -0
  53. {orgui-1.1.0 → orgui-1.1.2}/orgui/datautils/xrayutils/DetectorCalibration.py +0 -0
  54. {orgui-1.1.0 → orgui-1.1.2}/orgui/datautils/xrayutils/HKLVlieg.py +0 -0
  55. {orgui-1.1.0 → orgui-1.1.2}/orgui/datautils/xrayutils/ReciprocalNavigation.py +0 -0
  56. {orgui-1.1.0 → orgui-1.1.2}/orgui/datautils/xrayutils/_CTRcalc_accel.py +0 -0
  57. {orgui-1.1.0 → orgui-1.1.2}/orgui/datautils/xrayutils/__init__.py +0 -0
  58. {orgui-1.1.0 → orgui-1.1.2}/orgui/datautils/xrayutils/element_data.py +0 -0
  59. {orgui-1.1.0 → orgui-1.1.2}/orgui/datautils/xrayutils/test/__init__.py +0 -0
  60. {orgui-1.1.0 → orgui-1.1.2}/orgui/datautils/xrayutils/test/test_CTRcalc.py +0 -0
  61. {orgui-1.1.0 → orgui-1.1.2}/orgui/datautils/xrayutils/test/test_DetectorCalibration.py +0 -0
  62. {orgui-1.1.0 → orgui-1.1.2}/orgui/datautils/xrayutils/test/test_HKLcalc.py +0 -0
  63. {orgui-1.1.0 → orgui-1.1.2}/orgui/datautils/xrayutils/unitcells/Fe3O4(100).bul +0 -0
  64. {orgui-1.1.0 → orgui-1.1.2}/orgui/datautils/xrayutils/unitcells/Pt100.bul +0 -0
  65. {orgui-1.1.0 → orgui-1.1.2}/orgui/datautils/xrayutils/unitcells/Pt100_small.bul +0 -0
  66. {orgui-1.1.0 → orgui-1.1.2}/orgui/datautils/xrayutils/unitcells/Pt110.bul +0 -0
  67. {orgui-1.1.0 → orgui-1.1.2}/orgui/datautils/xrayutils/unitcells/Pt111.bul +0 -0
  68. {orgui-1.1.0 → orgui-1.1.2}/orgui/datautils/xrayutils/unitcells/Pt310.bul +0 -0
  69. {orgui-1.1.0 → orgui-1.1.2}/orgui/datautils/xrayutils/unitcells/Pt3O4(100).bul +0 -0
  70. {orgui-1.1.0 → orgui-1.1.2}/orgui/datautils/xrayutils/unitcells/PtO(001).bul +0 -0
  71. {orgui-1.1.0 → orgui-1.1.2}/orgui/datautils/xrayutils/unitcells/PtO(010).bul +0 -0
  72. {orgui-1.1.0 → orgui-1.1.2}/orgui/datautils/xrayutils/unitcells/PtO(100).bul +0 -0
  73. {orgui-1.1.0 → orgui-1.1.2}/orgui/datautils/xrayutils/unitcells/__init__.py +0 -0
  74. {orgui-1.1.0 → orgui-1.1.2}/orgui/datautils/xrayutils/unitcells/a-PtO2(0001).bul +0 -0
  75. {orgui-1.1.0 → orgui-1.1.2}/orgui/resources/__init__.py +0 -0
  76. {orgui-1.1.0 → orgui-1.1.2}/orgui/resources/icons/alpha.png +0 -0
  77. {orgui-1.1.0 → orgui-1.1.2}/orgui/resources/icons/diffractometer_v3.png +0 -0
  78. {orgui-1.1.0 → orgui-1.1.2}/orgui/resources/icons/disable-image.png +0 -0
  79. {orgui-1.1.0 → orgui-1.1.2}/orgui/resources/icons/disable-image.svg +0 -0
  80. {orgui-1.1.0 → orgui-1.1.2}/orgui/resources/icons/document-nx-open.png +0 -0
  81. {orgui-1.1.0 → orgui-1.1.2}/orgui/resources/icons/document-nx-open.svg +0 -0
  82. {orgui-1.1.0 → orgui-1.1.2}/orgui/resources/icons/document-nx-save.png +0 -0
  83. {orgui-1.1.0 → orgui-1.1.2}/orgui/resources/icons/document-nx-save.svg +0 -0
  84. {orgui-1.1.0 → orgui-1.1.2}/orgui/resources/icons/lattice-all-link.png +0 -0
  85. {orgui-1.1.0 → orgui-1.1.2}/orgui/resources/icons/lattice-all-link.svg +0 -0
  86. {orgui-1.1.0 → orgui-1.1.2}/orgui/resources/icons/lattice-horizontal-link.png +0 -0
  87. {orgui-1.1.0 → orgui-1.1.2}/orgui/resources/icons/lattice-horizontal-link.svg +0 -0
  88. {orgui-1.1.0 → orgui-1.1.2}/orgui/resources/icons/lattice-no-link.png +0 -0
  89. {orgui-1.1.0 → orgui-1.1.2}/orgui/resources/icons/lattice-no-link.svg +0 -0
  90. {orgui-1.1.0 → orgui-1.1.2}/orgui/resources/icons/lattice-view.png +0 -0
  91. {orgui-1.1.0 → orgui-1.1.2}/orgui/resources/icons/logo.png +0 -0
  92. {orgui-1.1.0 → orgui-1.1.2}/orgui/resources/icons/max_image.png +0 -0
  93. {orgui-1.1.0 → orgui-1.1.2}/orgui/resources/icons/max_image2.png +0 -0
  94. {orgui-1.1.0 → orgui-1.1.2}/orgui/resources/icons/orguiicon.png +0 -0
  95. {orgui-1.1.0 → orgui-1.1.2}/orgui/resources/icons/search-image.png +0 -0
  96. {orgui-1.1.0 → orgui-1.1.2}/orgui/resources/icons/search-image.svg +0 -0
  97. {orgui-1.1.0 → orgui-1.1.2}/orgui/resources/icons/search-reflection.png +0 -0
  98. {orgui-1.1.0 → orgui-1.1.2}/orgui/resources/icons/search-reflection.svg +0 -0
  99. {orgui-1.1.0 → orgui-1.1.2}/orgui/resources/icons/search.png +0 -0
  100. {orgui-1.1.0 → orgui-1.1.2}/orgui/resources/icons/search.svg +0 -0
  101. {orgui-1.1.0 → orgui-1.1.2}/orgui/resources/icons/select-image.png +0 -0
  102. {orgui-1.1.0 → orgui-1.1.2}/orgui/resources/icons/select-image.svg +0 -0
  103. {orgui-1.1.0 → orgui-1.1.2}/orgui/resources/icons/set-reflection.png +0 -0
  104. {orgui-1.1.0 → orgui-1.1.2}/orgui/resources/icons/set-reflection.svg +0 -0
  105. {orgui-1.1.0 → orgui-1.1.2}/orgui/resources/icons/sum_image.png +0 -0
  106. {orgui-1.1.0 → orgui-1.1.2}/orgui/resources/icons/sum_image2.png +0 -0
  107. {orgui-1.1.0 → orgui-1.1.2}/setup.cfg +0 -0
@@ -1,8 +1,8 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: orGUI
3
- Version: 1.1.0
3
+ Version: 1.1.2
4
4
  Summary: orGUI: Orientation and Integration with 2D detectors
5
- Author-email: Timo Fuchs <fuchs@physik.uni-kiel.de>
5
+ Author-email: Timo Fuchs <tfuchs@cornell.edu>
6
6
  License: MIT License
7
7
  Classifier: Development Status :: 5 - Production/Stable
8
8
  Classifier: Environment :: Win32 (MS Windows)
@@ -39,6 +39,10 @@ Provides-Extra: speedup
39
39
  Requires-Dist: numba; extra == "speedup"
40
40
  Provides-Extra: extendedfilesupport
41
41
  Requires-Dist: ase; extra == "extendedfilesupport"
42
+ Provides-Extra: full
43
+ Requires-Dist: qtconsole; extra == "full"
44
+ Requires-Dist: ase; extra == "full"
45
+ Requires-Dist: numba; extra == "full"
42
46
 
43
47
 
44
48
  orGUI: Orientation and Integration with 2D detectors
@@ -1,8 +1,8 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: orGUI
3
- Version: 1.1.0
3
+ Version: 1.1.2
4
4
  Summary: orGUI: Orientation and Integration with 2D detectors
5
- Author-email: Timo Fuchs <fuchs@physik.uni-kiel.de>
5
+ Author-email: Timo Fuchs <tfuchs@cornell.edu>
6
6
  License: MIT License
7
7
  Classifier: Development Status :: 5 - Production/Stable
8
8
  Classifier: Environment :: Win32 (MS Windows)
@@ -39,6 +39,10 @@ Provides-Extra: speedup
39
39
  Requires-Dist: numba; extra == "speedup"
40
40
  Provides-Extra: extendedfilesupport
41
41
  Requires-Dist: ase; extra == "extendedfilesupport"
42
+ Provides-Extra: full
43
+ Requires-Dist: qtconsole; extra == "full"
44
+ Requires-Dist: ase; extra == "full"
45
+ Requires-Dist: numba; extra == "full"
42
46
 
43
47
 
44
48
  orGUI: Orientation and Integration with 2D detectors
@@ -1,8 +1,6 @@
1
- .gitignore
2
1
  LICENSE
3
2
  README.rst
4
3
  pyproject.toml
5
- requirements.txt
6
4
  orGUI.egg-info/PKG-INFO
7
5
  orGUI.egg-info/SOURCES.txt
8
6
  orGUI.egg-info/dependency_links.txt
@@ -50,8 +48,6 @@ orgui/datautils/xrayutils/test/__init__.py
50
48
  orgui/datautils/xrayutils/test/test_CTRcalc.py
51
49
  orgui/datautils/xrayutils/test/test_DetectorCalibration.py
52
50
  orgui/datautils/xrayutils/test/test_HKLcalc.py
53
- orgui/datautils/xrayutils/test/testdata/0V12_calculated.dat
54
- orgui/datautils/xrayutils/test/testdata/0V12_calculated.xpr
55
51
  orgui/datautils/xrayutils/unitcells/Fe3O4(100).bul
56
52
  orgui/datautils/xrayutils/unitcells/Pt100.bul
57
53
  orgui/datautils/xrayutils/unitcells/Pt100_small.bul
@@ -67,7 +63,12 @@ orgui/datautils/xrayutils/unitcells/a-PtO2(0001).bul
67
63
  orgui/resources/__init__.py
68
64
  orgui/resources/icons/alpha.png
69
65
  orgui/resources/icons/alpha.svg
66
+ orgui/resources/icons/diffractometer_v2.png
67
+ orgui/resources/icons/diffractometer_v2.svg
70
68
  orgui/resources/icons/diffractometer_v3.png
69
+ orgui/resources/icons/diffractometer_v3.svg
70
+ orgui/resources/icons/diffractometer_v3_norm.svg
71
+ orgui/resources/icons/diffractometer_v3_opt.svg
71
72
  orgui/resources/icons/disable-image.png
72
73
  orgui/resources/icons/disable-image.svg
73
74
  orgui/resources/icons/document-nx-open.png
@@ -14,5 +14,10 @@ qtconsole
14
14
  [extendedfilesupport]
15
15
  ase
16
16
 
17
+ [full]
18
+ qtconsole
19
+ ase
20
+ numba
21
+
17
22
  [speedup]
18
23
  numba
@@ -29,8 +29,8 @@ __author__ = "Timo Fuchs"
29
29
  __copyright__ = "Copyright 2020-2024 Timo Fuchs"
30
30
  __credits__ = []
31
31
  __license__ = "MIT License"
32
- __version__ = "1.1.0"
32
+ __version__ = "1.1.2"
33
33
  __maintainer__ = "Timo Fuchs"
34
- __email__ = "fuchs@physik.uni-kiel.de"
34
+ __email__ = "tfuchs@cornell.edu"
35
35
 
36
36
  __all__ = ['main']
@@ -445,7 +445,7 @@ class QUBCalculator(qt.QSplitter):
445
445
  ponipath = os.path.join(os.path.dirname(p), machine['poni'])
446
446
  self.detectorCal.load(ponipath)
447
447
  self.ubCal.setLambda(self.detectorCal.get_wavelength()*1e10)
448
-
448
+ self.crystal.setEnergy(self.detectorCal.get_energy()*1e3)
449
449
  else:
450
450
  self.detectorCal.setFit2D(sdd*1e3,cpx,cpy,pixelX=pixelsize*1e6, pixelY=pixelsize*1e6)
451
451
  self.detectorCal.set_wavelength(self.ubCal.getLambda()*1e-10)
@@ -468,7 +468,7 @@ class QUBCalculator(qt.QSplitter):
468
468
  'chi' : self.chi
469
469
  },
470
470
  'source' : {
471
- 'E' : E
471
+ 'E' : self.detectorCal.get_energy()
472
472
  },
473
473
  'SXRD_geometry' : self.detectorCal
474
474
  }
@@ -515,7 +515,7 @@ class QUBCalculator(qt.QSplitter):
515
515
  'chi' : self.chi
516
516
  },
517
517
  'source' : {
518
- 'E' : E
518
+ 'E' : self.detectorCal.get_energy()
519
519
  },
520
520
  'SXRD_geometry' : self.detectorCal
521
521
  }
@@ -427,7 +427,7 @@ ub : gui for UB matrix and angle calculations
427
427
  break
428
428
  else:
429
429
  return
430
- dist_in_pixels = min_coordinates['xy_%s' % int(which_Ewald_intersect+1)][1] - max_coordinates['xy_%s' % int(which_Ewald_intersect+1)][1]
430
+ dist_in_pixels = np.abs(min_coordinates['xy_%s' % int(which_Ewald_intersect+1)][1] - max_coordinates['xy_%s' % int(which_Ewald_intersect+1)][1])
431
431
  roi_hlength = np.ceil(dist_in_pixels/step_nr)
432
432
 
433
433
  # open ROI selection dialog
@@ -1020,6 +1020,13 @@ ub : gui for UB matrix and angle calculations
1020
1020
 
1021
1021
  # search files using ImportImagesScan backend
1022
1022
  importedscan = universalScanLoader.ImportImagesScan(filename)
1023
+
1024
+ if importedscan.inpath == None:
1025
+ qt.QMessageBox.critical(self,
1026
+ "Images could not be imported",
1027
+ "The selected data source is not suitable\n"\
1028
+ "It is necessary to select a file containing raw detector image(s)!")
1029
+ return
1023
1030
 
1024
1031
  if importedscan.shape != self.ubcalc.detectorCal.detector.shape:
1025
1032
  qt.QMessageBox.critical(self,
@@ -2434,8 +2441,7 @@ class AspectRatioPixmapLabel(qt.QLabel):
2434
2441
 
2435
2442
  def sizeHint(self):
2436
2443
  app = qt.QApplication.instance()
2437
- desktopWidget = app.desktop()
2438
- screenGeometry = desktopWidget.screenGeometry()
2444
+ screenGeometry = app.primaryScreen().availableGeometry()
2439
2445
  w = int(screenGeometry.width()/3)
2440
2446
  w_s = self.width()
2441
2447
  return qt.QSize( max(w, w_s), self.heightForWidth(w))
@@ -2452,8 +2458,8 @@ class AboutDialog(qt.QDialog):
2452
2458
 
2453
2459
  pixmap = resources.getSplashScreen(str(version))
2454
2460
  self.logo = qt.QLabel()
2455
- desktopWidget = qt.QApplication.instance().desktop()
2456
- screenGeometry = desktopWidget.screenGeometry()
2461
+ app = qt.QApplication.instance()
2462
+ screenGeometry = app.primaryScreen().availableGeometry()
2457
2463
  splashpm = pixmap.scaledToHeight(int(screenGeometry.height()/5), qt.Qt.SmoothTransformation)
2458
2464
  self.logo.setPixmap(splashpm)
2459
2465
 
@@ -64,7 +64,7 @@ def parseID31Bliss(obj):
64
64
  return ddict
65
65
 
66
66
  # orgui will search for these counters in the Scan object and copy them into the database, if available
67
- auxillary_counters = ['current', 'potential', 'exposure_time', 'elapsed_time','time', 'srcur', 'mondio', 'epoch']
67
+ auxillary_counters = ['current', 'potential', 'exposure_time', 'elapsed_time','time', 'srcur', 'mondio', 'epoch', 'potv']
68
68
 
69
69
  # assign the name parser to the beamtime identifiers:
70
70
 
@@ -328,6 +328,11 @@ class BlissScan_EBS(Fastscan):
328
328
  self.th = data_1['measurement']['th_trig'][:self.nopoints] + data_1['measurement']['th_delta'][:self.nopoints] / 2
329
329
  self.axisname = 'th'
330
330
  self.mu = self.positioners['mu']
331
+
332
+ elif 'uth' in data_1['measurement']:
333
+ self.th = data_1['measurement']['uth'][:self.nopoints]
334
+ self.axisname = 'th'
335
+ self.mu = self.positioners['mu'] *-1
331
336
 
332
337
  elif 'mu' in data_1['measurement']:
333
338
  self.mu = data_1['measurement']['mu'][:self.nopoints]
@@ -348,6 +353,9 @@ class BlissScan_EBS(Fastscan):
348
353
  self.axisname = 'time'
349
354
  self.th = self.positioners['th']
350
355
  self.mu = self.positioners['mu']
356
+
357
+ if 'potv' in data_1['measurement']:
358
+ self.potv = data_1['measurement']['potv'][:self.nopoints]
351
359
 
352
360
  if 'srcur' in data_1['measurement']:
353
361
  self.srcur = data_1['measurement']['srcur'][:self.nopoints]
@@ -41,6 +41,10 @@ class ImportImagesScan():
41
41
  self.filename = imgpath
42
42
 
43
43
  self.inpath = self.find_files()
44
+
45
+ if self.inpath == None:
46
+ return
47
+
44
48
  with fabio.open(self.inpath[0] + self.inpath[1][0]) as fabf:
45
49
  img_data = fabf.data
46
50
  self.FramesPerFile = fabf.nframes
@@ -71,12 +75,14 @@ class ImportImagesScan():
71
75
  filenames = ''.join(os.listdir(selected_directory))
72
76
 
73
77
  found_scanfiles = re_str.findall(filenames) #list of found filenames (suffix only)
74
- suffix = re_str.findall(self.filename)[0]
75
- imagePrefix = self.filename.removesuffix(suffix)
76
-
77
78
  #found_scannrs = [e[1:-4] for e in found_scanfiles] #only the scan numbers, eg. 00015
78
-
79
- return [imagePrefix,found_scanfiles]
79
+ if re_str.findall(self.filename) == []:
80
+ print('Could not load images')
81
+ return
82
+ else:
83
+ suffix = re_str.findall(self.filename)[0]
84
+ imagePrefix = self.filename.removesuffix(suffix)
85
+ return [imagePrefix,found_scanfiles]
80
86
 
81
87
  def set_axis(self,axismin,axismax,axis,fixedAxisValue):
82
88
  self.axis = np.linspace(axismin,axismax,self.nopoints)
@@ -27,6 +27,6 @@ __copyright__ = "Copyright 2020-2024 Timo Fuchs"
27
27
  __license__ = "MIT License"
28
28
  __version__ = "1.0.0"
29
29
  __maintainer__ = "Timo Fuchs"
30
- __email__ = "fuchs@physik.uni-kiel.de"
30
+ __email__ = "tfuchs@cornell.edu"
31
31
 
32
32
  __all__ = ['util']
@@ -2477,7 +2477,7 @@ class UnitCell(Lattice):
2477
2477
 
2478
2478
  for i,params in enumerate(self.basis):
2479
2479
 
2480
- radius = cov_radii_array[atomic_number(self.names[i])-1]*2
2480
+ radius = cov_radii_array[atomic_number(self.names[i])-1][2]*2
2481
2481
  #elcolor_c = keyargs.get('color')
2482
2482
  #if elcolor_c is None:
2483
2483
  # elcolor_c = elements.rgb(int(params[0]))
@@ -2496,7 +2496,7 @@ class UnitCell(Lattice):
2496
2496
  for yno in range(1,abs(ucy)+1):
2497
2497
  for zno in range(1,abs(ucz)+1):
2498
2498
  if len(translate.shape) > 1:
2499
- x_t, y_t, z_t = np.array([x,y,z]) + translate[:,-1].A1
2499
+ x_t, y_t, z_t = np.array([x,y,z]) + translate[:,-1].flatten()
2500
2500
  positions[no] = np.array([x_t + signx*(xno-1),y_t + signy*(yno-1),z_t + signz*(zno-1)])
2501
2501
  else:
2502
2502
  positions[no] = np.array([x + signx*(xno-1),y + signy*(yno-1),z+ signz*(zno-1)]) + translate
@@ -2538,7 +2538,7 @@ class UnitCell(Lattice):
2538
2538
  for yno in range(1,abs(ucy)+1):
2539
2539
  for zno in range(1,abs(ucz)+1):
2540
2540
  if len(translate.shape) > 1:
2541
- x_t, y_t, z_t = np.array([x,y,z]) + translate[:,-1].A1
2541
+ x_t, y_t, z_t = np.array([x,y,z]) + translate[:,-1].flatten()
2542
2542
  positions[no] = np.array([x_t + signx*(xno-1),y_t + signy*(yno-1),z_t + signz*(zno-1)])
2543
2543
  else:
2544
2544
  positions[no] = np.array([x + signx*(xno-1),y + signy*(yno-1),z+ signz*(zno-1)]) + translate
@@ -31,7 +31,7 @@ __credits__ = []
31
31
  __license__ = "MIT License"
32
32
  from . import __version__
33
33
  __maintainer__ = "Timo Fuchs"
34
- __email__ = "fuchs@physik.uni-kiel.de"
34
+ __email__ = "tfuchs@cornell.edu"
35
35
 
36
36
  import os
37
37
  import sys
@@ -76,8 +76,7 @@ def main():
76
76
  app.setWindowIcon(getQicon("orguiicon"))
77
77
  from .resources import getSplashScreen
78
78
  pixmap = getSplashScreen(__version__)
79
- desktopWidget = app.desktop()
80
- screenGeometry = desktopWidget.screenGeometry()
79
+ screenGeometry = app.primaryScreen().availableGeometry()
81
80
  splashpm = pixmap.scaledToHeight(int(screenGeometry.height()/3), qt.Qt.SmoothTransformation)
82
81
  splash = qt.QSplashScreen(splashpm)
83
82
  splash.show()
@@ -1,67 +1,67 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
- <svg
3
- xmlns:dc="http://purl.org/dc/elements/1.1/"
4
- xmlns:cc="http://creativecommons.org/ns#"
5
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
6
- xmlns:svg="http://www.w3.org/2000/svg"
7
- xmlns="http://www.w3.org/2000/svg"
8
- xmlns:xlink="http://www.w3.org/1999/xlink"
9
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
10
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
11
- id="svg16"
12
- enable-background="new 0 0 32 32"
13
- version="1.1"
14
- viewBox="0 0 32 32"
15
- xml:space="preserve"
16
- sodipodi:docname="alpha.svg"
17
- inkscape:version="0.92.3 (2405546, 2018-03-11)"
18
- inkscape:export-filename="I:\icons\max_2.png"
19
- inkscape:export-xdpi="96"
20
- inkscape:export-ydpi="96"><defs
21
- id="defs10"><linearGradient
22
- inkscape:collect="always"
23
- id="linearGradient825"><stop
24
- style="stop-color:#000000;stop-opacity:1;"
25
- offset="0"
26
- id="stop821" /><stop
27
- style="stop-color:#000000;stop-opacity:0;"
28
- offset="1"
29
- id="stop823" /></linearGradient><linearGradient
30
- inkscape:collect="always"
31
- xlink:href="#linearGradient825"
32
- id="linearGradient827"
33
- x1="3.9111714"
34
- y1="15.74853"
35
- x2="23.893707"
36
- y2="15.74853"
37
- gradientUnits="userSpaceOnUse" /></defs><sodipodi:namedview
38
- pagecolor="#ffffff"
39
- bordercolor="#666666"
40
- borderopacity="1"
41
- objecttolerance="10"
42
- gridtolerance="10"
43
- guidetolerance="10"
44
- inkscape:pageopacity="0"
45
- inkscape:pageshadow="2"
46
- inkscape:window-width="3840"
47
- inkscape:window-height="2066"
48
- id="namedview8"
49
- showgrid="false"
50
- inkscape:zoom="10.429825"
51
- inkscape:cx="-2.5419877"
52
- inkscape:cy="-11.988123"
53
- inkscape:window-x="-11"
54
- inkscape:window-y="-11"
55
- inkscape:window-maximized="1"
56
- inkscape:current-layer="svg16"
57
- inkscape:snap-global="false" /><metadata
58
- id="metadata22"><rdf:RDF><cc:Work
59
- rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
60
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata>
61
- <rect
62
- style="fill:url(#linearGradient827);fill-opacity:1;stroke:#000000;stroke-width:0.76843834;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
63
- id="rect819"
64
- width="23.720406"
65
- height="23.720406"
66
- x="4.2953906"
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg
3
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
4
+ xmlns:cc="http://creativecommons.org/ns#"
5
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
6
+ xmlns:svg="http://www.w3.org/2000/svg"
7
+ xmlns="http://www.w3.org/2000/svg"
8
+ xmlns:xlink="http://www.w3.org/1999/xlink"
9
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
10
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
11
+ id="svg16"
12
+ enable-background="new 0 0 32 32"
13
+ version="1.1"
14
+ viewBox="0 0 32 32"
15
+ xml:space="preserve"
16
+ sodipodi:docname="alpha.svg"
17
+ inkscape:version="0.92.3 (2405546, 2018-03-11)"
18
+ inkscape:export-filename="I:\icons\max_2.png"
19
+ inkscape:export-xdpi="96"
20
+ inkscape:export-ydpi="96"><defs
21
+ id="defs10"><linearGradient
22
+ inkscape:collect="always"
23
+ id="linearGradient825"><stop
24
+ style="stop-color:#000000;stop-opacity:1;"
25
+ offset="0"
26
+ id="stop821" /><stop
27
+ style="stop-color:#000000;stop-opacity:0;"
28
+ offset="1"
29
+ id="stop823" /></linearGradient><linearGradient
30
+ inkscape:collect="always"
31
+ xlink:href="#linearGradient825"
32
+ id="linearGradient827"
33
+ x1="3.9111714"
34
+ y1="15.74853"
35
+ x2="23.893707"
36
+ y2="15.74853"
37
+ gradientUnits="userSpaceOnUse" /></defs><sodipodi:namedview
38
+ pagecolor="#ffffff"
39
+ bordercolor="#666666"
40
+ borderopacity="1"
41
+ objecttolerance="10"
42
+ gridtolerance="10"
43
+ guidetolerance="10"
44
+ inkscape:pageopacity="0"
45
+ inkscape:pageshadow="2"
46
+ inkscape:window-width="3840"
47
+ inkscape:window-height="2066"
48
+ id="namedview8"
49
+ showgrid="false"
50
+ inkscape:zoom="10.429825"
51
+ inkscape:cx="-2.5419877"
52
+ inkscape:cy="-11.988123"
53
+ inkscape:window-x="-11"
54
+ inkscape:window-y="-11"
55
+ inkscape:window-maximized="1"
56
+ inkscape:current-layer="svg16"
57
+ inkscape:snap-global="false" /><metadata
58
+ id="metadata22"><rdf:RDF><cc:Work
59
+ rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
60
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata>
61
+ <rect
62
+ style="fill:url(#linearGradient827);fill-opacity:1;stroke:#000000;stroke-width:0.76843834;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
63
+ id="rect819"
64
+ width="23.720406"
65
+ height="23.720406"
66
+ x="4.2953906"
67
67
  y="3.8883274" /></svg>