diff --git a/activitysim/estimation/larch/location_choice.py b/activitysim/estimation/larch/location_choice.py index 74a426e71..fd61aea3d 100644 --- a/activitysim/estimation/larch/location_choice.py +++ b/activitysim/estimation/larch/location_choice.py @@ -1,3 +1,5 @@ +from __future__ import annotations + import os from pathlib import Path from typing import Collection @@ -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 = (