Skip to content

Commit

Permalink
Update import vtk to only pick the module we use
Browse files Browse the repository at this point in the history
  • Loading branch information
jourdain committed Feb 4, 2021
1 parent a7fc126 commit 11535bf
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,10 @@ import dash_html_components as html
import dash_vtk
from dash_vtk.utils import to_volume_state

import vtk
from vtk.vtkImagingCore import vtkRTAnalyticSource

# Use VTK to get some data
data_source = vtk.vtkRTAnalyticSource()
data_source = vtkRTAnalyticSource()
data_source.Update() # <= Execute source to produce an output
dataset = data_source.GetOutput()

Expand Down Expand Up @@ -745,10 +745,10 @@ import dash_html_components as html
import dash_vtk
from dash_vtk.utils import to_volume_state

import vtk
from vtk.vtkImagingCore import vtkRTAnalyticSource

# Use VTK to get some data
data_source = vtk.vtkRTAnalyticSource()
data_source = vtkRTAnalyticSource()
data_source.Update() # <= Execute source to produce an output
dataset = data_source.GetOutput()

Expand Down
4 changes: 2 additions & 2 deletions docs/tutorials/t00_geometry_rendering.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
import dash_vtk
from dash_vtk.utils import to_mesh_state

import vtk
from vtk.vtkImagingCore import vtkRTAnalyticSource

# Use VTK to get some data
data_source = vtk.vtkRTAnalyticSource()
data_source = vtkRTAnalyticSource()
data_source.Update() # <= Execute source to produce an output
dataset = data_source.GetOutput()

Expand Down
4 changes: 2 additions & 2 deletions docs/tutorials/t01_volume_rendering.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
import dash_vtk
from dash_vtk.utils import to_volume_state

import vtk
from vtk.vtkImagingCore import vtkRTAnalyticSource

# Use VTK to get some data
data_source = vtk.vtkRTAnalyticSource()
data_source = vtkRTAnalyticSource()
data_source.Update() # <= Execute source to produce an output
dataset = data_source.GetOutput()

Expand Down
4 changes: 2 additions & 2 deletions docs/tutorials/t06_shared_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
import dash_vtk
from dash_vtk.utils import to_volume_state

import vtk
from vtk.vtkImagingCore import vtkRTAnalyticSource

# Use VTK to get some data
data_source = vtk.vtkRTAnalyticSource()
data_source = vtkRTAnalyticSource()
data_source.Update() # <= Execute source to produce an output
dataset = data_source.GetOutput()

Expand Down

0 comments on commit 11535bf

Please sign in to comment.