Skip to content

BYOC_ID: 46026 - Refactor hhg#1321

Open
lizihao-anu wants to merge 18 commits into
developmentfrom
refactor-hhg-sparra
Open

BYOC_ID: 46026 - Refactor hhg#1321
lizihao-anu wants to merge 18 commits into
developmentfrom
refactor-hhg-sparra

Conversation

@lizihao-anu

Copy link
Copy Markdown
Collaborator

Combined two tickets together

@lizihao-anu lizihao-anu requested a review from Jennit07 May 4, 2026 15:09
Comment thread R/get_sparra_hhg_paths.R Outdated
Comment on lines +46 to +62
get_sparra_path <- function(year, BYOC_MODE, ...) {
if (!check_year_valid(year, "sparra")) {
return(get_dummy_boxi_extract_path())
}

sparra_file_path <- get_file_path(
directory = fs::path(get_slf_dir(), "SPARRA"),
file_name = stringr::str_glue("anon-SPARRA-20{year}.parquet"),
...
)
if (isTRUE(BYOC_MODE)) {
hhg_file_path <- file.path(
denodo_output_path(),
stringr::str_glue("anon-SPARRA-20{year}.parquet")
)
} else {
sparra_file_path <- get_file_path(
directory = fs::path(get_slf_dir(), "SPARRA"),
file_name = stringr::str_glue("anon-SPARRA-20{year}.parquet"),
...
)
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please see draft PR for agreed refactoring format: #1336

@Jennit07

Jennit07 commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

Update: JT to split out HHG and SPARRA. WIP on branches:

@Jennit07

Jennit07 commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

Summary of changes:

TODO:

  • Test data with code (Data not available yet)
  • Check SDL table name
  • Check data filtering

This PR is ready for checking/PHS testing @lizihao-anu

@lizihao-anu lizihao-anu changed the title BYOC_ID: 46016 and 46026 - Refactor hhg sparra BYOC_ID: 46026 - Refactor hhg Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BYOC_ID: 46026 - Refactor HHG BYOC_ID: 46016 - Refactor SPARRA

2 participants