Actually, the script is reading the aperture "correctly", i.e. the ND filter is felt:
Extracted from soulf2's log:
Measured: 1224 575, Calculated: 1068
Measured: 835 575, Calculated: 679
Measured: 823 292, Calculated: 950
Measured: 813 292, Calculated: 940
Measured: 809 292, Calculated: 936
you clearly see the "aperture" jump from 575 to 292, and the difference is 283, quite close to 96*3...
so, it could work...
probably the problem is that line 83
av=get_av96()
is actually called AFTER line 214:
local calculated_tv=bv-av+default_sv
So the exposure is calculated based on the "aperture" of the PREVIOUS shot....
So if might be a SINGLE faulty exposure, but due to the "smoothing" the flash is made longer.....
soulf2, could you post the complete log somewhere?