-
Notifications
You must be signed in to change notification settings - Fork 119
Add global option to skip households on simulation failure #1023
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
a0ec6a8
8623516
397f250
fa08f11
f26cc80
76fd833
96e73ec
cf98cd2
baa47fa
6cffd9b
0e34b7d
5da9715
50034fd
a6ed5cb
91227b6
c986e5b
e6a8c1b
ee52916
5316890
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -776,11 +776,27 @@ def _check_store_skims_in_shm(self): | |
|
|
||
| check_model_settings: bool = True | ||
| """ | ||
| run checks to validate that YAML settings files are loadable and spec and coefficent csv can be resolved. | ||
| run checks to validate that YAML settings files are loadable and spec and coefficient csv can be resolved. | ||
|
|
||
| should catch many common errors early, including missing required configurations or specified coefficient labels without defined values. | ||
i-am-sijia marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| """ | ||
|
|
||
| skip_failed_choices: bool = True | ||
| """ | ||
| Skip households that cause errors during processing instead of failing the model run. | ||
|
|
||
| .. versionadded:: 1.6 | ||
| """ | ||
|
|
||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Need additional setting[s] to set thresholds for how many skips are OK and when it's too many and should be an error.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added |
||
| fraction_of_failed_choices_allowed: float = 0.1 | ||
| """ | ||
| Threshold for the fraction of households that can be skipped before failing the model run, | ||
| used in conjunction with `skip_failed_choices`. | ||
| We want to skip problems when they are rare, but fail the run if they are common. | ||
|
|
||
| .. versionadded:: 1.6 | ||
| """ | ||
|
|
||
| other_settings: dict[str, Any] = None | ||
|
|
||
| def _get_attr(self, attr): | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.