Closedown

This commit is contained in:
gac-x03da
2021-09-21 11:24:55 +02:00
parent 030294a81e
commit 56f47b02dc
2 changed files with 5 additions and 4 deletions

View File

@@ -116,7 +116,8 @@ public class Scienta extends ch.psi.pshell.epics.Scienta {
List<Double> channelRange = getChannelRange();
Double cb = channelRange.get(0);
Double ce = channelRange.get(1);
scale = (ce - cb) / Math.max(getNumChannels().getValue()- 1, 1);
//scale = (ce - cb) / Math.max(getNumChannels().getValue()- 1, 1);
scale = (ce - cb) / Math.max(take().length - 1, 1);
offset = cb;
} catch (Exception ex) {
}