File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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 :
Original file line number Diff line number Diff 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" )
You can’t perform that action at this time.
0 commit comments