Skip to content

Commit

Permalink
moved dedisp/resample to debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
caseyjlaw committed Oct 29, 2015
1 parent d8bd9cd commit e25237e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rtpipe/RT.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ def search(d, data_mem, u_mem, v_mem, w_mem):
blranges = [(d['nbl'] * t/d['nthread'], d['nbl']*(t+1)/d['nthread']) for t in range(d['nthread'])]
for dmind in xrange(len(d['dmarr'])):
dm = d['dmarr'][dmind]
logger.info('Dedispersing for %d' % dm,)
logger.debug('Dedispersing for %d' % dm,)
dedisppart = partial(correct_dm, d, dm) # moves in fresh data
dedispresults = resamppool.map(dedisppart, blranges)

Expand All @@ -379,7 +379,7 @@ def search(d, data_mem, u_mem, v_mem, w_mem):
# dedispersion in shared memory, mapped over baselines
# set partial functions for pool.map

logger.info('Resampling for %d' % dt,)
logger.debug('Resampling for %d' % dt,)
resample = dt/dtlast
resamppart = partial(correct_dt, d, resample) # corrects in place
resampresults = resamppool.map(resamppart, blranges)
Expand Down

0 comments on commit e25237e

Please sign in to comment.