Skip to content

Conversation

@JoeJimFlood
Copy link

Applying a couple of the code changes from Pull Request #806 in the main repo to BayDAG_estimation to help with MemoryErrors occuring in the vehicle type choice model.

@JoeJimFlood JoeJimFlood requested a review from dhensle March 28, 2024 16:54
)

# alts preprocessor
alts_preprocessor_settings = model_settings.alts_preprocessor
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be model_settings.get("alts_preprocessor", None)

alts_preprocessor_settings = model_settings.alts_preprocessor
if alts_preprocessor_settings:
expressions.assign_columns(
state,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No state variable in this code base. This argument should be removed.

)

# filter columns of alts and choosers
if len(model_settings.get("COLS_TO_INCLUDE_IN_CHOOSER_TABLE")) > 0:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to set default for get function to be array. i.e. model_settings.get("COLS_TO_INCLUDE_IN_CHOOSER_TABLE", []). Here and below.

@JoeJimFlood JoeJimFlood merged commit 2c11873 into BayDAG_estimation Mar 29, 2024
@JoeJimFlood JoeJimFlood deleted the BayDAG_estimation_vehtypefix branch March 29, 2024 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants