-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add FillPartialArrays vtk filter and paraview plugin #105
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
base: main
Are you sure you want to change the base?
feat: add FillPartialArrays vtk filter and paraview plugin #105
Conversation
…artialattribute, it is still nan by default
…utes in the fillallpartialattributes function
…ckdataset if it exist
Co-authored-by: paloma-martinez <[email protected]>
Update to last version of the main
…artialArray Uptade to last version of the main
assert ( npArrayFilled == npArrayTest ).all() | ||
|
||
vtkDataTypeFilled: int = attributeFilled.GetDataType() | ||
assert vtkDataTypeTest == vtkDataTypeFilled |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
assert vtkDataTypeTest == vtkDataTypeFilled | |
assert vtkDataTypeFilled == vtkDataTypeTest |
</StringVectorProperty> | ||
""" ) | ||
def _setDictAttributesValues( self: Self, attributeName: str, values: str ) -> None: | ||
"""Set the the dictionary with the region indexes and its corresponding list of value for each components. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"""Set the the dictionary with the region indexes and its corresponding list of value for each components. | |
"""Set the dictionary with the region indexes and its corresponding list of value for each components. |
|
||
Args: | ||
value (str): Input | ||
attributeName (str): Name of the attribute to consider. | ||
values (str): List of the filing values. If multiple components use a coma between the value of each component. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
values (str): List of the filing values. If multiple components use a coma between the value of each component. | |
values (str): List of the filing values. If multiple components use a comma between the value of each component. |
if attributeName is not None and values is not None : | ||
self.dictAttributesValues[ attributeName ] = list( values.split( "," ) ) | ||
elif attributeName is not None and values is None: | ||
self.dictAttributesValues[ attributeName ] = None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if attributeName is not None and values is not None : | |
self.dictAttributesValues[ attributeName ] = list( values.split( "," ) ) | |
elif attributeName is not None and values is None: | |
self.dictAttributesValues[ attributeName ] = None | |
if attributeName is not None: | |
if values is not None : | |
self.dictAttributesValues[ attributeName ] = list( values.split( "," ) ) | |
else: | |
self.dictAttributesValues[ attributeName ] = None |
This PR add the possibility to fill a partial arrays with values
close #104