parametertree shows scientific notation in 0.10.0

270 views
Skip to first unread message

Thomas Grübler

unread,
Nov 11, 2016, 11:30:58 AM11/11/16
to pyqtgraph
Hello,
my parametertree shows its values in scientific notation after an update from 0.9 to 0.10.0 on python 3.4, windows/anaconda.

A simple
self.addChild({'name': 'X', 'type': 'int', 'value': 3001})
displays 3e+03 instead of 3001 after the update. The biggest problem for me is that the last digit cannot be seen or edited anymore even by clicking on the entry.
Is there a way to change it back?

Thanks,
Thomas

Luke Campagnola

unread,
Nov 12, 2016, 11:12:16 AM11/12/16
to pyqt...@googlegroups.com
Thanks Thomas, I will try to get this fixed as soon as possible. As a workaround, you can add 'decimals': 6 to the parameter specification; this should increase the precision of the display.
There are currently no unit tests covering pg.SpinBox. I'll be adding some as I fix this bug; feel free to contribute your own if you'd like (this ensures your use cases are covered in the future).


Luke

--
You received this message because you are subscribed to the Google Groups "pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyqtgraph+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/94f2bbd8-bbc3-4834-b0d4-e2639bf95433%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Thomas Grübler

unread,
Nov 14, 2016, 3:10:56 AM11/14/16
to pyqtgraph
Dear Luke,
'decimals': 6 fixes the problem, thanks! 
Thomas


Am Samstag, 12. November 2016 17:12:16 UTC+1 schrieb Luke Campagnola:
Thanks Thomas, I will try to get this fixed as soon as possible. As a workaround, you can add 'decimals': 6 to the parameter specification; this should increase the precision of the display.
There are currently no unit tests covering pg.SpinBox. I'll be adding some as I fix this bug; feel free to contribute your own if you'd like (this ensures your use cases are covered in the future).


Luke
On Fri, Nov 11, 2016 at 8:30 AM, Thomas Grübler <thomas....@gmail.com> wrote:
Hello,
my parametertree shows its values in scientific notation after an update from 0.9 to 0.10.0 on python 3.4, windows/anaconda.

A simple
self.addChild({'name': 'X', 'type': 'int', 'value': 3001})
displays 3e+03 instead of 3001 after the update. The biggest problem for me is that the last digit cannot be seen or edited anymore even by clicking on the entry.
Is there a way to change it back?

Thanks,
Thomas

--
You received this message because you are subscribed to the Google Groups "pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyqtgraph+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages