NIEHS / beethoven

BEETHOVEN is: Building an Extensible, rEproducible, Test-driven, Harmonized, Open-source, Versioned, ENsemble model for air quality
https://niehs.github.io/beethoven/
Other
5 stars 0 forks source link

`list_feat_calc_tri` #380

Open mitchellmanware opened 14 hours ago

mitchellmanware commented 14 hours ago

@sigmafelix Is there a reason you implemented a nested vector in the variable argument of calculate_tri (via beethoven::inject_calculate(covariate = "tri", ...)? I am getting a new error now that variables = c(1, 13, 12, 14, 3 + c(20, 34, 36, 47, 48, 49)), but I was not receiving such an error when variables = c(1, 13, 12, 14, 20, 34, 36, 47, 48, 49). https://github.com/NIEHS/beethoven/blob/0041367b8eb84ebb42fac9988bb4b3489d264689/inst/targets/targets_calculate_fit.R#L667

mitchellmanware commented 13 hours ago
...
                variables = c(1, 13, 12, 14, 3 + c(20, 34, 36, 47, 48, 49)),
...
✔ skipped target df_feat_calc_tri_params
▶ dispatched branch list_feat_calc_tri_a896efe90a356dfe
▶ dispatched branch list_feat_calc_tri_b1107c07884015aa
▶ dispatched branch list_feat_calc_tri_ae528083b6378c4d
✔ skipped target chr_nasa_token
✔ skipped target arglist_common
▶ recorded workspace list_feat_calc_tri_ae528083b6378c4d
✖ errored branch list_feat_calc_tri_ae528083b6378c4d
Error: Error in `dplyr::group_by()`:
! Must group by variables found in `.data`.
✖ Column `TRI_CHEMICAL_COMPOUND_ID` is not found.

function (path = NULL, year = 2018, variables = c(1, 13, 12, 
    14, 20, 34, 36, 47, 48, 49), extent = NULL, ...) 
NULL
Please refer to the argument list and the error message above to rectify the error.

▶ recorded workspace list_feat_calc_tri_b1107c07884015aa
✖ errored branch list_feat_calc_tri_b1107c07884015aa
Error: Error in `dplyr::group_by()`:
! Must group by variables found in `.data`.
✖ Column `TRI_CHEMICAL_COMPOUND_ID` is not found.

function (path = NULL, year = 2018, variables = c(1, 13, 12, 
    14, 20, 34, 36, 47, 48, 49), extent = NULL, ...) 
NULL
Please refer to the argument list and the error message above to rectify the error.

▶ recorded workspace list_feat_calc_tri_a896efe90a356dfe
✖ errored branch list_feat_calc_tri_a896efe90a356dfe
Error: Error in `dplyr::group_by()`:
! Must group by variables found in `.data`.
✖ Column `TRI_CHEMICAL_COMPOUND_ID` is not found.

function (path = NULL, year = 2018, variables = c(1, 13, 12, 
    14, 20, 34, 36, 47, 48, 49), extent = NULL, ...) 
NULL
Please refer to the argument list and the error message above to rectify the error.

▶ dispatched target dt_feat_calc_tri
✖ errored pipeline [38.944 seconds]
Warning message:
3 targets produced errors. Run targets::tar_meta(fields = error, complete_only = TRUE) for the messages. 
mitchellmanware commented 13 hours ago
...
              variables = c(1, 13, 12, 14, 20, 34, 36, 47, 48, 49),
...
Active library paths:
[1] "/usr/local/lib/R/site-library" "/usr/local/lib/R/library"     
✔ skipped target chr_input_dir
✔ skipped target chr_mod06_links
✔ skipped target chr_daterange
✔ skipped target list_feat_proc_aqs_sites
✔ skipped target num_dates_split
✔ skipped target list_dates
✔ skipped target list_dates_julian
✔ skipped target chr_iter_radii
✔ skipped target chr_dates
✔ skipped target chr_years
✔ skipped target df_feat_calc_tri_params
▶ dispatched branch list_feat_calc_tri_a896efe90a356dfe
▶ dispatched branch list_feat_calc_tri_b1107c07884015aa
▶ dispatched branch list_feat_calc_tri_ae528083b6378c4d
✔ skipped target chr_nasa_token
✔ skipped target arglist_common
● completed branch list_feat_calc_tri_a896efe90a356dfe [28.477 seconds, 126.996 kilobytes]
● completed branch list_feat_calc_tri_b1107c07884015aa [54.334 seconds, 682.431 kilobytes]
● completed branch list_feat_calc_tri_ae528083b6378c4d [1.288 minutes, 1.398 megabytes]
● completed pattern list_feat_calc_tri 
▶ dispatched target dt_feat_calc_tri
● completed target dt_feat_calc_tri [0.072 seconds, 2.192 megabytes]
▶ ended pipeline [1.553 minutes]