Debugging sweep_rate_and_trap_study