Ignore:
Timestamp:
Apr 10, 2013, 7:28:51 AM (11 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:
8c3f717
Parents:
e987c05
Message:

python/tests/utils.py: add array_from_yaml_file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/tests/utils.py

    re987c05 r2693655  
    1212    datadir = os.path.join(os.path.dirname(__file__), rel_dir)
    1313    return glob.glob(os.path.join(datadir,'*.*'))
     14
     15def array_from_yaml_file(filename):
     16    import yaml
     17    f = open(filename)
     18    yaml_data = yaml.safe_load(f)
     19    f.close()
     20    return yaml_data
Note: See TracChangeset for help on using the changeset viewer.