Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception occurred in traits notification handler for object in "LithologiesClassesOverlayVisual3d.view_overlay" #9

Open
jmp75 opened this issue May 25, 2019 · 1 comment

Comments

@jmp75
Copy link
Collaborator

jmp75 commented May 25, 2019

Overlayed view: code works on the Perth Peel data, but on the Condamine this error occures. The DEM and point bore data does display, but not the volumes. The color coding of the bore also looks wrong. Repro with exploratory-lithology-analysis\case_studies\Condamine\Condamine_Facies.ipynb

@jmp75
Copy link
Collaborator Author

jmp75 commented May 25, 2019

Traceback (most recent call last):
  File "C:\Users\xxxyyy\AppData\Local\Continuum\anaconda3\envs\ELA3\lib\site-packages\tvtk\array_handler.py", line 698, in convert_array
    vtk_arr = getattr(vtk, vtk_typ)()
TypeError: this is an abstract class and cannot be instantiated

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\xxxyyy\AppData\Local\Continuum\anaconda3\envs\ELA3\lib\site-packages\traits\trait_notifiers.py", line 340, in __call__
    self.handler( *args )
  File "C:\Users\xxxyyy\AppData\Local\Continuum\anaconda3\envs\ELA3\lib\site-packages\mayavi\sources\array_source.py", line 251, in _scalar_data_changed
    img_data.point_data.scalars = np.ravel(np.transpose(data))
  File "tvtk_classes\data_set_attributes.py", line 269, in _set_scalars
    my_arg = deref_array([arg], [['vtkDataArray']])
  File "C:\Users\xxxyyy\AppData\Local\Continuum\anaconda3\envs\ELA3\lib\site-packages\tvtk\array_handler.py", line 814, in deref_array
    ret.append(convert_array(a, s))
  File "C:\Users\xxxyyy\AppData\Local\Continuum\anaconda3\envs\ELA3\lib\site-packages\tvtk\array_handler.py", line 700, in convert_array
    return array2vtk(arr)
  File "C:\Users\xxxyyy\AppData\Local\Continuum\anaconda3\envs\ELA3\lib\site-packages\tvtk\array_handler.py", line 319, in array2vtk
    vtk_typecode = get_vtk_array_type(z.dtype)
  File "C:\Users\xxxyyy\AppData\Local\Continuum\anaconda3\envs\ELA3\lib\site-packages\tvtk\array_handler.py", line 216, in get_vtk_array_type
    raise TypeError("Couldn't translate array's type to VTK")
TypeError: Couldn't translate array's type to VTK
Cannot contour: No scalars in input data!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant