Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NanoComp/meep
/ check_positive
Function
check_positive
python/source.py:11–15 ·
view source on GitHub ↗
(prop, val)
Source
from the content-addressed store, hash-verified
9
10
11
def
check_positive(prop, val):
12
if
val > 0:
13
return
val
14
else
:
15
raise
ValueError(f
"{prop} must be positive. Got {val}"
)
16
17
18
class
Source:
Callers
3
R_asymptotic
Method · 0.90
eig_band
Method · 0.85
eig_tolerance
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected