Skip to content

Commit

Permalink
Don't sort effects
Browse files Browse the repository at this point in the history
  • Loading branch information
teutoburg committed Dec 6, 2023
1 parent 554a98a commit 4e0016c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scopesim/optics/optics_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ def _gather_effects():
def _sortkey(eff):
return next(z % 100 for z in eff.meta["z_order"] if z >= z_level)

Check warning on line 174 in scopesim/optics/optics_manager.py

View check run for this annotation

Codecov / codecov/patch

scopesim/optics/optics_manager.py#L174

Added line #L174 was not covered by tests

return sorted(_gather_effects(), key=_sortkey)
# return sorted(_gather_effects(), key=_sortkey)
return list(_gather_effects())

@property
def is_spectroscope(self):
Expand Down

0 comments on commit 4e0016c

Please sign in to comment.