Skip to content

Commit e0df705

Browse files
committed
add test for photons
1 parent 35704d0 commit e0df705

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

tests/test_photons.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from luminet.black_hole import BlackHole
2+
3+
def test_photons(n=1000):
4+
"""
5+
Test if black hole can sample individual photons
6+
"""
7+
8+
bh = BlackHole(incl=1.3)
9+
photons, ghost_photons = bh.sample_photons(n)
10+
return photons, ghost_photons

0 commit comments

Comments
 (0)