Skip to content

Commit

Permalink
Update lauetoolsneuralnetwork.py
Browse files Browse the repository at this point in the history
  • Loading branch information
BM32ESRF committed Nov 27, 2022
1 parent c681c57 commit 7ac5fec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lauetoolsnn/lauetoolsneuralnetwork.py
Original file line number Diff line number Diff line change
Expand Up @@ -2726,8 +2726,8 @@ def __init__(self, ix, iy, file, data, ccd_label, function_predict, image_no, de
self.layout.addWidget(self.toolbar, 0)
self.layout.addWidget(self.canvas, 100)

self.ImaxDisplayed = 2*np.average(data)
self.IminDisplayed = np.average(data) - 0.2*np.average(data)
self.ImaxDisplayed = np.int(2*np.average(data))
self.IminDisplayed = np.int(np.average(data) - 0.2*np.average(data))

self.slider = QSlider(QtCore.Qt.Horizontal, self)
self.slider.setRange(0, np.max(data))
Expand Down

0 comments on commit 7ac5fec

Please sign in to comment.