1
0
mirror of https://github.com/msberends/AMR.git synced 2025-07-21 12:13:20 +02:00

(v2.1.1.9133) (v2.1.1.9132) unit test, final fixes

This commit is contained in:
2025-01-27 22:06:32 +01:00
parent f03933940c
commit 9520977a10
14 changed files with 25 additions and 21 deletions

View File

@ -62,6 +62,8 @@ os.makedirs(r_lib_path, exist_ok=True)
base = importr('base')
utils = importr('utils')
base.options(warn = -1)
# Override R library paths globally for the session
robjects.r(f'.Library <- "{r_lib_path}"') # Replace default library
robjects.r(f'.Library.site <- "{r_lib_path}"') # Replace site-specific library
@ -117,6 +119,8 @@ microorganisms = pandas2ri.rpy2py(robjects.r('AMR::microorganisms[, !sapply(AMR:
antibiotics = pandas2ri.rpy2py(robjects.r('AMR::antibiotics[, !sapply(AMR::antibiotics, is.list)]'))
clinical_breakpoints = pandas2ri.rpy2py(robjects.r('AMR::clinical_breakpoints[, !sapply(AMR::clinical_breakpoints, is.list)]'))
base.options(warn = 0)
print(f"AMR: Done.", flush=True)
EOL

View File

@ -1,6 +1,6 @@
This knowledge base contains all context you must know about the AMR package for R. You are a GPT trained to be an assistant for the AMR package in R. You are an incredible R specialist, especially trained in this package and in the tidyverse.
First and foremost, you are trained on version 2.1.1.9131. Remember this whenever someone asks which AMR package version youre at.
First and foremost, you are trained on version 2.1.1.9133. Remember this whenever someone asks which AMR package version youre at.
Below are the contents of the file, the file, and all the files (documentation) in the package. Every file content is split using 100 hypens.
----------------------------------------------------------------------------------------------------