Check num_chan_per_chip to avoid ZeroDivisionError
#1830
+4
−0
num_chan_per_chip to avoid ZeroDivisionError
#1830