jeff101 Lv 1
We're getting closer to an updated "print protein" recipe, and I noticed an interesting discrepancy.
In 1811, if you hover over segment 1 and hit "tab", it shows the segment score as "-0.0". While it's not clear how -0 differs from 0, that's fine.
If you enter this one-line recipe and run it:
print ( current.GetSegmentEnergyScore ( 1 ) )
the result is non-zero:
-16.759085881012
Segment 2 is similar, showing a zero score in the segment information window, but reporting a score of 50.183449869801 using the recipe.
Just for the sake of completeness, if you run current.GetSegmentEnergySubscore for all subscores, you get zero. This little recipe demonstrates:
SEG = 2
tscore = current.GetSegmentEnergyScore ( SEG )
print ( "total score for segment " .. SEG .. " = " .. tscore )
local Subs = puzzle.GetPuzzleSubscoreNames ()
local tsubs = 0
for ii = 1, #Subs do
local subscore = current.GetSegmentEnergySubscore ( SEG, Subs [ ii ] )
print ( "score part " .. Subs [ ii ] .. ", score = " .. subscore )
tsubs = tsubs + subscore
end
print ( "total of all subscores for segment " .. SEG .. " = " .. tsubs )
The nice part is that when you total up a bunch of -0 scores, you get plain old 0.
It's not clear to me why the segments with all zero subscores still report a score. It may have something to do with keeping the different versions of the score consistent, or it may just be a glitch. We've probably been seeing similar results on other, similar puzzles like the aflatoxin series, but I haven't gone back to check.
Anyway, this is for jeff101 and anyone else who likes to explore the boundaries. The new print protein will have a couple of new columns to highlight issues of this type. Worst case, you'll have all the numbers, and can add them up as you see fit.