Fix bug: binary secretion parameter SWITCH_CD was not taken into account
Replace assertion with proper error message.