We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88b6105 commit df23e53Copy full SHA for df23e53
arrakis/cutout.py
@@ -564,9 +564,13 @@ def cutout_islands(
564
cuts: List[pymongo.UpdateOne] = []
565
for stoke in stokeslist:
566
for beam_num in unique_beams_nums:
567
+ # Force the DataFrame type in the rare case of a single
568
+ # source / component in a beam
569
results = big_cutout.submit(
- sources=beam_source_df.loc[beam_num],
- comps=comps_df.loc[beam_source_df.loc[beam_num].Source_ID],
570
+ sources=pd.DataFrame(beam_source_df.loc[beam_num]),
571
+ comps=pd.DataFrame(
572
+ comps_df.loc[beam_source_df.loc[beam_num].Source_ID]
573
+ ),
574
beam_num=beam_num,
575
stoke=stoke,
576
datadir=directory,
0 commit comments