Skip to content

Commit

Permalink
fixing flake8 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
karllark committed Feb 29, 2024
1 parent 42cda18 commit becfcb5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
11 changes: 8 additions & 3 deletions measure_extinction/stardata.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def read_bands(self, lines, only_bands=None):
band_name = line[0:eqpos].strip()

save_band = False
if (only_bands is None):
if only_bands is None:
save_band = True
else:
if band_name in only_bands:
Expand Down Expand Up @@ -965,7 +965,12 @@ class StarData:
"""

def __init__(
self, datfile, path="", photonly=False, use_corfac=True, deredden=False,
self,
datfile,
path="",
photonly=False,
use_corfac=True,
deredden=False,
only_bands=None,
):
"""
Expand Down Expand Up @@ -1016,7 +1021,7 @@ def read(self, deredden=False, only_bands=None):
Deredden the data based on dereddening parameters given in the DAT file.
Generally used to deredden standards.
only_bands : list
Only read in the bands given
Only read in the bands given
"""

# open and read all the lines in the file
Expand Down
4 changes: 2 additions & 2 deletions measure_extinction/utils/merge_miri_ifu_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
.to(fluxunit, equivalencies=u.spectral_density(ctable["WAVELENGTH"]))
.value
)

ax.plot(

Check warning on line 92 in measure_extinction/utils/merge_miri_ifu_spec.py

View check run for this annotation

Codecov / codecov/patch

measure_extinction/utils/merge_miri_ifu_spec.py#L92

Added line #L92 was not covered by tests
rb_mrs["WAVELENGTH"][gvals].to(u.micron),
rb_mrs["FLUX"][gvals],
Expand All @@ -112,4 +112,4 @@
elif args.pdf:
fig.savefig(f"{fname}.pdf")

Check warning on line 113 in measure_extinction/utils/merge_miri_ifu_spec.py

View check run for this annotation

Codecov / codecov/patch

measure_extinction/utils/merge_miri_ifu_spec.py#L109-L113

Added lines #L109 - L113 were not covered by tests
else:
plt.show()
plt.show()

Check warning on line 115 in measure_extinction/utils/merge_miri_ifu_spec.py

View check run for this annotation

Codecov / codecov/patch

measure_extinction/utils/merge_miri_ifu_spec.py#L115

Added line #L115 was not covered by tests
4 changes: 2 additions & 2 deletions measure_extinction/utils/merge_nircam_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
.to(fluxunit, equivalencies=u.spectral_density(ctable["WAVELENGTH"]))
.value
)

ax.plot(

Check warning on line 92 in measure_extinction/utils/merge_nircam_spec.py

View check run for this annotation

Codecov / codecov/patch

measure_extinction/utils/merge_nircam_spec.py#L92

Added line #L92 was not covered by tests
rb_mrs["WAVELENGTH"][gvals].to(u.micron),
rb_mrs["FLUX"][gvals],
Expand All @@ -112,4 +112,4 @@
elif args.pdf:
fig.savefig(f"{fname}.pdf")

Check warning on line 113 in measure_extinction/utils/merge_nircam_spec.py

View check run for this annotation

Codecov / codecov/patch

measure_extinction/utils/merge_nircam_spec.py#L109-L113

Added lines #L109 - L113 were not covered by tests
else:
plt.show()
plt.show()

Check warning on line 115 in measure_extinction/utils/merge_nircam_spec.py

View check run for this annotation

Codecov / codecov/patch

measure_extinction/utils/merge_nircam_spec.py#L115

Added line #L115 was not covered by tests

0 comments on commit becfcb5

Please sign in to comment.