-
Notifications
You must be signed in to change notification settings - Fork 4
Closed
Description
from #98:
Backgrounds:
dataandfunctiontype backgrounds are now supported. The following changes have been made:
- The
sourcefield has been added to thebackgroundsandresolutionsmodels. This fields contains the background parameter (for constant backgrounds), data entry (for data backgrounds), or custom file entry (for function backgrounds). Thevaluefields (i.e.,value_1tovalue_5) are not required for constant backgrounds,value_1contains an optionalbackground_parameterused as a data offset, or contain up to five function arguments (all defined asbackground_parameters).- For resolutions, the
functiontype is still not supported,constantworks in the same way as for backgrounds, but fordata, neither thesourcenorvaluefields are required.- When the background/resolution type is changed, the source and value fields should be cleared.
- In the examples and jupyter notebooks,
value_1needs to be changed tosourceforconstanttype backgrounds and resolutions.- Use a python version of the data and function background examples to check everything works (probably worth adding them to the examples too).
- The
check_indicesroutine needs to be modified to reflect the change ofcontrastBackgroundParamsto be a nested list, with a variable number of inputs, and to consider a custom file entry in the case of function backgrounds.- A routine mirroring
insertDataBackgroundIntoContrastDatais required, to populate the additional columns in the data files for data backgrounds.- The output result has had
backgroundParamsremoved from thecontrastParamssub struct, withbackgroundsadded to the mainresultstruct.- ALL data files in the input
problemStructhave been extended to EXACTLY six columns. Any empty columns are filled with zero values.- The
problemStructinputcontrastBackgroundParamshas been modified to be a nested list. The nested lists may contain between one and five indices. These are the indices of the source field (from the appropriate data struct), and from the values fields: nothing else (for constant backgrounds), a potential offset (value_1if non-empty, for data backgrounds), or up to five function arguments (for function backgrounds).- The field
contrastBackgroundTypeshas been added toproblemStruct
Metadata
Metadata
Assignees
Labels
No labels