Skip to content

Commit

Permalink
Added vtk's working version to the DESCRIPTION file. It is also speci…
Browse files Browse the repository at this point in the history
…fied in the message for numpy installation with the python library installation.
  • Loading branch information
chabld committed Dec 2, 2024
1 parent b09b88b commit c72c6bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ Encoding: UTF-8
LazyData: true
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.1
SystemRequirements: Miniconda3 (v23.10.0); BrainStat (reticulate
installation, v0.4.2); Numpy (v1.26.4)
SystemRequirements: Miniconda3 (v23.10.0); Python packages: BrainStat
(reticulate installation, v0.4.2), numpy (v1.26.4), vtk (v9.3.1)
Depends:
R (>= 4.0.0)
Imports:
Expand Down
2 changes: 1 addition & 1 deletion R/VWRfirstrun.R
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ VWRfirstrun=function(requirement="any", n_vert=0, promptless=FALSE)
Renvironpath=paste0(tools::R_user_dir(package='VertexWiseR'),'/.Renviron')
if (file.exists(Renvironpath)) {readRenviron(Renvironpath)}

message('A specific version of the Numpy package (<= 1.26.4) is more stable for analyses, it will now be installed in the Python libraries along with its dependencies.\n')
message('Specific versions of the Numpy (<= 1.26.4) and vtk packages (<= 9.3.1) are more stable for analyses. They will now be installed in the Python libraries along with their dependencies.\n')
#pip instead of install_py as it will use a virtual environment
system('(pip install numpy==1.26.4 || pip3 install numpy==1.26.4)') #posterior numpy versions break python functions
system('(pip install vtk==9.3.1 || pip3 install vtk==9.3.1)') #latest vtk==9.4.0 causes problems
Expand Down

0 comments on commit c72c6bc

Please sign in to comment.