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

Config loading utils #69

Merged
merged 4 commits into from
Aug 19, 2024
Merged

Config loading utils #69

merged 4 commits into from
Aug 19, 2024

Conversation

cjyetman
Copy link
Member

No description provided.

@cjyetman cjyetman marked this pull request as ready for review August 19, 2024 11:39
@cjyetman cjyetman requested a review from jacobvjk as a code owner August 19, 2024 11:39
Copy link
Member

@jacobvjk jacobvjk left a comment

Choose a reason for hiding this comment

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

lgtm
minor nits related to naming convention

params[["project_parameters"]][["region_select"]]
}

get_aggregate_alignment_metric_by_group <- function(params) {
Copy link
Member

Choose a reason for hiding this comment

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

this will have to be renamed once we tackle the more generalized grouping across the modules. but fine for now

config_prepare_sector_split$filename_advanced_company_indicators
)
dir_matched <- get_matched_dir(config)
abcd_dir <- get_abcd_dir(config)
Copy link
Member

Choose a reason for hiding this comment

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

nit: naming convention seems to be inversed. should be dir_abcd

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah, it's a bit mixed throughout the code... maybe I introduced that when I ported some scripts over. I was going for most-specific-first because it feels easier and faster to understand what you're looking at, especially when the names get really long. That might be a English-as-first-language bias though.

Copy link
Member Author

@cjyetman cjyetman Aug 19, 2024

Choose a reason for hiding this comment

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

let's discuss naming conventions on Wednesday and then implement everywhere

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

I'd like to join the naming convention call too!


dir_matched <- config_dir$dir_matched
abcd_dir <- get_abcd_dir(config)
Copy link
Member

Choose a reason for hiding this comment

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

nit: see above

@cjyetman cjyetman merged commit c3ca19d into main Aug 19, 2024
9 checks passed
@cjyetman cjyetman deleted the config-loading-utils branch August 19, 2024 15:41
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