Stethoscope MK2 forces numeric string formatting
Created by: sna-scourtney
Problem statement
When displaying string data, the Stethoscope MK2 node implicitly formats its input, so the displayed data may not accurately represent the data. A specific example is that strings suffixed with ".001" (or any decimal followed by a numeric value) will have a zero added left of the decimal by Stethoscope. Debug Print confirms this is not the actual data.
Steps to reproduce
- Use a Formula node to create a list of strings, e.g., "[['TestOne','StringTwo','ItemThree']]".
- Pass this list through a String Tools node to append the constant ".001".
- Use Stethoscope (in text mode) to display the test data before and after the String Tools node.
- Compare the Stethoscope output with Debug Print output.
Expected result
For the example above, Stethoscope should output "[[['TestOne','StringTwo','ItemThree']]]" from before the append and "[[['TestOne.001','StringTwo.001','ItemThree.001']]]" after the append. Debug Print should show identical outputs.
Actual result
Before the append, the result matches the expected for Stethoscope and Debug Print.
After the append, Stethoscope displays "[[['TestOne0.001','StringTwo0.001','ItemThree0.001']]]". Debug Print produces the expected output after the append.
Sverchok version
Self-updated via its embedded updater as of 2021-08-28.