driplineorg / driplineorg/dripline-python

FormatEntity returns string for SCPI command. Would like it to return double array.

Open
#102 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
3
Forks
6
PR merge metrics
No merged PRs in 30d

Description

I have configured a node in my dripline `runtime-config` like so
```
- name: na_s21_iq_data
module: FormatEntity
get_str: ":CALC:PAR:DEF S21; :CALC1:DATA:SDAT?"
calibration: "[{}]"
log_routing_key_prefix: 'na_sensor_double_precision_arr'
log_interval: 30
```
The raw value is in a string array, and this is really problematic for inserting into my database. Is there a way to have this FormatEntity log a double array instead of a text array?

I looked into the source code for FormatEntity.
https://github.com/driplineorg/dripline-python/blob/master/dripline/implementations/entity_endpoints.py#L90
I don't understand what` get_reply_float `does.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.