diff --git a/scopesim/effects/ter_curves.py b/scopesim/effects/ter_curves.py index c49a93ae..cb7a0385 100644 --- a/scopesim/effects/ter_curves.py +++ b/scopesim/effects/ter_curves.py @@ -116,7 +116,8 @@ def apply_to(self, obj, **kwargs): # apply transmission to source spectra for fld in obj.fields: if isinstance(fld, CubeSourceField): - fld.field = apply_throughput_to_cube(fld.field, thru) + fld.field = apply_throughput_to_cube(fld.field, thru, + fld.wave) continue for isp, spec in fld.spectra.items(): diff --git a/scopesim/source/source.py b/scopesim/source/source.py index edd6725f..d12bd361 100644 --- a/scopesim/source/source.py +++ b/scopesim/source/source.py @@ -368,17 +368,17 @@ def _get_fields(self, subclass): @property def table_fields(self): - """Return list of fields that are defined through tables.""" + """List of fields that are defined through tables.""" return list(self._get_fields(TableSourceField)) @property def image_fields(self): - """Return list of fields that are defined through 2D images.""" + """List of fields that are defined through 2D images.""" return list(self._get_fields(ImageSourceField)) @property def cube_fields(self): - """Return list of fields that are defined through 3D datacubes.""" + """List of fields that are defined through 3D datacubes.""" return list(self._get_fields(CubeSourceField)) @property diff --git a/scopesim/source/source_fields.py b/scopesim/source/source_fields.py index adea2565..bc340ac1 100644 --- a/scopesim/source/source_fields.py +++ b/scopesim/source/source_fields.py @@ -203,7 +203,7 @@ class HDUSourceField(SourceField): def __new__(cls, *args, **kwargs): """Override creation to create subclasses.""" if issubclass(cls, (CubeSourceField, ImageSourceField)): - # Allow for dirct subclass access + # Allow for direct subclass access return super().__new__(cls) field = kwargs.get("field", args[0])