summaryrefslogtreecommitdiff
path: root/chroma
AgeCommit message (Collapse)Author
2021-05-09fix sign in rayleigh scattering codeHEADmastertlatorre
This fix was found by Ako Jamil. Thanks!
2021-05-09fix torus function to use radius argumentAnthony LaTorre
2021-05-09SetParticleEnergy() requires kinetic energy only, not total energy.Kevin Wells
See; https://www-zeuthen.desy.de/geant4/geant4.9.3.b01/classG4ParticleGun.html
2021-05-09wrap cuda.memcpy_htod args in np.asarraymastbaum
Fixes "TypeError: 'numpy.int64' does not have the buffer interface" error.
2021-05-09remove project from __init__Anthony LaTorre
2021-05-09remove project.pyAnthony LaTorre
2021-05-09move from_film function into toolsAnthony LaTorre
2021-05-09cleanup testsAnthony LaTorre
2021-05-09fix ACLiC problem with rootAnthony LaTorre
2021-05-09move map_to_color import inside function because it requires matplotlibAnthony LaTorre
2021-05-09Set dtype explicitly when making morton codesStan Seibert
2021-05-09Force merging of BVH nodes to always reduce the number of parent nodes in ↵Stan Seibert
order to ensure the process terminates.
2021-05-09Cast position and direction parameters to appropriately typed ndarrays.Stan Seibert
2021-05-09Fix warning about redefinition of INFINITY.Stan Seibert
2021-05-09Temporary kludge to correctly handle a Photons object passed into simulate.Stan Seibert
2021-05-09Assign to a GPU array slice with a numpy array of length 1 to silenceStan Seibert
a warning from PyCUDA about setting array with different stride.
2021-05-09Add virtual destructors to ROOT data classes to silence compiler warnings.Stan Seibert
2021-05-09Do not automatically initialize pycuda before forking the camera process.Stan Seibert
This causes weird segfaults on Macs, and is probably a source of random crashing on other processes. Also call pygame.init() explicitly in the new process for good measure.
2021-05-09Fix bug in intersection calculation that prevented axis-aligned photons from ↵Stan Seibert
hitting triangles.
2021-05-09Add method to show total charge in eventStan Seibert
2021-05-09Mark one of the propagate functions as __noinline__ to work around bug where ↵Stan Seibert
cicc hangs during compilation.
2021-05-09Remove unused function to read a word bypassing L1 cache. Seems to be ↵Stan Seibert
incorrect asm syntax.
2021-05-09woops. accidentally left in some print statements in camera.pyAnthony LaTorre
2021-05-09no channels was resulting in a seg fault. for now if there are no channels, ↵Anthony LaTorre
just set the python event channels to None.
2021-05-09add get_triangle_centers() method to mesh; this method is useful for ↵Anthony LaTorre
selecting certain sections of a mesh to apply surfaces to. solids are by default partially transparent.
2021-05-09make sure arguments to Photon have the correct dtype.Anthony LaTorre
2021-05-09add ability to toggle between viewing initial and final photon positions. ↵Anthony LaTorre
try to use Image module to save screenshot if pygame screenshot doesn't work.
2021-05-09oops. fix interpolation for a uniformly sampled functionAnthony LaTorre
2021-05-09add gpu interpolation functions. fix sample_cdf functions which were ↵Anthony LaTorre
interpolating on the wrong side of the interval between two points.
2021-05-09add abs() function for float3sAnthony LaTorre
2021-05-09set default max_steps to 100. this seems like a reasonable number.Anthony LaTorre
2021-05-09add __getitem__ to Photon classAnthony LaTorre
2021-05-09rotate() does not need to create a matrix. update test. remove superflous ↵Anthony LaTorre
function in last commit.
2021-05-09add norm() function to get the length of vectors and shorten normalize() ↵Anthony LaTorre
function.
2021-05-09add get_perp() to return an arbitrary perpendicular vector and a new ↵Anthony LaTorre
rotate() function which is faster and can handle different angles for each vector.
2021-05-09add get_bounds() method to BVHLayerSlice so that you can now view your bvh's ↵Anthony LaTorre
by pressing page up/page down again
2021-05-09positions returned by from_film() should be located at the focal point, not ↵Anthony LaTorre
the actual pixel locations
2021-05-09Use a wider range of standard wavelengths to accomodate UV photons, like in ↵Stan Seibert
liquid argon.
2021-05-09Remove some placeholder DAQ properties.Stan Seibert
2021-05-09Set an arbitrary time PDF for a Detector.Stan Seibert
2021-05-09Switch from hsv to jet_r color map because hsv has red at both ends, andStan Seibert
that is kind of confusion. jet_r starts from red and goes to blue.
2021-05-09Make the photon reduction used in the event display mode dynamicallyStan Seibert
calculated to give about 10,000 initial photon vertices in the event. This is required to deal with events with very large numbers of photons, like scintillation events.
2021-05-09Add a Photons.reduced() method that returns a new Photons object withStan Seibert
a random subset of photons based on the reduction_factor given.
2021-05-09Minor change to allow eval_pdf to take a generator that emitsStan Seibert
chroma.event.Photons objects to compute PDF values rather than a generator of Event objects.
2021-05-09Put triangles and vertices back onto the GPU if there is sufficient room.Stan Seibert
This is an optimization that is helpful for smaller detectors, even if giant water Cherenkov detectors cannot take advantage of it. Modified Mapped() helper function to pass through GPU arrays, which makes it much easier to flip between arrays on the CPU and the GPU.
2021-05-09Diffuse reflection is lambertian, not isotropic.Stan Seibert
2021-05-09Add a function to create a Mesh from the coordinates for a convex polygon.Stan Seibert
2021-05-09Add the reemission probability and CDF arrays on the GPU to the ↵Stan Seibert
material_data list to prevent them from being garbage collected.
2021-05-09Photons tagged with NAN_ABORT should not continue to be propagated.Stan Seibert
2021-05-09Change surface re-emission simulation to not use the diffuseStan Seibert
reflection function. This allows the photon to reemit on either side of the surface and also removes a spurious diffuse reflection bit in the history.