hps-java/src/main/java/org/lcsim/hps/conditions/svt
diff -u -r1.11 -r1.12
--- SvtConditionsLoader.java 11 Oct 2013 01:27:13 -0000 1.11
+++ SvtConditionsLoader.java 11 Oct 2013 01:42:34 -0000 1.12
@@ -57,7 +57,9 @@
// Put conditions data onto the sensor object:
ChannelConstants constants = conditions.getChannelConstants(channel);
int channelNumber = channel.getChannel();
- sensor.setBadChannel(channelNumber);
+ if (constants.isBadChannel()) {
+ sensor.setBadChannel(channelNumber);
+ }
sensor.setGain(channelNumber, constants.getGain().getGain());
sensor.setTimeOffset(channelNumber, constants.getGain().getOffset());
sensor.setNoise(channelNumber, constants.getCalibration().getNoise());