|
132 | 132 | print(fg.group_results[0:2]) |
133 | 133 |
|
134 | 134 | ################################################################################################### |
135 | | -# get_all_data |
136 | | -# ------------ |
| 135 | +# get_params |
| 136 | +# ---------- |
137 | 137 | # |
138 | 138 | # To collect data across all model fits, and to select specific data results from this data |
139 | | -# you can use the :func:`get_all_data` method. This method lets you extract specific results |
| 139 | +# you can use the :func:`get_params` method. This method lets you extract specific results |
140 | 140 | # by specifying a field, as a string, and (optionally) a specific column of that data, also |
141 | 141 | # as a string (or, optionally, as an integer index). |
142 | 142 | # |
143 | 143 |
|
144 | 144 | ################################################################################################### |
145 | 145 |
|
146 | 146 | # Extract aperiodic data |
147 | | -aps = fg.get_all_data('aperiodic_params') |
148 | | -exps = fg.get_all_data('aperiodic_params', 'exponent') |
| 147 | +aps = fg.get_params('aperiodic_params') |
| 148 | +exps = fg.get_params('aperiodic_params', 'exponent') |
149 | 149 |
|
150 | 150 | # Extract peak data |
151 | | -peaks = fg.get_all_data('peak_params') |
152 | | -cfs = fg.get_all_data('peak_params', 'CF') |
| 151 | +peaks = fg.get_params('peak_params') |
| 152 | +cfs = fg.get_params('peak_params', 'CF') |
153 | 153 |
|
154 | 154 | # Extract metadata about the model fit |
155 | | -errors = fg.get_all_data('error') |
156 | | -r2s = fg.get_all_data('r_squared') |
| 155 | +errors = fg.get_params('error') |
| 156 | +r2s = fg.get_params('r_squared') |
157 | 157 |
|
158 | 158 | ################################################################################################### |
159 | 159 |
|
160 | | -# The full list of data you can specify is available in the documentation of :func:`get_all_data` |
161 | | -print(fg.get_all_data.__doc__) |
| 160 | +# The full list of data you can specify is available in the documentation of :func:`get_params` |
| 161 | +print(fg.get_params.__doc__) |
162 | 162 |
|
163 | 163 | ################################################################################################### |
164 | 164 | # |
|
0 commit comments