fix: 标煤耗计算修改2
This commit is contained in:
parent
5b4742f181
commit
489d4bb6e5
|
@ -685,7 +685,7 @@ def cal_enstat_pcoal_change(enstat: EnStat, new_pcoal_heat):
|
|||
enstat.pcoal_coal_consume = 0
|
||||
# 算单位产品标煤耗
|
||||
try:
|
||||
enstat.coal_consume_unit = enstat.pcoal_coal_consume / enstat.total_production
|
||||
enstat.coal_consume_unit = enstat.pcoal_coal_consume * 100 / enstat.total_production
|
||||
except ZeroDivisionError:
|
||||
enstat.coal_consume_unit = 0
|
||||
|
||||
|
|
Loading…
Reference in New Issue