Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions pyVlsv/vlsvvtkinterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -838,8 +838,9 @@ def RequestUpdateExtent(self, request, inInfo, outInfo):
'''This function adds one SpatialGrid variable from the reader object and maps
that to the hypertreegrid object. Variable vector sizes of 1,2,3,4,9 supported.
'''
def addArrayFromVlsv(self, htg, varname):
def addArrayFromVlsv(self, varname):

htg = self.__htg
# Do not re-add an already existing array
if htg.GetCellData().HasArray(varname):
print("skipped existing array")
Expand Down Expand Up @@ -899,7 +900,7 @@ def RequestData(self, request, inInfo, outInfo):

for name in self.__cellarrays:
if self._arrayselection.ArrayIsEnabled(name):
success = self.addArrayFromVlsv(self.__htg, name)
success = self.addArrayFromVlsv(name)
if not success:
self._arrayselection.RemoveArrayByName(name)

Expand Down