Skip to content

Commit

Permalink
normalizePath... and simplify virtualenv setup
Browse files Browse the repository at this point in the history
  • Loading branch information
egillax committed Jul 8, 2024
1 parent 215df23 commit fbf0fd4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/R_CDM_check_hades.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ jobs:
c("polars", "tqdm", "connectorx", "pyarrow", "pynvml", "numpy==1.26.4")
library(reticulate)
virtualenv_create("r-reticulate", Sys.which("python"))
virtualenv_install("r-reticulate", python_packages)
virtualenv_create("r-reticulate", Sys.which("python"), packages=python_packages)
virtualenv_install("r-reticulate", "torch", pip_options = c("--index-url https://download.pytorch.org/whl/cpu"))
path_to_python <- virtualenv_python("r-reticulate")
Expand Down
6 changes: 3 additions & 3 deletions tests/testthat/test-Finetuner.R
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ test_that("Finetuner fitEstimator works", {
"DeepEstimatorModel.pt"))
expect_true(fineTunedModel$estimator_settings$finetune)
expect_equal(fineTunedModel$estimator_settings$finetune_model_path,
file.path(fitEstimatorPath, "plpModel", "model",
"DeepEstimatorModel.pt"))
normalizePath(file.path(fitEstimatorPath, "plpModel", "model",
"DeepEstimatorModel.pt")))
expect_equal(fineTunedModel$model_parameters$model_type,
fitEstimatorResults$modelDesign$modelSettings$modelType)
})
})

0 comments on commit fbf0fd4

Please sign in to comment.