Skip to content

Commit

Permalink
Merge pull request #769 from pepfar-datim/Release-7.2.1
Browse files Browse the repository at this point in the history
Release 7.2.1
  • Loading branch information
JordanBalesBAO authored Dec 19, 2023
2 parents 5bc140e + 90d4026 commit 71bc328
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 7 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ Type: Package
Package: datapackr
Title: A Package that Packs and Unpacks all Data Packs and Target Setting
Tools
Version: 7.2.0
Date: 2023-12-06
Version: 7.2.1
Date: 2023-12-18
Authors@R: c(
person("Scott", "Jackson", , "sjackson@baosystems.com", role = c("aut", "cre")),
person("Jason", "Pickering", , "jason.p.pickering@gmail.com", role = c("aut", "rev")),
Expand Down
14 changes: 14 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# datapackr 7.2.1

## New features
* Updates to COP24 Template


## Bug fixes
* Completed updates related to OPU Data Pack's conversion PSNUxIM tools
* Updated country list for COP24 Target Setting Tool Generation script
* Updated regular expression related to Year2 KP data

## Minor improvements and fixes
*

# datapackr 7.2.0

## New features
Expand Down
2 changes: 1 addition & 1 deletion R/datapackVsDatim.R
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ compareData_DatapackVsDatim <-

if (!is.null(datim_data)) {
datim_data %<>% dplyr::rename(datim_value = value)
if (d$info$tool == "OPU Data Pack") {
if (d$info$tool %in% c("OPU Data Pack", "PSNUxIM")) {
### data in OPU datapacks must have a valid Mech or dedupe mech
### so we do not compare dreams or any other data without mech
datim_data <- dplyr::filter(datim_data,
Expand Down
2 changes: 1 addition & 1 deletion R/packTool.R
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ packTool <- function(model_data = NULL,
model_data = model_data,
spectrum_data = spectrum_data,
d2_session = d2_session)
} else if (d$info$tool == "OPU Data Pack") {
} else if (d$info$tool %in% c("OPU Data Pack", "PSNUxIM")) {

d <- packOPUDataPack(d,
undistributed_mer_data = undistributed_mer_data,
Expand Down
2 changes: 1 addition & 1 deletion R/prepareMemoData.R
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ prepareExistingDataAnalytics <- function(d, d2_session =
datastreams = "mer_targets",
d2_session = d2_session)

if (d$info$tool == "OPU Data Pack") {
if (d$info$tool %in% c("OPU Data Pack", "PSNUxIM")) {
### OPU DataPacks only include data with a funding mechanism
### drop data with default attribute option combo
df <- dplyr::filter(df,
Expand Down
2 changes: 1 addition & 1 deletion R/unPackPSNUxIM_API.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ checkHasPSNUxIM <- function(d) {
" all changes to other tabs of your Data Pack are complete. Once all other updates",
" are complete, you may return here to update your PSNUxIM tab at any time.",
"\n")
} else if (d$info$tool == "OPU Data Pack") {
} else if (d$info$tool %in% c("OPU Data Pack", "PSNUxIM")) {
warning_msg <- paste0(
"WARNING! Your OPU Data Pack's PSNUxIM tab appears to be empty. Please",
" investigate and resubmit."
Expand Down
3 changes: 2 additions & 1 deletion data-raw/COP24/COP24_Data_Pack_generation_script.R
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ if (NROW(compare_diffs) > 0) {
}

# # For Production run ####
# pick <- datapackr::cop_datapack_countries
pick <- datapackr::cop24_datapack_countries %>%
dplyr::filter(!datapack_name %in% c("Asia Region", "Western Hemisphere Region", "Turkmenistan"))

# Execution ####
for (i in seq_along(pick$datapack_name)) {
Expand Down

0 comments on commit 71bc328

Please sign in to comment.