Ignore:
Timestamp:
Sep 26, 2009, 1:42:52 AM (15 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
634d238
Parents:
55ed67a
Message:

python/aubio: use Gnuplot.Data with_ keywords, with is a reserved keyword in python 2.6 (debian #512622)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/aubio/task/notes.py

    r55ed67a r5f23f66  
    9595                import Gnuplot
    9696
    97                 oplots.append(Gnuplot.Data(now,freq,with='lines',
     97                oplots.append(Gnuplot.Data(now,freq,with_='lines',
    9898                        title=self.params.pitchmode))
    99                 oplots.append(Gnuplot.Data(now,ifreq,with='lines',
     99                oplots.append(Gnuplot.Data(now,ifreq,with_='lines',
    100100                        title=self.params.pitchmode))
    101101
     
    103103                for i in onset:
    104104                        temponsets.append(i*1000)
    105                 oplots.append(Gnuplot.Data(now,temponsets,with='impulses',
     105                oplots.append(Gnuplot.Data(now,temponsets,with_='impulses',
    106106                        title=self.params.pitchmode))
    107107
     
    117117                #timet,pitcht = self.gettruth()
    118118                #if timet and pitcht:
    119                 #       oplots = [Gnuplot.Data(timet,pitcht,with='lines',
     119                #       oplots = [Gnuplot.Data(timet,pitcht,with_='lines',
    120120                #               title='ground truth')] + oplots
    121121
    122                 t = Gnuplot.Data(0,0,with='impulses')
     122                t = Gnuplot.Data(0,0,with_='impulses')
    123123
    124124                g = gnuplot_init(outplot)
Note: See TracChangeset for help on using the changeset viewer.