miranov25 / RootInteractive

5 stars 12 forks source link

Spinner ranges formatting and step size --> #259 #264

Closed pl0xz0rz closed 1 year ago

pl0xz0rz commented 1 year ago

This PR adds two options for spinners -Relative step size -Formatting - uses the interface from https://numbrojs.com/format.htm -Also has detection for printf format strings

-TODO: Add support for %g printf style formatting

miranov25 commented 1 year ago

Formal test OK:

------------------------------------------------------------------------------------- JSON report --------------------------------------------------------------------------------------
report saved to: test6.json
====================================================================== 37 passed, 7 warnings in 79.63s (0:01:19) =======================================================================

real    1m21.101s
user    10m6.204s
sys     0m36.012s
miranov25 commented 1 year ago

Real use case also works well with default precission ... merging. Could you copy paste example syntax to the first comment? Partially fixing #259

miranov25 commented 1 year ago

Real use case tested with new spinner:

https://gitlab.cern.ch/alice-tpc-offline/alice-tpc-notes/-/blob/3daf47d0568e38d142f7049a62cd99c873db4cf3/JIRA/ATO-609/trackClusterDumpDraw.ipynb