filter.GetBonusTotal[]
- Function
- number filter.GetBonusTotal()
- Description
- Total bonus score of the filters
- V1 Function Name
- New to V2
filter.GetBonusTotal returns the net bonus or penalty of all filters.
For example, the code:
filt = filter.GetNames () print ( #filt .. " conditions or filters" ) tbon = 0 for ii = 1, #filt do local lbon = filter.GetBonus ( filt [ ii ] ) tbon = tbon + lbon print ( "#" .. ii .. ", name = \"" .. filt [ ii ] .. "\", bonus = " .. lbon ) end print ( "calculated total bonus = " .. tbon ) print ( "filter.GetBonusTotal = " .. filter.GetBonusTotal () )
might produce the output:
3 conditions or filters #1, name = "Interaction Energy", bonus = -0 #2, name = "SS Design", bonus = 150 #3, name = "Residue Count", bonus = -800 calculated total bonus = -650 filter.GetBonusTotal = -650