answered Feb 13 '14
Isn't it easier to use the function: pssarrays.sensitivity_flow_to_mw
pssarrays.sensitivity_flow_to_mw