kopia lustrzana https://github.com/NanoVNA-Saver/nanovna-saver
fixed default for SITools::Value
rodzic
8bc452d48f
commit
36bff6a09d
|
@ -63,7 +63,7 @@ class Format(NamedTuple):
|
|||
class Value:
|
||||
CTX = Context(prec=60, Emin=-27, Emax=27)
|
||||
|
||||
def __init__(self, value: Real, unit: str = "", fmt=Format()):
|
||||
def __init__(self, value: Real = Decimal(0), unit: str = "", fmt=Format()):
|
||||
assert 1 <= fmt.max_nr_digits <= 30
|
||||
assert -8 <= fmt.min_offset <= fmt.max_offset <= 8
|
||||
assert fmt.parse_clamp_min < fmt.parse_clamp_max
|
||||
|
|
Ładowanie…
Reference in New Issue