Skip to content

Commit

Permalink
fix presence report printing
Browse files Browse the repository at this point in the history
  • Loading branch information
TomDonoghue committed Feb 4, 2025
1 parent cbbec68 commit 2ea3f7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion specparam/core/strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ def gen_time_results_str(time_model, concise=False):
np.nanmean(time_model.time_results[pe_labels['cf'][ind]]),
np.nanmean(time_model.time_results[pe_labels['pw'][ind]]),
np.nanmean(time_model.time_results[pe_labels['bw'][ind]]),
compute_presence(time_model.time_results[pe_labels['cf'][ind]]))
compute_presence(time_model.time_results[pe_labels['cf'][ind]], output='percent'))
for ind, label in enumerate(band_labels)],
'',

Expand Down
2 changes: 1 addition & 1 deletion specparam/utils/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def compute_presence(data, average=False, output='ratio'):
data : 1d or 2d array
Data array to check presence of.
average : bool, optional, default: False
Whether to average across . Only used for 2d array inputs.
Whether to average across elements. Only used for 2d array inputs.
If False, for 2d array, the output is an array matching the length of the 0th dimension of the input.
If True, for 2d arrays, the output is a single value averaged across the whole array.
output : {'ratio', 'percent'}
Expand Down

0 comments on commit 2ea3f7c

Please sign in to comment.