# Path: msaf/input_output.py
# class FileStruct:
#     def __init__(self, audio_file):
#     def _get_dataset_file(self, dir, ext):
#     def __repr__(self):
# def read_estimations(est_file, boundaries_id, labels_id=None, **params):
# def read_references(audio_path, annotator_id=0):
# def align_times(times, frames):
# def find_estimation(jam, boundaries_id, labels_id, params):
# def save_estimations(file_struct, times, labels, boundaries_id, labels_id,
#                      **params):
# def get_all_boundary_algorithms():
# def get_all_label_algorithms():
# def get_configuration(feature, annot_beats, framesync, boundaries_id,
#                       labels_id):
# def get_dataset_files(in_path):
# def read_hier_references(jams_file, annotation_id=0, exclude_levels=[]):
# def get_duration(features_file):
# def write_mirex(times, labels, out_file):


import argparse
import logging
import time
import pandas as pd
import numpy as np
import msaf
from msaf import input_output as io
    parser = argparse.ArgumentParser(
        description="Runs the speficied algorithm(s) on the MSAF "
        "formatted dataset.",
        formatter_class=argparse.ArgumentDefaultsHelpFormatter)
    parser.add_argument("in_path",
                        action="store",
                        help="Input dataset")
    parser.add_argument("-f",
                        action="store",
                        dest="feature",
                        default="pcp",
                        type=str,
                        help="Type of features",
                        choices=["pcp", "tonnetz", "mfcc", "cqt", "tempogram"])
    parser.add_argument("-b",
                        action="store_true",
                        dest="annot_beats",
                        help="Use annotated beats",
                        default=False)
    parser.add_argument("-fs",
                        action="store_true",
                        dest="framesync",
                        help="Use frame-synchronous features",
                        default=False)
    parser.add_argument("-bid",
                        action="store",
                        help="Boundary algorithm identifier",
                        dest="boundaries_id",
                        default="gt",
                        choices=["gt"] +

# Path: msaf/input_output.py
# class FileStruct:
#     def __init__(self, audio_file):
#     def _get_dataset_file(self, dir, ext):
#     def __repr__(self):
# def read_estimations(est_file, boundaries_id, labels_id=None, **params):
# def read_references(audio_path, annotator_id=0):
# def align_times(times, frames):
# def find_estimation(jam, boundaries_id, labels_id, params):
# def save_estimations(file_struct, times, labels, boundaries_id, labels_id,
#                      **params):
# def get_all_boundary_algorithms():
# def get_all_label_algorithms():
# def get_configuration(feature, annot_beats, framesync, boundaries_id,
#                       labels_id):
# def get_dataset_files(in_path):
# def read_hier_references(jams_file, annotation_id=0, exclude_levels=[]):
# def get_duration(features_file):
# def write_mirex(times, labels, out_file):


# Path: examples/run_sweep.py
import argparse
import logging
import time
import pandas as pd
import numpy as np
import msaf
from msaf import input_output as io

    parser = argparse.ArgumentParser(
        description="Runs the speficied algorithm(s) on the MSAF "
        "formatted dataset.",
        formatter_class=argparse.ArgumentDefaultsHelpFormatter)
    parser.add_argument("in_path",
                        action="store",
                        help="Input dataset")
    parser.add_argument("-f",
                        action="store",
                        dest="feature",
                        default="pcp",
                        type=str,
                        help="Type of features",
                        choices=["pcp", "tonnetz", "mfcc", "cqt", "tempogram"])
    parser.add_argument("-b",
                        action="store_true",
                        dest="annot_beats",
                        help="Use annotated beats",
                        default=False)
    parser.add_argument("-fs",
                        action="store_true",
                        dest="framesync",
                        help="Use frame-synchronous features",
                        default=False)
    parser.add_argument("-bid",
                        action="store",
                        help="Boundary algorithm identifier",
                        dest="boundaries_id",
                        default="gt",
                        choices=["gt"] +

                        io.get_all_boundary_algorithms())