summaryrefslogtreecommitdiff
path: root/tests/test_fileio.py
diff options
context:
space:
mode:
authorAnthony LaTorre <tlatorre9@gmail.com>2011-09-12 16:41:17 -0400
committerAnthony LaTorre <tlatorre9@gmail.com>2011-09-12 16:41:17 -0400
commit6f0703602270d03f4025221f13fee21aa842a863 (patch)
tree2d227fbc236e647e3d6c96113f1d6b93a4113793 /tests/test_fileio.py
parent4b5d9c633bd01ce8b2819d92eaf3e01d881fb996 (diff)
downloadchroma-6f0703602270d03f4025221f13fee21aa842a863.tar.gz
chroma-6f0703602270d03f4025221f13fee21aa842a863.tar.bz2
chroma-6f0703602270d03f4025221f13fee21aa842a863.zip
add chroma-sim script. get rid of GPU class; contexts should now be created with create_cuda_context().
Diffstat (limited to 'tests/test_fileio.py')
-rw-r--r--tests/test_fileio.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_fileio.py b/tests/test_fileio.py
index 2911976..3869a9f 100644
--- a/tests/test_fileio.py
+++ b/tests/test_fileio.py
@@ -5,7 +5,8 @@ import numpy as np
class TestFileIO(unittest.TestCase):
def test_file_write_and_read(self):
- ev = event.Event(1, event.Vertex('e-', (0,0,1), (1,0,0), (0,1,0), 15))
+ ev = event.Event(1, event.Vertex('e-', pos=(0,0,1), dir=(1,0,0),
+ ke=15.0, pol=(0,1,0)))
photons_beg = root.make_photon_with_arrays(1)
photons_beg.pos[0] = (1,2,3)