running the 1st cell of example/basics_of_PyRATP.ipynb raises ImportError: cannot import name 'ratpvoxels2vtk' from 'openalea.ratp.RATP2VTK' that comes from
from openalea.ratp.RATP2VTK import ratpvoxels2vtk
SyntaxWarning: invalid escape sequence '\R'
That comes from the string in args:
def ratpvoxels2vtk(grid, variable,varname="Variable",nomfich="C:\tmpRATP\RATPOUT.vtk"):
Two recommendations:
- Either put a 'r' in front of it as
r"C:\tmpRATP\RATPOUT.vtk"
- do not use absolute path, typically this one won't work on osx or Linux
running the 1st cell of
example/basics_of_PyRATP.ipynbraisesImportError: cannot import name 'ratpvoxels2vtk' from 'openalea.ratp.RATP2VTK'that comes fromThat comes from the string in args:
Two recommendations:
r"C:\tmpRATP\RATPOUT.vtk"