File tree Expand file tree Collapse file tree
src/trame_vtk/modules/vtk/serializers Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99# -----------------------------------------------------------------------------
1010
1111
12+ def is_array_in (array , arrays ):
13+ for a in arrays :
14+ if a is array :
15+ return True
16+ return False
17+
18+
1219def data_table_to_list (data_table ):
1320 data_type = array_types_mapping [data_table .GetDataType ()]
1421 element_size = struct .calcsize (data_type )
@@ -148,7 +155,7 @@ def extract_required_fields(
148155 ]:
149156 for array_index in range (field_data .GetNumberOfArrays ()):
150157 array = field_data .GetArray (array_index )
151- if export_all or array in arrays_to_export :
158+ if export_all or is_array_in ( array , arrays_to_export ) :
152159 array_meta = get_array_description (array , context )
153160 if array_meta :
154161 array_meta ["location" ] = location
You can’t perform that action at this time.
0 commit comments