Geodels / gospl

Global Scalable Paleo Landscape Evolution Model
https://gospl.readthedocs.io
GNU General Public License v3.0
56 stars 11 forks source link

vtk Ambigous data error #275

Open RichardScottOZ opened 2 weeks ago

RichardScottOZ commented 2 weeks ago

Describe the bug need to pick activate scalrs

To Reproduce run bfModel notebook

Expected behavior countour chosen

Desktop (please complete the following information):

File ~/miniconda3/envs/gospl-package/lib/python3.9/site-packages/pyvista/core/filters/data_set.py:1860, in DataSetFilters.contour(self, isosurfaces, scalars, compute_normals, compute_gradients, compute_scalars, rng, preference, method, progress_bar) 1858 # set the array to contour on 1859 if scalars is None: -> 1860 set_default_active_scalars(self) 1861 field, scalars_name = self.active_scalars_info 1862 else:

File ~/miniconda3/envs/gospl-package/lib/python3.9/site-packages/pyvista/core/utilities/arrays.py:748, in set_default_active_scalars(mesh) 746 raise MissingDataError("No data available.") 747 elif n_possible_scalars > 1: --> 748 raise AmbiguousDataError( 749 "Multiple data available\n" 750 f"cell data: {possible_scalars_cell}.\n" 751 f"point data: {possible_scalars_point}.\n" 752 "Set one as active using DataSet.set_active_scalars(name, preference=type)" 753 )

AmbiguousDataError: Multiple data available cell data: []. point data: ['Z', 'vTec']. Set one as active using DataSet.set_active_scalars(name, preference=type)

RichardScottOZ commented 2 weeks ago

There are a couple of these