Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
ParaView
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2,004
Issues
2,004
List
Boards
Labels
Milestones
Merge Requests
58
Merge Requests
58
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ParaView
ParaView
Commits
0505de7a
Commit
0505de7a
authored
Aug 05, 2010
by
Meng ZHU
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modified pythonfilter.xml SetArrayAssociation bug
parent
db30e7d7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
Servers/ServerManager/Resources/pythonfilter.xml
Servers/ServerManager/Resources/pythonfilter.xml
+1
-1
Utilities/VTKPythonWrapping/paraview/vtk/dataset_adapter.py
Utilities/VTKPythonWrapping/paraview/vtk/dataset_adapter.py
+5
-5
No files found.
Servers/ServerManager/Resources/pythonfilter.xml
View file @
0505de7a
...
...
@@ -50,7 +50,7 @@
<IntVectorProperty
name=
"ArrayAssociation"
command=
"SetArrayAssociation"
number_of_elements=
"
0
"
number_of_elements=
"
1
"
default_values=
"0"
>
<EnumerationDomain
name=
"enum"
>
<Entry
value=
"0"
text=
"Point Data"
/>
...
...
Utilities/VTKPythonWrapping/paraview/vtk/dataset_adapter.py
View file @
0505de7a
...
...
@@ -125,7 +125,7 @@ class DataSetAttributes(VTKObjectWrapper):
"""This is a python friendly wrapper of vtkDataSetAttributes. It
returns VTKArrays. It also provides the dictionary interface."""
def
__init__
(
self
,
vtkobject
,
dataset
):
def
__init__
(
self
,
vtkobject
,
dataset
,
association
):
self
.
VTKObject
=
vtkobject
import
weakref
self
.
DataSet
=
weakref
.
ref
(
dataset
)
...
...
@@ -232,16 +232,16 @@ class DataSet(VTKObjectWrapper):
def
GetPointData
(
self
):
"Returns the point data as a DataSetAttributes instance."
return
DataSetAttributes
(
self
.
VTKObject
.
GetPointData
(),
self
)
return
DataSetAttributes
(
self
.
VTKObject
.
GetPointData
(),
self
,
ArrayAssociation
.
POINT
)
def
GetCellData
(
self
):
"Returns the cell data as a DataSetAttributes instance."
return
DataSetAttributes
(
self
.
VTKObject
.
GetCellData
(),
self
)
return
DataSetAttributes
(
self
.
VTKObject
.
GetCellData
(),
self
,
ArrayAssociation
.
CELL
)
def
GetFieldData
(
self
):
"Returns the field data as a DataSetAttributes instance."
return
DataSetAttributes
(
self
.
VTKObject
.
GetFieldData
(),
self
)
return
DataSetAttributes
(
self
.
VTKObject
.
GetFieldData
(),
self
,
ArrayAssociation
.
FIELD
)
PointData
=
property
(
GetPointData
,
None
,
None
,
"This property returns
\
the point data of the dataset."
)
CellData
=
property
(
GetCellData
,
None
,
None
,
"This property returns
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment