modifying detector functions to work around last value-0 issue
modifying detector functions to work around last value-0 issue

DiCarloLab-Delft/PycQED_py3,DiCarloLab-Delft/PycQED_py3,DiCarloLab-Delft/PycQED_py3