Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 8, 2023
1 parent 9e40619 commit 78257e0
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions scripts/make_flat_spectrum_eor.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def flat_spectrum_skymodel(
nside=nside,
stokes=stokes * units.K,
history=history_string,
frame=frame
frame=frame,
)


Expand Down Expand Up @@ -159,7 +159,10 @@ def flat_spectrum_skymodel(
"--fname", type=str, help="Output file name", default="noise_sky.hdf5"
)
parser.add_argument(
"--frame", type=str, help="Astropy Frame for output SkyModel, default ICRS", default="icrs"
"--frame",
type=str,
help="Astropy Frame for output SkyModel, default ICRS",
default="icrs",
)

args = parser.parse_args()
Expand All @@ -180,7 +183,9 @@ def flat_spectrum_skymodel(
f" and variance {var} K^2 at channel {args.ref_chan}."
)

sky = flat_spectrum_skymodel(var, nside, freqs=freq_array, ref_chan=args.ref_chan, frame=frame)
sky = flat_spectrum_skymodel(
var, nside, freqs=freq_array, ref_chan=args.ref_chan, frame=frame
)
sky.check()
print(sky.history)
print(f"Saving to {fname}.")
Expand Down

0 comments on commit 78257e0

Please sign in to comment.