The code here attempts to change the values of the DCSource on the fly. The amplitude is 0 for the first 100 ms, and thereafter changed for t > 100 ms. But as the start and stop times are specified less than 100 ms, there should be no effect on the membrane potential. As seen below the output in Brian shows an erroneous value at the transition.
Brian output (incorrect):

NEURON output (correct):

The code here attempts to change the values of the DCSource on the fly. The amplitude is 0 for the first 100 ms, and thereafter changed for t > 100 ms. But as the start and stop times are specified less than 100 ms, there should be no effect on the membrane potential. As seen below the output in Brian shows an erroneous value at the transition.
Brian output (incorrect):


NEURON output (correct):