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

Method add_light

pvtrace/device/lsc.py:260–278  ·  view source on GitHub ↗
(
        self,
        name,
        location,  # node location in parent
        rotation=None,  # node rotation in parent frame
        direction=None,  # direction delegate callable
        wavelength=None,  # wavelength delegate callable
        position=None,  # position delegate callable
    )

Source from the content-addressed store, hash-verified

258 )
259
260 def add_light(
261 self,
262 name,
263 location, # node location in parent
264 rotation=None, # node rotation in parent frame
265 direction=None, # direction delegate callable
266 wavelength=None, # wavelength delegate callable
267 position=None, # position delegate callable
268 ):
269 self._user_lights.append(
270 {
271 "name": name,
272 "location": location,
273 "rotation": rotation,
274 "direction": direction,
275 "wavelength": wavelength,
276 "position": position,
277 }
278 )
279
280 def add_solar_cell(self, facets):
281 if not isinstance(facets, (list, tuple, set)):

Callers 3

test1Function · 0.95
test2Function · 0.95
lscFunction · 0.95

Calls

no outgoing calls

Tested by 1

lscFunction · 0.76