DiamondLightSource / DiamondLightSource/coniql

Strange formatting when requesting string format of Waveforms

Open
#103 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
5
Forks
5
PR merge metrics
No merged PRs in 30d

Description

There's an odd behaviour when you request Waveform data in `string` format. It seems `numpy` adds "\n" characters into the returned array - it seems to be trying to format it for nice line wrapping.

We don't want this behaviour. We should investigate [this function](https://numpy.org/doc/stable/reference/generated/numpy.set_printoptions.html#numpy.set_printoptions) to find the correct way to suppress this feature - probably by changing the `linewidth` parameter

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.