MCPcopy 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
11def 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
18class Source:

Callers 3

R_asymptoticMethod · 0.90
eig_bandMethod · 0.85
eig_toleranceMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected