feat: better location model diagnostics#8
Merged
asiripanich merged 31 commits intomainfrom Mar 2, 2025
Merged
Conversation
… and use facet_col_wrap=4
…rder, and string follows alphabetical order.
…mo.stop()` (#11) * ci: fix the dashboard script to run with default settings if not run in notebook * chore: add marimo settings * fix: only create a key in the outputs objects if the key's file exists
…tats per zone. - display as a vstack under its plot. - the dashboard's width is now set to full to accommodate the tables.
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.
How to Use This New Feature
The location model diagnostic requires users to modify the MODELS global variable in the dashboard script. This is because each ActivitySim implementation can have different field names for elements such as the distance column in the skims table.
Consequently, new fields —
skims_variable,land_use_control_variable, andorigin_zone_variable— have been added to the location modelskims_variablerefers to the field in the skims table that will be used for generating the distance distributionland_use_control_variablerefers to the field in the land use table that will be used for generating the differences-to-land-use plot. In the case of the school location model, you might use a field representing the total enrollment in that zone.origin_zone_variablerefers to the zone column that will be used to merge with the origin column of the skims table.New plots
Other changes