Skip to content

Commit

Permalink
use _writer key
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 committed Jun 12, 2022
1 parent b19321c commit 7d89e4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion npe2/_plugin_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def _writer_key(writer: WriterContribution) -> Tuple[bool, int]:
nbounds = sum(not c.is_zero() for c in writer.layer_type_constraints())
return (no_ext, nbounds)

yield from candidates
yield from sorted(candidates, key=_writer_key)


class PluginManagerEvents(SignalGroup):
Expand Down

0 comments on commit 7d89e4d

Please sign in to comment.