Core Python API
Core package definitions and shared settings.
Formatting settings are mutable Python attributes. Create a
StringFormatType object and assign the fields you want to change:
from scinumtools3.core import StringFormatType
format = StringFormatType()
format.specifier = "f"
format.valuePrecision = 3
format.uncertaintyPrecision = 2
format.paddingZeros = True
The configured object can then be passed to formatting functions and methods that accept a format argument.
- class scinumtools3.core.StringFormatType
Formatting options for numerical and string output.
- property paddingSize
Minimum padded field size.
- property paddingZeros
Whether to pad values with zeros.
- property specifier
Numeric format specifier.
- property stringQuotes
Whether string values include quotes.
- property thresholdScientific
Threshold for scientific notation.
- property uncertaintyPrecision
Displayed uncertainty precision.
- property valuePrecision
Displayed value precision.
- class scinumtools3.core.DataType
Data types used by the SNT value and node layers.
Members:
None
Boolean
String
Character
Integer8
Integer16
Integer32
Integer64
IntegerX
Integer8_U
Integer16_U
Integer32_U
Integer64_U
Float32
Float64
Float128
FloatX
Integer
Integer_S
Integer_U
Float
- DataType.name -> str