@@ -94,11 +94,14 @@ class Background(Signal):
9494 The type of background (constant, function or data)
9595 source : str
9696 The source of the background;
97+
9798 - if type is 'constant', this should be the name of a background parameter.
9899 - if type is 'data', this should be the name of a dataset defined in `Project.data`.
99100 - if type is 'function', this should be the name of a custom function defined in `Project.custom_files`.
100- value_1, value_2, ..., value_5 : str
101+
102+ value_1, value_2, value_3, value_4, value_5 : str
101103 Values required by the background.
104+
102105 - if type is 'constant', all values will be ignored.
103106 - if type is 'data', value_1 may be the parameter name for an optional offset. Other values are ignored.
104107 - if type is 'function', these values may be the names of up to 5 parameters which are passed to the function.
@@ -318,6 +321,8 @@ def set_matlab_function_name(self):
318321class Data (RATModel , arbitrary_types_allowed = True ):
319322 """A dataset required for a contrast.
320323
324+ Parameters
325+ ----------
321326 name : str
322327 The name of this dataset.
323328 data : np.ndarray[np.float64]
@@ -584,12 +589,15 @@ class Resolution(Signal):
584589 The type of resolution: 'constant', 'data', or (NOT YET IMPLEMENTED) 'function'.
585590 source : str
586591 The source data for the resolution;
592+
587593 - if type is 'constant', this should be the name of a background parameter.
588594 - if type is 'data', this should be empty (resolution data is in the contrast data).
589595 - if type is 'function' (NOT YET IMPLEMENTED),
590596 this should be the name of a custom function defined in `Project.custom_files`.
591- value_1, value_2, ..., value_5 : str
597+
598+ value_1, value_2, value_3, value_4, value_5 : str
592599 Values required by the background.
600+
593601 - if type is 'constant' or 'data', all values will be ignored.
594602 - if type is 'function' (NOT YET IMPLEMENTED),
595603 these values may be the names of up to 5 parameters which are passed to the function.
0 commit comments