From 4e0016cd301b820a2eee8ec1d13f366dd84e0c71 Mon Sep 17 00:00:00 2001 From: teutoburg Date: Wed, 6 Dec 2023 15:15:42 +0100 Subject: [PATCH] Don't sort effects --- scopesim/optics/optics_manager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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):