Hmm, good news and bad news...
The script is not correctly set up, for many reasons.
First, although there is a loop over the voltages, each voltage uses the same checkpoint file, so each voltage overwrites the result of the previous one. To fix this, the line
checkpoint_filename = 'C:/Users/617/Desktop/lih2li1.nc'
needs to be replaced by something like
checkpoint_filename = 'C:/Users/617/Desktop/lih2li1_%g.nc' % voltage
This will make one checkpoint file for each bias.
So, unfortunately you have wasted some time computing the scf loop for each bias.
At the same time, the computation of the current is not part of the loop. Therefore, the current has only be computed for the last bias point, and thus you
didn't waste any time on this part (that was the good news...).
By the way, I don't imagine you will be able to converge the calculation for as high bias as 5 V. You should probably limit the range, in the first run, from 0 to 1.5 V or so.
To get the current calculation into the loop, you should simply indent those lines one stop (4 spaces), and then also make sure each current is stored in the VNL file under a unique label. Thus, again, something like
if processIsMaster(): file.addToSample(current, 'twoprobe_configuration', 'Current at %g V bias' % voltage)
Oh, and do pipe the output of the calculation to a log file, so you have the printed current values. Since these will be intermixed with all the output from the SCF loop, it might be a bit hard to locate them later. Therefore, I would change the line
if processIsMaster(): nlPrint(current)
to something like
if processIsMaster(): print "Voltage: %g V, Current: %g A" % (voltage.inUnitsOf(Volt), current.inUnitsOf(Ampere))
Then, later, you can "grep" for "Voltage" to get the values from the log file.
Actually, you may want to consider splitting the SCF part and the current calculation. That is, just run the loop over voltages but skip the current for now. Then, later, just restore all the checkpoint files and compute the current separately.
If you're ok making these changes by yourself, it will be a good exercise :-) But I suggest you post the script before you run it, and then we can verify that you will not be wasting your time again.