MCPcopy 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
54def bandgap(x, cutoff, alpha):
55 return (1 - np.heaviside(x - cutoff, 0.5)) * alpha
56
57
58def simple_convert_spectum(spec):

Callers 2

test_sample_rangeMethod · 0.90
test_step_sampleMethod · 0.90

Calls

no outgoing calls

Tested by 2

test_sample_rangeMethod · 0.72
test_step_sampleMethod · 0.72