-
Notifications
You must be signed in to change notification settings - Fork 5
length 12 for PPSTRESN #591
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
base: main
Are you sure you want to change the base?
Conversation
Gero1999
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Shaakon35 I run on P21 and found still the issues
| # Parameter Variables | ||
| PPORRES = as.character(round(as.numeric(PPORRES), 12)), | ||
| PPSTRESN = round(as.numeric(PPSTRES), 12), | ||
| PPSTRESC = as.character(format(PPSTRESN, scientific = FALSE, trim = TRUE)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider not doing this
issues:
- PPSTRESN does not still match PPSTRESC in the conflictive row (
XX01-25103, AUCPEP, Analyte01) - doing this there is a problem with the scientific nomenclature if you do not force it to FALSE...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
R/export_cdisc.R
Outdated
| } else if (var_specs$Type %in% c("Num", "integer", "float") && | ||
| !endsWith(var, "DTM")) { | ||
| df[[var]] <- round(as.numeric(df[[var]]), var_specs$Length) | ||
| df[[var]] <- round(as.numeric(df[[var]]), 12) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as mentioned I think the problem is the round() operation, not the number itself, no need to do it, it can be the reason of the differences PPSTRESN, PPSTRESC
Shaakon35
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
I think that still is not a problem in the XPT submission file, but as this is not priority I will let this PR breathe and think about it |
|
All good !
|
…resc-secondoption
some things has changed, including: all numerics -> length = 12 PPGRPID -> length = 100
…ub.com/pharmaverse/aNCA into 561-bug-ppstresn-ppstresc-secondoption
|
@Gero1999 Ready to review. All good, now PP passed Pinnacle 21 checks, with two NCA_PROFILE selected. |
|
@Gero1999 Waiting for review |
m-kolomanski
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code-wise looks good, just a minor suggestion
| PPORRES = as.numeric( | ||
| substr( | ||
| as.numeric(round(PPORRES, 8)), | ||
| 0, | ||
| 8 + grepl("\\.", as.character(PPORRES)) | ||
| ) | ||
| ), | ||
| PPSTRESN = as.numeric( | ||
| substr( | ||
| as.numeric(round(PPSTRES, 8)), | ||
| 0, | ||
| 8 + grepl("\\.", as.character(PPSTRES)) | ||
| ) | ||
| ), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: This probably should be enclosed in a separate helper function, as the logic is repeated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you are right, this is my bad. I can take care of it during my review @Shaakon35
|
Hey @Shaakon35 still having the issues with PPSTRESN != PPSTRESC unfortunately 😓 |


Issue
Closes #561
How to test
Now, you can try to submit PP in Pinnacle 21 and it should work!
Contributor checklist