~strainanalyser/strainanalyser/trunk

« back to all changes in this revision

Viewing changes to strainanalyser/datahandling.py

  • Committer: Malcolm Scott
  • Date: 2010-10-17 23:37:18 UTC
  • Revision ID: launchpad@malc.org.uk-20101017233718-uqpcfusyn1t4tblg
RemoveĀ obsoleteĀ TODO

Show diffs side-by-side

added added

removed removed

Lines of Context:
320
320
                                )
321
321
 
322
322
                        # shift
323
 
                        # TODO: this is better than the shift code above; the code above may need replacing with this
324
323
                        shift = numpy.argmax(correlation) - len(correlation)/2
325
324
                        if shift >= 0:
326
325
                                # shunt the data along by adding extra masked data points (and then trim the far end)