File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -829,7 +829,7 @@ def retarget_to(self, target_axis):
829
829
raise ValueError ('cannot retarget a Group defined without a real axis object (e.g. using '
830
830
'an AxisReference (x.)) to an axis with a different name' )
831
831
return self .__class__ (self .key , self .name , target_axis )
832
- elif self .axis . equals ( target_axis ) or isinstance ( self .axis , int ):
832
+ elif isinstance ( self .axis , int ) or self .axis . equals ( target_axis ):
833
833
# in the case of isinstance(self.axis, int), we can only hope the axis corresponds. This is the
834
834
# case if we come from _translate_axis_key_chunk, but if the users calls this manually, we cannot know.
835
835
# XXX: maybe changing this to retarget_to_axes would be a good idea after all?
You can’t perform that action at this time.
0 commit comments