summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2021-05-09cleanup testsAnthony LaTorre
2021-05-09fix test_io.py from previous commitAnthony LaTorre
2021-05-09update tests to work for python versions <2.7Anthony LaTorre
2021-05-09Speed up detector test. Still fails, though.Stan Seibert
2021-05-09Fix test_daq to use newer DAQ API.Stan Seibert
2021-05-09Skip ray intersection test until the reference data file can be updated.Stan Seibert
2021-05-09Reduce number of photons generated for reemission test to speed up testing ↵Stan Seibert
on lower performing GPUs.
2021-05-09Convert test script to one big unit test. Needs further refactoring.Stan Seibert
2021-05-09Fix bvh test. No longer a leaf attribute in node object.Stan Seibert
2021-05-09rotate() does not need to create a matrix. update test. remove superflous ↵Anthony LaTorre
function in last commit.
2021-05-09make bulk reemission isotropicAndy Mastbaum
2021-05-09more unit test fixesAndy Mastbaum
update remaining unit tests to build BVHs with ``loader.create_geometry_from_obj`` instead of the (removed) ``build`` method.
2021-05-09update unit test bvh buildingAndy Mastbaum
2021-05-09add simple bulk reemissionAndy Mastbaum
The ``Material`` struct now includes two new arrays: ``reemission_prob`` and ``reemission_cdf``. The former is sampled only when a photon is absorbed, and should be normalized accordingly. The latter defines the distribution from which the reemitted photon wavelength is drawn. This process changes the photon wavelength in place, and is not capable of producing multiple secondaries. It also does not enforce energy conservation; the reemission spectrum is not itself wavelength-dependent.
2021-05-09Redo node format to include number of children, rather than just leaf bit.Stan Seibert
2021-05-09Fix unit testStan Seibert
2021-05-09Simple BVH construction passing the "smoke test"Stan Seibert
2021-05-09Simple BVH generator using new infrastructureStan Seibert
2021-05-09Convert bvh module into a package directory.Stan Seibert
2021-05-09BVH and BVHLayer classes with unittests.Stan Seibert
These classes will be the data types used by the new BVH generation code.
2021-05-09Basic BVH cache. Further implementation requires creation of BVH class.Stan Seibert
2021-05-09Cache class for managing the geometry cache on disk.Stan Seibert
The storage format is changing relative to the old format, so all geometry files will be saved in the ~/.chroma/geo directory. For now, the format is just a simple pickle. We know this is not optimal for space or speed, but the Geometry class will be changing soon, and we can optimize further after that. This Cache class will also soon manage the separate BVH cache.
2021-05-09Fix the units in test_generator_photon.TestG4ParallelGenerator.test_off_centerStan Seibert
2021-05-09Replace all uses of numpy.count_nonzero() with chroma.tools.count_nonzero to ↵Stan Seibert
remove requirement to use numpy >= 1.6
2021-05-09Write t0 for primary vertex to ROOT file and fix unit test to catch this.Stan Seibert
2011-10-07Create a Detector class to hold information about the PMTs in aStan Seibert
geometry, like the mapping from solid IDs to channels, and the time and charge distributions. Detector is a subclass of Geometry, so that a Detector can be used wherever a Geometry is used. Only code (like the DAQ stuff) that needs to know how PMT solids map to channels should look for a Detector object. There is a corresponding GPUDetector class as well, with its own device side struct to hold PMT channel information. The GPU code now can sample an arbitrary time and charge PDF, but on the host side, the only interface exposed right now creates a Gaussian distribution.
2011-10-05Epic port of Chroma from units of meters/seconds/MeV toStan Seibert
millimeters/nanoseconds/MeV in order to match GEANT4, and also avoid huge discrepancies in magnitude caused by values like 10e-9 sec. Along the way, cleaned up a few things: * Switch the PI and SPEED_OF_LIGHT constants from double to single precision. This avoid some unnecessary double precision calculations in the GPU code. * Fixed a silly problem in the definition of the spherical spiral. Now the demo detector looks totally awesome. Also wrapped it in a black surface. Demo detector now has 10055 PMTs. * Updated the test_ray_intersection data file to reflect the new units. * Fix a missing import in chroma.gpu.tools
2011-10-05Add tlatorre/histogram as a subrepository so that we can use it in the ↵Stan Seibert
Rayleigh scattering unit test
2011-09-29Fix unittest to use new location of vacuum material.Stan Seibert
2011-09-29New demo detector for Chroma that is not dependent on any internal ↵Stan Seibert
experiment information.
2011-09-17Module for fitting and evaluating multi-dimensional parabolasStan Seibert
2011-09-16Rename chroma.fileio to chroma.ioStan Seibert
2011-09-16Rewrite test_sample_cdf to use a unittest.TestCase class so that the GPU ↵Stan Seibert
context can be setup and torn down correctly around the test.
2011-09-16Modify test_ray_intersection to use __file__ to file location of test standardStan Seibert
2011-09-16Add a srcdir attribute to the chroma.cuda module. This consolidates the ↵Stan Seibert
calculation of the path to the CUDA source code in one place.
2011-09-16Move CUDA source inside chroma package, rename tests directory to testStan Seibert