Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maintain feature parity with model-res-avm #19

Merged
merged 54 commits into from
Jan 30, 2024

Conversation

wrridgeway
Copy link
Member

@wrridgeway wrridgeway commented Dec 19, 2023

See #18.

This PR is rather extensive. It primarily refactors the pipeline and surrounding infrastructure in order to bring it in line with the res model pipeline.

It's not up-to-date with the last week or so of work in the res pipeline, but this PR is getting pretty unwieldy.

@wrridgeway wrridgeway linked an issue Dec 19, 2023 that may be closed by this pull request
@wrridgeway wrridgeway changed the title Update renv Maintain feature parity with model-res-avm Dec 19, 2023
test_data_card <- read_parquet(paths$output$test_card$local)
# recent 10% of sales and already includes predictions.
test_data_card <- read_parquet(paths$output$test_card$local) %>%
filter(!is.na(loc_census_puma_geoid))
Copy link
Member Author

Choose a reason for hiding this comment

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

This should not be here, but I cannot get this stage to run without it.

@wrridgeway wrridgeway marked this pull request as ready for review January 25, 2024 17:40
Copy link
Member

Choose a reason for hiding this comment

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

I don't think we actually need to include these additional workflow scripts in the condo model, since the res model workflow can work on both sets of output.

Copy link
Member

@dfsnow dfsnow left a comment

Choose a reason for hiding this comment

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

@wrridgeway I'm sure there are lots of little kinks to work out, but overall this looks good. Only changes are to boot the files/chunks that we don't need to duplicate across the repos. Then this should be good to go.

.github/workflows/build-and-run-model.yaml Outdated Show resolved Hide resolved
Copy link
Member

Choose a reason for hiding this comment

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

Likewise for this workflow, we can keep it res model only.

Comment on lines +9 to +12
dict <- read.csv(
here::here("misc", "file_dict.csv"),
col_types = readr::cols()
colClasses = c("character", "character", "numeric", rep("character", 9)),
na.strings = ""
Copy link
Member

Choose a reason for hiding this comment

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

Why the switch here? readr should be in the dependencies IIRC

Copy link
Member Author

Choose a reason for hiding this comment

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

This is a syntax copied from the res repo

R/helpers.R Outdated Show resolved Hide resolved
pipeline/08-api.R Outdated Show resolved Hide resolved
@wrridgeway wrridgeway merged commit 54870fa into master Jan 30, 2024
4 checks passed
@wrridgeway wrridgeway deleted the maintain-feature-parity-with-model-res-avm branch January 30, 2024 16:02
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.

Maintain feature parity with model-res-avm
2 participants