Skip to content

Commit

Permalink
rollback to have AutoOwnership settings
Browse files Browse the repository at this point in the history
  • Loading branch information
jpn-- committed Nov 13, 2023
1 parent 4d7aac5 commit eb05ab7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion activitysim/abm/models/auto_ownership.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,20 @@
logger = logging.getLogger(__name__)


class AutoOwnershipSettings(LogitComponentSettings):
"""
Settings for the `auto_ownership` component.
"""

# This model is relatively simple and has no unique settings


@workflow.step
def auto_ownership_simulate(
state: workflow.State,
households: pd.DataFrame,
households_merged: pd.DataFrame,
model_settings: LogitComponentSettings | None = None,
model_settings: AutoOwnershipSettings | None = None,
model_settings_file_name: str = "auto_ownership.yaml",
trace_label: str = "auto_ownership_simulate",
trace_hh_id: bool = False,
Expand Down
2 changes: 1 addition & 1 deletion docs/dev-guide/components/auto_ownership.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ This model is typically structured as multinomial logit model.
## Configuration

```{eval-rst}
.. autopydantic_model:: LogitComponentSettings
.. autopydantic_model:: AutoOwnershipSettings
:inherited-members: BaseModel, PydanticReadable
:show-inheritance:
```
Expand Down

0 comments on commit eb05ab7

Please sign in to comment.