Skip to content

Commit

Permalink
Update src/tlo/analysis/utils.py
Browse files Browse the repository at this point in the history
Co-authored-by: Emmanuel Mnjowe <32415622+mnjowe@users.noreply.github.com>
  • Loading branch information
tbhallett and mnjowe authored Dec 9, 2024
1 parent 97c9931 commit 6c234ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tlo/analysis/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ def summarise(
summary = summary.sort_index(axis=1).reindex(columns=['lower', 'central', 'upper'], level=1)

if only_central and (not collapse_columns):
# Remove other metrics and simplify if 'only_mean' across runs for each draw is required:
# Remove other metrics and simplify if 'only_central' across runs for each draw is required:
om: pd.DataFrame = summary.loc[:, (slice(None), "central")]
om.columns = [c[0] for c in om.columns.to_flat_index()]
om.columns.name = 'draw'
Expand Down

0 comments on commit 6c234ed

Please sign in to comment.