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

Remove legacy ccao::vars_dict attributes from README.Rmd code #4

Merged

Conversation

jeancochrane
Copy link
Contributor

This PR updates README.Rmd along similar lines as the changes in ccao-data/model-res-avm#18 to remove references to legacy ccao::vars_dict attributes that were removed in ccao-data/ccao#6. Instead of getting condo-specific attributes from the vars dict, we now pull the latest residential parameters from the model-res-avm repo and diff them against the condo params to generate the column marking condo-specific parameters.

README.md Show resolved Hide resolved
README.Rmd Show resolved Hide resolved
README.Rmd Show resolved Hide resolved
var_model_type == "condo" |
`Feature Name` %in%
c("Condominium Building Year Built", "Condominium % Ownership"),
var_name_model != "loc_tax_municipality_name" & (
Copy link
Contributor Author

Choose a reason for hiding this comment

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

A bit hacky here, but without this line the code will decide that Municipality Name is unique to the condo model simply because the condo municipality feature is called loc_tax_municipality_name while the equivalent residential model feature is called loc_cook_municipality_name. Does this seem reasonable to you?

Copy link
Member

Choose a reason for hiding this comment

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

This is actually a mistake, as both should be using loc_tax_municipality_name if I recall correctly. We should update the res model feature name to reflect this change. @wrridgeway am I correct here?

Copy link
Member

Choose a reason for hiding this comment

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

I can't think of a reason they should be different. I think you're correct.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Cool, I opened an issue for the res model fix here! ccao-data/model-res-avm#20

@jeancochrane jeancochrane marked this pull request as ready for review October 12, 2023 16:43
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.

@jeancochrane Looks good! See my tiny nitpicks then this is good to go.

README.Rmd Outdated
Comment on lines 75 to 78
res_params_text <- GET(
"https://raw.githubusercontent.com/ccao-data/model-res-avm/master/params.yaml"
) %>%
content(as = "text")
Copy link
Member

Choose a reason for hiding this comment

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

nitpick: No need to do a GET or load httr, read_yaml() can ingest directly from a URL.

Copy link
Contributor Author

@jeancochrane jeancochrane Oct 13, 2023

Choose a reason for hiding this comment

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

Ooh that's nice! Simplified in 7572d02 👍🏻

README.Rmd Show resolved Hide resolved
var_model_type == "condo" |
`Feature Name` %in%
c("Condominium Building Year Built", "Condominium % Ownership"),
var_name_model != "loc_tax_municipality_name" & (
Copy link
Member

Choose a reason for hiding this comment

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

This is actually a mistake, as both should be using loc_tax_municipality_name if I recall correctly. We should update the res model feature name to reflect this change. @wrridgeway am I correct here?

@jeancochrane jeancochrane force-pushed the jeancochrane/use-dbt-dag-for-readme-feature-table branch from 6eec8f6 to 7572d02 Compare October 13, 2023 16:26
@jeancochrane jeancochrane merged commit fc33def into master Oct 13, 2023
1 check passed
@jeancochrane jeancochrane deleted the jeancochrane/use-dbt-dag-for-readme-feature-table branch October 13, 2023 16:29
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