sfepy.postprocess.dataset_manager module
Code to help with managing a TVTK data set in Pythonic ways.
-
class sfepy.postprocess.dataset_manager.DatasetManager[source]
-
activate(name, category='point')[source]
Make the specified array the active one.
-
add_array(array, name, category='point')[source]
Add an array to the dataset to specified category (‘point’ or
‘cell’).
-
remove_array(name, category='point')[source]
Remove an array by its name and optional category (point and
cell). Returns the removed array.
-
rename_array(name1, name2, category='point')[source]
Rename a particular array from name1 to name2.
-
update()[source]
Update the dataset when the arrays are changed.
-
sfepy.postprocess.dataset_manager.get_all_attributes(obj)[source]
Gets the scalar, vector and tensor attributes that are
available in the given VTK data object.
-
sfepy.postprocess.dataset_manager.get_array_type(arr)[source]
Returns if the array is a scalar (‘scalars’), vector
(‘vectors’) or tensor (‘tensors’). It looks at the number of
components to decide. If it has a wierd number of components it
returns the empty string.
-
sfepy.postprocess.dataset_manager.get_attribute_list(data)[source]
Gets scalar, vector and tensor information from the given data
(either cell or point data).