You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
datamodifystoragesome_storagesome_listsetvalue[1,2,3,4,5]executestoreresultscorelist_lengthsome_objectiverundatagetstoragesome_storagesome_list1# <-- This 1 is problematic!
Expected outcome
I expect the score list_length some_objective to be 5.
Actual outcome
The list_length some_objective is 0.
Proposed fix
This bug occurs because the data has a default scale of 1. But the list length is only stored in the score if there is NO scale.
I propose being able to use None as a scale. I realize this is not a trivial fix because if storing a score into data, the scale is required. So we need to make None equal to something (probably 1) if it is used there.
The text was updated successfully, but these errors were encountered:
Example
In this example, I want to get the length of a list.
Generated code:
Expected outcome
I expect the score
list_length some_objective
to be 5.Actual outcome
The
list_length some_objective
is 0.Proposed fix
This bug occurs because the data has a default scale of 1. But the list length is only stored in the score if there is NO scale.
I propose being able to use
None
as a scale. I realize this is not a trivial fix because if storing a score into data, the scale is required. So we need to makeNone
equal to something (probably 1) if it is used there.The text was updated successfully, but these errors were encountered: