diff --git a/measure_extinction/stardata.py b/measure_extinction/stardata.py index cd1dd64..d3ec30c 100644 --- a/measure_extinction/stardata.py +++ b/measure_extinction/stardata.py @@ -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: @@ -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, ): """ @@ -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 diff --git a/measure_extinction/utils/merge_miri_ifu_spec.py b/measure_extinction/utils/merge_miri_ifu_spec.py index 7bca238..4537c70 100644 --- a/measure_extinction/utils/merge_miri_ifu_spec.py +++ b/measure_extinction/utils/merge_miri_ifu_spec.py @@ -88,7 +88,7 @@ .to(fluxunit, equivalencies=u.spectral_density(ctable["WAVELENGTH"])) .value ) - + ax.plot( rb_mrs["WAVELENGTH"][gvals].to(u.micron), rb_mrs["FLUX"][gvals], @@ -112,4 +112,4 @@ elif args.pdf: fig.savefig(f"{fname}.pdf") else: - plt.show() \ No newline at end of file + plt.show() diff --git a/measure_extinction/utils/merge_nircam_spec.py b/measure_extinction/utils/merge_nircam_spec.py index 55401e0..9bea778 100644 --- a/measure_extinction/utils/merge_nircam_spec.py +++ b/measure_extinction/utils/merge_nircam_spec.py @@ -88,7 +88,7 @@ .to(fluxunit, equivalencies=u.spectral_density(ctable["WAVELENGTH"])) .value ) - + ax.plot( rb_mrs["WAVELENGTH"][gvals].to(u.micron), rb_mrs["FLUX"][gvals], @@ -112,4 +112,4 @@ elif args.pdf: fig.savefig(f"{fname}.pdf") else: - plt.show() \ No newline at end of file + plt.show()