Skip to content

Commit

Permalink
Swap order of arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed Nov 9, 2018
1 parent af77ae8 commit 2ff94b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion glue/viewers/common/tests/test_viewer.py
Expand Up @@ -20,7 +20,7 @@ def add_widget(self, *args, **kwargs):
pass

@layer_artist_maker('custom_maker')
def custom_maker(data, viewer):
def custom_maker(viewer, data):
if hasattr(data, 'custom'):
return CustomLayerArtist(viewer.state, layer=data)

Expand Down
2 changes: 1 addition & 1 deletion glue/viewers/common/viewer.py
Expand Up @@ -31,7 +31,7 @@ def get_layer_artist_from_registry(data, viewer):
the specified data and viewer.
"""
for maker in layer_artist_maker.members:
layer_artist = maker.function(data, viewer)
layer_artist = maker.function(viewer, data)
if layer_artist is not None:
return layer_artist

Expand Down

0 comments on commit 2ff94b5

Please sign in to comment.