Skip to content

Commit 94b939a

Browse files
committed
pre-commit fixes
1 parent 243ce45 commit 94b939a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/pyuvsim/simsetup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1370,7 +1370,7 @@ def parse_telescope_params(
13701370

13711371
if not tele_config or not return_beams:
13721372
# if no info on beams, just return what we have
1373-
beam_dict = {n: 0 for n in antnames}
1373+
beam_dict = dict.fromkeys(antnames, 0)
13741374
if not return_beams:
13751375
return return_dict
13761376
else:

tests/test_telescope.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ def test_beam_basis_type(beam_objs):
283283

284284
basis_types = beamlist._get_beam_basis_type()
285285

286-
assert basis_types == {index: "az_za" for index in range(len(beam_objs))}
286+
assert basis_types == dict.fromkeys(range(len(beam_objs)), "az_za")
287287

288288

289289
@pytest.mark.filterwarnings("ignore:key beam_path in extra_keywords is longer")

0 commit comments

Comments
 (0)