--
You received this message because you are subscribed to the Google Groups "ACQ4" group.
To unsubscribe from this group and stop receiving emails from it, send an email to acq4+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/acq4/CAFVjdWLndh6tzup6awrxdPgo3_J3i9hP4Zsgday2Tb_k6B7JtA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/acq4/CACZXET_-DM7v9KA6VWrSfzmvfY8s3UUZd-AmFj-ShYYpKD3oLw%40mail.gmail.com.
Great. Thanks.I built the positionEncoderTaskGui as subclass of TaskGui and managed to display angle and speed in ChannelWidgets. The calculation of angle and speed is currently done in handleResults() .
The implementation needs further improvements. At this point, I have two follow-up questions :- How I can extract 'numpts' and 'rate' from the 'results' metaArray which is the input argument to handleResults?
- And how can I save the angle and speed arrays?
Also, how is the view in the Data Manager defined?
On Mon, Mar 27, 2017 at 8:03 AM, Michael Graupner <graupner...@gmail.com> wrote:Great. Thanks.I built the positionEncoderTaskGui as subclass of TaskGui and managed to display angle and speed in ChannelWidgets. The calculation of angle and speed is currently done in handleResults() .Looks great!
The implementation needs further improvements. At this point, I have two follow-up questions :- How I can extract 'numpts' and 'rate' from the 'results' metaArray which is the input argument to handleResults?The way you are doing it here looks correct to me:- And how can I save the angle and speed arrays?Look at the default implementation of DeviceTask.storeResult() in devices/Device.py. Your options are:1) Combine the angle and speed data into the same MetaArray that is returned by PositionEncoderTask.getResult(); this will be stored as a single MetaArray file2) Have PositionEncoderTask.getResult() return a dict containing multiple MetaArrays; in this case a directory will be created containing one MetaArray for each value in the dictionary3) Reimplement PositionEncoderTask.storeResult() to handle any other behavior you needIt looks like you have done both (1) and (3); probably you do not need to reimplement storeResult() in this case.
Also, how is the view in the Data Manager defined?This is a little more complicated. If you really want to be able to customize the way DataManager displays this data, then let me know how you think it should behave differently, and I'll see if I can help.However, I would encourage you to consider letting the DataManager behave as-is, and implementing deeper analysis of this data elsewhere.
Luke
--
You received this message because you are subscribed to the Google Groups "ACQ4" group.
To unsubscribe from this group and stop receiving emails from it, send an email to acq4+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/acq4/CACZXET-uXWZ97AeBPMw2AxfW4T0i%2B1aOxgNCNWDR%3D95sdyj_GA%40mail.gmail.com.
Look at the default implementation of DeviceTask.storeResult() in devices/Device.py. Your options are:1) Combine the angle and speed data into the same MetaArray that is returned by PositionEncoderTask.getResult(); this will be stored as a single MetaArray file2) Have PositionEncoderTask.getResult() return a dict containing multiple MetaArrays; in this case a directory will be created containing one MetaArray for each value in the dictionary3) Reimplement PositionEncoderTask.storeResult() to handle any other behavior you needIt looks like you have done both (1) and (3); probably you do not need to reimplement storeResult() in this case.Indeed, I managed to add the arrays including infos to the same MetaArray. The stored results and the depiction in DataManager is very satisfactory so.In case I would like to store data with different lengths, I presume I have to create a new MetaArray and store it alongside the existing one (your option 2). How would such an implementation look like?