Using pip:
pip install -U git+https://github.com/pravirkr/dmt
from dmt.libdmt import FDMT
frb = np.ones((nchans, nsamps), dtype=np.float32)
thefdmt = FDMT(f_min, f_max, nchans, nsamps, tsamp, dt_max=dt_max, dt_min=0, dt_step=1)
dmt_transform = thefdmt.execute(frb.astype(np.float32))
f_min = 704.0, f_max = 1216.0, nchans = 4096, tsamp = 0.00008192, dt_max = 2048, nsamps = n;
nthreads = 1, 8;