Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SLiCAP/SLiCAP_python
/ _sign
Function
_sign
SLiCAP/schematic/component_item.py:28–29 ·
view source on GitHub ↗
(v: float)
Source
from the content-addressed store, hash-verified
26
27
28
def
_sign(v: float) -> float:
29
return
0.0
if
v == 0
else
(1.0
if
v > 0
else
-1.0)
30
31
32
# Pin-name labels (subcircuit blocks): the generated box has stubs of this length
Callers
1
draw_subckt_pin_names
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected