MCPcopy Create free account
hub / github.com/danieljfarrell/pvtrace / rectangular_mask

Function rectangular_mask

pvtrace/light/light.py:41–42  ·  view source on GitHub ↗
(X, Y)

Source from the content-addressed store, hash-verified

39
40
41def rectangular_mask(X, Y):
42 return (np.random.uniform(-X, X), np.random.uniform(-Y, Y), 0.0)
43
44
45def circular_mask(radius: float) -> Sequence[float]:

Callers 3

test1Function · 0.90
test2Function · 0.90
lscFunction · 0.90

Calls

no outgoing calls

Tested by 1

lscFunction · 0.72