Skip to content
Snippets Groups Projects
Commit a33c4fdb authored by Johannes Boog's avatar Johannes Boog
Browse files

[bugfix] import of VTK library

parent 4a931424
No related branches found
No related tags found
2 merge requests!27Draft: Resolve "ext_calbayesopt_toR6",!24Resolve "bugfixes"
......@@ -232,8 +232,7 @@ OGS6_vtu <- R6::R6Class(
}else{
# Check class
private$.vtkUnstructuredGrid <- value
private$.dsa_vtkUnstructuredGrid <-
vtk$numpy_interface$dataset_adapter$WrapDataObject(value)
private$.dsa_vtkUnstructuredGrid <- dsa$WrapDataObject(value)
}
},
......
......@@ -3,6 +3,7 @@
# Python vtk library reference
vtk <- NULL
dsa <- NULL
.onLoad <- function(libname, pkgname){
......@@ -30,6 +31,8 @@ vtk <- NULL
# use superassignments to update global Python references
vtk <<- reticulate::import("vtk", delay_load = TRUE)
dsa <<- reticulate::import("vtk.numpy_interface.dataset_adapter",
delay_load = TRUE)
return(invisible())
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment