Skip to content

Commit

Permalink
Improved calculation of the number of detector rows
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Moll committed Jul 23, 2014
1 parent fdff674 commit 275c354
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion install_scripts/Windows/sakura.iss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#define MyAppName "Sakura"
#define Home "..\.."
#define MyAppExeName "sakura.exe"
#define VERSION "0.2.1"
#define VERSION "0.3"

[Setup]
; NOTE: The value of AppId uniquely identifies this application.
Expand Down
2 changes: 1 addition & 1 deletion sakura_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ def OnClick_Load( self, event ):
# account for non-rectangular detectors
if self.detector_cols == 0 or self.detector_rows == 0:
self.detector_cols = int(np.round(np.sqrt(self.detSize)))
self.detector_rows = int(self.detSize / self.detector_cols)
self.detector_rows = int(np.round(1.0*self.detSize / self.detector_cols))

# Make Upper and Lower Detector grid wx.Sizers
gSizer_Det1, self.pixel_ids1 = self.make_detector_grid_sizer(
Expand Down

0 comments on commit 275c354

Please sign in to comment.