spaulaus / paass

Pixie Acquisition and Analysis Software Suite - maintained by Project Science
GNU General Public License v3.0
0 stars 2 forks source link

get_traces does not work as expected in Poll2 #37

Open spaulaus opened 6 years ago

spaulaus commented 6 years ago

Expected Behavior

The trace length used by get_traces reflects the actual trace length defined in the modules. get_traces doesn't accept a channel parameter.

Current Behavior

The trace length is fixed to be RANDOMINDICES_LENGTH, see here. According the the API its only used for the tau finder. This could create problems if they were to change that parameter and we didn't realize it.

get_traces pulls traces for an entire module, yet requires that we provide it with a channel number.

Context

Came across this while working on the emulated interface. They could cause confusion for users.

Possible Solution (optional)

For the first part, we should implement the same as what XIA uses in the API's Pixie16ReadSglChanADCTrace function. E.g. Use the TRACE_LENGTH channel parameter.

Second part is simply to remove the channel requirement from the command.

Acceptance Criteria

Bug Report

Steps to Reproduce

  1. ./poll2
  2. POLL2 $ get_traces 0 0 0

Screenshots

image