diff --git a/scopesim/optics/optics_manager.py b/scopesim/optics/optics_manager.py index d73aa4ef..cc5242a6 100644 --- a/scopesim/optics/optics_manager.py +++ b/scopesim/optics/optics_manager.py @@ -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) - return sorted(_gather_effects(), key=_sortkey) + # return sorted(_gather_effects(), key=_sortkey) + return list(_gather_effects()) @property def is_spectroscope(self):