Skip to content

Commit cb47b56

Browse files
committed
Add base case testing scenario
resolves #12
1 parent 0cd0827 commit cb47b56

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/test_fdmt.py

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
'''test'''
2+
3+
import numpy as np
4+
from fdmt.cpu_fdmt import FDMT
5+
6+
def test_fdmt():
7+
# Random data with 1024 frequency channels and
8+
# 40960 time samples
9+
data = np.random.normal(size=(1024, 40960))
10+
fdmt = FDMT() # outputting 2048 time series, the default
11+
12+
# code call
13+
time_dt_series = fdmt.fdmt(data, retDMT=True)
14+
15+
# Done. time_dt_series is an array of 2048 dedispersed time series.

0 commit comments

Comments
 (0)