Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/danieljfarrell/pvtrace
/ bandgap
Function
bandgap
pvtrace/material/utils.py:54–55 ·
view source on GitHub ↗
(x, cutoff, alpha)
Source
from the content-addressed store, hash-verified
52
53
54
def
bandgap(x, cutoff, alpha):
55
return
(1 - np.heaviside(x - cutoff, 0.5)) * alpha
56
57
58
def
simple_convert_spectum(spec):
Callers
2
test_sample_range
Method · 0.90
test_step_sample
Method · 0.90
Calls
no outgoing calls
Tested by
2
test_sample_range
Method · 0.72
test_step_sample
Method · 0.72