Edits to VPH Output package for Alzheimer's simulation#10
Open
NathanielBlairStahn wants to merge 20 commits intomainfrom
Open
Edits to VPH Output package for Alzheimer's simulation#10NathanielBlairStahn wants to merge 20 commits intomainfrom
NathanielBlairStahn wants to merge 20 commits intomainfrom
Conversation
…xtract_transition_states
zmbc
reviewed
Nov 19, 2025
Comment on lines
+110
to
+113
| # FIXME: Define the cause column somewhere else that makes | ||
| # sense, and deal with different column names in older | ||
| # Vivarium models | ||
| cause_col = 'entity' # Used to be 'cause' |
There was a problem hiding this comment.
It seems like at the least we could make this an argument to the function?
Comment on lines
639
to
640
| This is a wrapper function for DataFrameGroupBy.describe(), | ||
| with `df` grouped by everything except draw and value. |
There was a problem hiding this comment.
Seems like this is no longer true. I don't understand the reason behind the changes here.
| __uri__ = "https://github.com/ihmeuw/vivarium_helpers" | ||
|
|
||
| __version__ = "0.4.2" | ||
| __version__ = "0.5.0-dev" |
There was a problem hiding this comment.
We should get this set up with https://pypi.org/project/setuptools-scm/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds some functionality to handle outputs from the Alzheimer's simulation. Much of the additions are for better handling pandas Categoricals, which was necessary for loading some large DataFrames into memory. Other changes are updating column names and adding parameters to functions to make them more flexible.
utils.pyfor dealing with Categoricals and printing memory usagedifferencefunction to preserve Categoricals and save memoryextract_transition_statesandget_burdenfunctionsprefilter_queryandmeasureparameters to theratiofunctionlocation_colparameter to theVPHOperatorconstructor, and addlocation_colandopsparameters to theVPHResultsconstructordescribefunction to asummarize_drawsfunction which defaults to computing "mean, lower, upper"