Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions configs/resident/settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,15 @@ output_tables:
TAZ: land_use_taz.TAZ
- disaggregate_accessibility

distributed_time_factor_work_mean: 1.0
distributed_time_factor_work_stddev: 0.7
distributed_time_factor_nonwork_mean: 1.0
distributed_time_factor_nonwork_stddev: 0.6
distributed_time_factor_min: 0.1
distributed_time_factor_max: 10

check_model_settings: True

models:
### mp_init_proto_pop (single process)
- initialize_proto_population # Separate step so proto tables can be split for multiprocess.
Expand Down
4 changes: 3 additions & 1 deletion configs/resident/settings_mp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ memory_profile: False
# (Shadow pricing requires fail_fast setting in multiprocessing mode)
fail_fast: True

resume_after:
resume_after:

check_model_settings: True

models:
### mp_init_proto_pop (single process)
Expand Down
1 change: 1 addition & 0 deletions extensions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
from . import transponder_ownership
from . import airport_returns
from . import adjust_auto_operating_cost
from . import settings_checker
60 changes: 60 additions & 0 deletions extensions/settings_checker.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
from .av_ownership import AVOwnershipSettings
from .external_identification import ExternalIdentificationSettings
from .transponder_ownership import TransponderOwnershipSettings

from activitysim.core.configuration.base import PydanticReadable
from activitysim.core.configuration.logit import (
TourLocationComponentSettings,
TourModeComponentSettings,
)
from activitysim.core.workflow import State



### SETTINGS FORMAT ###
### {"<model_name>": {"settings_cls": <PydanticSettings Object>, "settings_file": "<name of YAML file"}}
### If a specific Pydantic data model is not defined, map to PydanticReadable to expose .read_settings_file() method
### If required, an alternate set of spec/coefficients to resolve together can be defined for a model using
### "spec_coefficient_keys": [{"spec": "OUTBOUND_SPEC", "coefs": "OUTBOUND_COEFFICIENTS"}, ...]
EXTENSION_CHECKER_SETTINGS = {
"airport_returns": {
"settings_cls": PydanticReadable,
"settings_file": "airport_returns.yaml"
},
"av_ownership": {
"settings_cls": AVOwnershipSettings,
"settings_file": "av_ownership.yaml"
},
"external_student_identification": {
"settings_cls": ExternalIdentificationSettings,
"settings_file": "external_student_identification.yaml"
},
"external_non_mandatory_tour_identification": {
"settings_cls": ExternalIdentificationSettings,
"settings_file": "external_non_mandatory_identification.yaml"
},
"external_joint_tour_identification": {
"settings_cls": ExternalIdentificationSettings,
"settings_file": "external_joint_tour_identification.yaml"
},
"external_school_location": {
"settings_cls": TourLocationComponentSettings,
"settings_file": "external_school_location.yaml"
},
"external_workplace_location": {
"settings_cls": TourLocationComponentSettings,
"settings_file": "external_workplace_location.yaml"
},
"external_non_mandatory_destination": {
"settings_cls": TourLocationComponentSettings,
"settings_file": "external_non_mandatory_destination.yaml"
},
"external_joint_tour_destination": {
"settings_cls": TourLocationComponentSettings,
"settings_file": "external_joint_tour_destination.yaml"
},
"transponder_ownership": {
"settings_cls": TransponderOwnershipSettings,
"settings_file": "transponder_ownership.yaml"
},
}
Loading