Skip to content

bug in example/basics_of_PyRATP.ipynb #41

Description

@baugetfa

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:

  1. Either put a 'r' in front of it as r"C:\tmpRATP\RATPOUT.vtk"
  2. do not use absolute path, typically this one won't work on osx or Linux

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions