Skip to content

Commit

Permalink
fix scipy.signal bug introduced by scipy 1.13
Browse files Browse the repository at this point in the history
  • Loading branch information
flyaflya committed Apr 24, 2024
1 parent eec63c9 commit e947057
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/causact-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
# Above code for if successful , continue
}, error = function(e) {# Display an error message
packageStartupMessage("An error occurred:", conditionMessage(e))
packageStartupMessage(". To make causact's required connection to Python, restart R, then load the causact package with library(causact).\n")
packageStartupMessage(". To make causact's required connection to Python, restart R, then install causact's dependencies with causact::install_causact_deps().\n")
})
} # end else
} #end .onAttach function
6 changes: 5 additions & 1 deletion R/install_causact_deps.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ install_causact_deps <-
## guaranteed to work together with python 3.11
packages = c("numpyro[cpu]==0.13.2",
"arviz==0.16.1",
"pandas==2.1.3")
"pandas==2.1.3",
"scipy==1.12")
python_version = "3.11"
pip = TRUE
new_env = TRUE
Expand Down Expand Up @@ -90,6 +91,9 @@ install_causact_deps <-
reticulate::install_miniconda()
})

#start fresh
try(reticulate::conda_remove(envname))

reticulate::py_install(
packages = packages,
envname = envname,
Expand Down

0 comments on commit e947057

Please sign in to comment.