Skip to content

Commit

Permalink
fixing codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
karllark committed Feb 15, 2024
1 parent 7cb647a commit a34e95d
Showing 1 changed file with 24 additions and 22 deletions.
46 changes: 24 additions & 22 deletions beast/tools/make_libfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,14 +397,14 @@ def make_filters_libfile():
"ngroup": 10,
"nint": 1,
"readout_pattern": "deep2",
"subarray": "full"
"subarray": "full",
},
"instrument": {
"aperture": "sw",
"disperser": "null",
"filter": filt,
"instrument": "nircam",
"mode": "sw_imaging"
"mode": "sw_imaging",
},
}

Expand Down Expand Up @@ -453,14 +453,14 @@ def make_filters_libfile():
"ngroup": 10,
"nint": 1,
"readout_pattern": "deep2",
"subarray": "full"
"subarray": "full",
},
"instrument": {
"aperture": "lw",
"disperser": "null",
"filter": filt,
"instrument": "nircam",
"mode": "lw_imaging"
"mode": "lw_imaging",
},
}

Expand Down Expand Up @@ -509,14 +509,14 @@ def make_filters_libfile():
"ngroup": 10,
"nint": 1,
"readout_pattern": "nis",
"subarray": "full"
"subarray": "full",
},
"instrument": {
"aperture": "imager",
"disperser": "null",
"filter": filt,
"instrument": "niriss",
"mode": "imaging"
"mode": "imaging",
},
}

Expand Down Expand Up @@ -669,7 +669,9 @@ def make_vega_libfile():
vega = h5py.File(__default_vega__, "w")

vega.create_dataset("spectrum", data=vega_old)
flist = phot.load_filters(filters, interp=True, lamb=vl, filterLib=__default_filtlist__)
flist = phot.load_filters(
filters, interp=True, lamb=vl, filterLib=__default_filtlist__
)

fname = []
cwave = []
Expand All @@ -684,21 +686,21 @@ def make_vega_libfile():
mag.append(-2.5 * np.log10(flux))

contents = np.array(
list(
zip(
fname,
cwave,
lum,
mag,
)
),
dtype=[
("FNAME", "S30"),
("CWAVE", "<f8"),
("LUM", "<f8"),
("MAG", "<f8"),
],
)
list(
zip(
fname,
cwave,
lum,
mag,
)
),
dtype=[
("FNAME", "S30"),
("CWAVE", "<f8"),
("LUM", "<f8"),
("MAG", "<f8"),
],
)

vega.create_dataset("sed", data=contents)
vega.close()
Expand Down

0 comments on commit a34e95d

Please sign in to comment.