Changeset 366f811 for python


Ignore:
Timestamp:
Sep 29, 2006, 4:57:54 PM (18 years ago)
Author:
Paul Brossier <piem@altern.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:
19bc85a
Parents:
d88ea06
Message:

add support for text file from stdin
add support for text file from stdin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/aubio/txtfile.py

    rd88ea06 r366f811  
    2323def read_datafile(filename,depth=-1):
    2424    """read list data from a text file (columns of float)"""
    25     fres = open(filename,'ro')
     25    if filename == '--' or filename == '-':
     26        import sys
     27        fres = sys.stdin
     28    else:
     29        fres = open(filename,'ro')
    2630    l = []
    2731    while 1:
Note: See TracChangeset for help on using the changeset viewer.