Skip to content

Commit

Permalink
fix channel power summary retrieval
Browse files Browse the repository at this point in the history
  • Loading branch information
aromanielloNTIA committed Apr 27, 2023
1 parent 518c2e8 commit 8224799
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions scos_actions/actions/acquire_sea_data_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,10 +242,9 @@ def get_td_power_results(
yield td_result[0] # Max detector result
yield td_result[1] # Mean detector result

# Get channel summary statistics as 0-dim NumPy arrays
# Get channel summary statistics as floats
# Order is max-of-max, median-of-mean
for a in td_channel_result:
yield np.array(a)
yield from td_channel_result
del td_result


Expand Down Expand Up @@ -461,7 +460,7 @@ def __call__(self, schedule_entry, task_id):
for j, data_ref in enumerate(channel_data_refs):
# Now block until the data is ready
data = ray.get(data_ref)
if j == 0:
if j == 1:
# Power-vs-Time results
channel_data.extend(data[:2])
max_max_ch_pwrs.append(DATA_TYPE(data[2]))
Expand Down

0 comments on commit 8224799

Please sign in to comment.