mirror of
https://github.com/diodeinc/pcb.git
synced 2026-09-14 20:17:19 +08:00
e852477546
* Initial release * cargo-dist * build and test CI * update ubuntu workflow * fmt * ubuntu: install deps * clippy: 0.1.88 fixes * format * install clippy * Update README.md * Don't run cargo-dist on PRs
11 lines
327 B
Python
11 lines
327 B
Python
Amperes = enum("A")
|
|
Volts = enum("V")
|
|
Ohms = enum("Ohms")
|
|
Farads = enum("F")
|
|
Henries = enum("H")
|
|
Hertz = enum("Hz")
|
|
Seconds = enum("s")
|
|
|
|
Capacitance = record(value=float, unit=field(Farads, Farads("F")), tolerance=field(float, 0.1))
|
|
Resistance = record(value=float, unit=field(Ohms, Ohms("Ohms")), tolerance=field(float, 0.1))
|