Skip to content

Commit

Permalink
use default when SIZE_TERM_SELECTOR is explicitly None
Browse files Browse the repository at this point in the history
  • Loading branch information
jpn-- committed Dec 5, 2023
1 parent b20517c commit 0330fbe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion activitysim/estimation/larch/location_choice.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

import os
from pathlib import Path
from typing import Collection
Expand Down Expand Up @@ -97,7 +99,9 @@ def _read_csv(filename, **kwargs):
if SEGMENTS is not None:
SEGMENT_IDS = {i: i for i in SEGMENTS}

SIZE_TERM_SELECTOR = settings.get("SIZE_TERM_SELECTOR", model_selector)
SIZE_TERM_SELECTOR = (
settings.get("SIZE_TERM_SELECTOR", model_selector) or model_selector
)

# filter size spec for this location choice only
size_spec = (
Expand Down

0 comments on commit 0330fbe

Please sign in to comment.