raytraverse.craytraverse

raytraverse helper functions written in c++

raytraverse.craytraverse.from_pdf(pdf: numpy.ndarray[numpy.float64], candidates: numpy.ndarray[numpy.uint32], bidx: numpy.ndarray[numpy.uint32], threshold: float, lb: float = 0.5, ub: float = 4.0) → tuple

helper function for draw.from_pdf

Parameters
  • pdf (np.array) – array of doubles with weights to check against threshold

  • candidates (np.array) – array of integers to write candidate indices to, should be atleast as large as pdf

  • bidx (np.array) – array of integers to write indices above upper bound, should be atleast as large as pdf

  • threshold (float) – value used to determine the number of indices to return

  • lb (float, optional) – values below threshold * lb will be excluded from candidates (lb must be in (0,1)

  • ub (float, optional) – values above threshold * ub will have indices written to bidx

Returns

  • ccnt (int) – the number of choices (use to slice end of candidates

  • bcnt (int) – the number of indices above the upper bound, use to slice bidx

  • nsampc (int) – the number of draws that should be selected from the candidates

cRtrace

class raytraverse.crenderer.cRtrace

Bases: pybind11_builtins.pybind11_object

call(self: raytraverse.crenderer.rtrace_c.cRtrace, arg0: str) → None
get_instance() → raytraverse.crenderer.rtrace_c.cRtrace
initialize(self: raytraverse.crenderer.rtrace_c.cRtrace, arg0: object) → None

pyargv11 (a sequence of strings) must be a member of calling instance and persist for duration of program

load_scene(self: raytraverse.crenderer.rtrace_c.cRtrace, arg0: str) → None
load_source(self: raytraverse.crenderer.rtrace_c.cRtrace, srcname: str, freesrc: int = - 1) → None
reset(*args) → None
reset_instance(*args) → None
update_ospec(self: raytraverse.crenderer.rtrace_c.cRtrace, vs: str, of: str = 'z') → None
version = 'RADIANCE 5.4a 2020-09-25 LBNL (..)'

cRcontrib

class raytraverse.crenderer.cRcontrib

Bases: pybind11_builtins.pybind11_object

call(self: raytraverse.crenderer.rcontrib_c.cRcontrib, arg0: str) → None
get_instance() → raytraverse.crenderer.rcontrib_c.cRcontrib
initialize(self: raytraverse.crenderer.rcontrib_c.cRcontrib, arg0: object) → None
load_scene(self: raytraverse.crenderer.rcontrib_c.cRcontrib, arg0: str) → None
reset(*args) → None
reset_instance(*args) → None
version = 'RADIANCE 5.4a 2020-09-25 LBNL (..)'