xrdPlanner 2.0.0__tar.gz → 2.0.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: xrdPlanner
3
- Version: 2.0.0
3
+ Version: 2.0.2
4
4
  Summary: A tool to project X-ray diffraction cones on a detector screen at different geometries (tilt, rotation, offset) and X-ray energies
5
5
  Author-email: Lennard Krause <lkrause@chem.au.dk>
6
6
  Project-URL: Homepage, https://github.com/LennardKrause/xrdPlanner
@@ -1,6 +1,6 @@
1
- __version__ = '2.0.0'
1
+ __version__ = '2.0.2'
2
2
  __author__ = 'Lennard Krause'
3
3
  __authors__ = ['Lennard Krause', 'Frederik H. Gjørup', 'Mads R. V. Jørgensen']
4
4
  __email__ = 'lkrause@chem.au.dk'
5
- __date__ = '23.09.2024'
5
+ __date__ = '01.10.2024'
6
6
  __year__ = '2024'
@@ -2195,7 +2195,7 @@ class MainWindow(QtWidgets.QMainWindow):
2195
2195
  entry_layout = QtWidgets.QHBoxLayout()
2196
2196
  entry_layout.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
2197
2197
  if div > 0:
2198
- box_combobox = QtWidgets.QDoubleSpinBox(decimals=decimals, singleStep=step, minimum=step, maximum=1000, value=value/div)
2198
+ box_combobox = QtWidgets.QDoubleSpinBox(decimals=decimals, singleStep=step, minimum=step, maximum=100000, value=value/div)
2199
2199
  box_combobox.valueChanged.connect(self.win_fwhm_update)
2200
2200
  box_combobox.setObjectName(f'{idx} {div}')
2201
2201
  else:
@@ -2953,9 +2953,10 @@ class MainWindow(QtWidgets.QMainWindow):
2953
2953
  size_row = self.table_size.currentRow()
2954
2954
  hmn = int(self.table_size.item(size_row, 1).text())
2955
2955
  vmn = int(self.table_size.item(size_row, 2).text())
2956
+ pxs = self._db_dict[det]['pxs']
2956
2957
  xdim = self._db_dict[det]['hmp'] * hmn + self._db_dict[det]['hgp'] * (hmn-1) + self._db_dict[det]['cbh']
2957
2958
  ydim = self._db_dict[det]['vmp'] * vmn + self._db_dict[det]['vgp'] * (vmn-1) + self._db_dict[det]['cbh']
2958
- self._dim_mm.setText(f'{xdim * self._db_dict[det]['pxs']:.1f} \u00D7 {ydim * self._db_dict[det]['pxs']:.1f} mm\u00B2')
2959
+ self._dim_mm.setText(f'{xdim * pxs:.1f} \u00D7 {ydim * pxs:.1f} mm\u00B2')
2959
2960
  self._dim_px.setText(f'{xdim:.0f} \u00D7 {ydim:.0f} px')
2960
2961
 
2961
2962
  def win_detdb_par_change(self, val):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: xrdPlanner
3
- Version: 2.0.0
3
+ Version: 2.0.2
4
4
  Summary: A tool to project X-ray diffraction cones on a detector screen at different geometries (tilt, rotation, offset) and X-ray energies
5
5
  Author-email: Lennard Krause <lkrause@chem.au.dk>
6
6
  Project-URL: Homepage, https://github.com/LennardKrause/xrdPlanner
File without changes
File without changes
File without changes
File without changes