Skip to content
Snippets Groups Projects
Commit 7cbbc929 authored by Chenxi Fu's avatar Chenxi Fu
Browse files

修复电荷为0时的除0错误

parent c33337f4
No related branches found
No related tags found
1 merge request!26Amplifier定义与CalCurrent解耦合,增加Amplifier测试和ABCStar设计
......@@ -104,7 +104,7 @@ class Amplifier:
Qfrac = 1.0/(1.0+self.CDet*1e-12/Ci)
if output_Q_max == 0.0:
scale = 0.0
return 0.0
if mode == 0:
scale = trans_imp * 1e15 * input_Q_tot * Qfrac / output_Q_max
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment