Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
41
def
rectangular_mask(X, Y):
42
return
(np.random.uniform(-X, X), np.random.uniform(-Y, Y), 0.0)
43
44
45
def
circular_mask(radius: float) -> Sequence[float]:
Callers
3
test1
Function · 0.90
test2
Function · 0.90
lsc
Function · 0.90
Calls
no outgoing calls
Tested by
1
lsc
Function · 0.72