Skip to content

Commit

Permalink
Forgotten argument and more spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
teutoburg committed Sep 9, 2024
1 parent 0f4058a commit 0ffd8da
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion scopesim/effects/ter_curves.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,

Check warning on line 119 in scopesim/effects/ter_curves.py

View check run for this annotation

Codecov / codecov/patch

scopesim/effects/ter_curves.py#L119

Added line #L119 was not covered by tests
fld.wave)
continue

Check warning on line 121 in scopesim/effects/ter_curves.py

View check run for this annotation

Codecov / codecov/patch

scopesim/effects/ter_curves.py#L121

Added line #L121 was not covered by tests

for isp, spec in fld.spectra.items():
Expand Down
6 changes: 3 additions & 3 deletions scopesim/source/source.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Check warning on line 372 in scopesim/source/source.py

View check run for this annotation

Codecov / codecov/patch

scopesim/source/source.py#L372

Added line #L372 was not covered by tests

@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))

Check warning on line 377 in scopesim/source/source.py

View check run for this annotation

Codecov / codecov/patch

scopesim/source/source.py#L377

Added line #L377 was not covered by tests

@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
Expand Down
2 changes: 1 addition & 1 deletion scopesim/source/source_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 0ffd8da

Please sign in to comment.