Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/Eomys/SciDataTool
Browse files Browse the repository at this point in the history
  • Loading branch information
helene-t committed Sep 28, 2020
2 parents 2c1359f + ed8d95a commit 4e5914f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
11 changes: 4 additions & 7 deletions SciDataTool/Classes/DataND.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,9 +407,10 @@ def _set_None(self):

def _get_axes(self):
"""getter of axes"""
for obj in self._axes:
if obj is not None:
obj.parent = self
if self._axes is not None:
for obj in self._axes:
if obj is not None:
obj.parent = self
return self._axes

def _set_axes(self, value):
Expand All @@ -426,10 +427,6 @@ def _set_axes(self, value):
check_var("axes", value, "[Data]")
self._axes = value

for obj in self._axes:
if obj is not None:
obj.parent = self

axes = property(
fget=_get_axes,
fset=_set_axes,
Expand Down
7 changes: 4 additions & 3 deletions SciDataTool/Classes/VectorField.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,9 +353,10 @@ def _set_symbol(self, value):

def _get_components(self):
"""getter of components"""
for key, obj in self._components.items():
if obj is not None:
obj.parent = self
if self._components is not None:
for key, obj in self._components.items():
if obj is not None:
obj.parent = self
return self._components

def _set_components(self, value):
Expand Down

0 comments on commit 4e5914f

Please sign in to comment.