Ejemplo n.º 1
0
def main():
    import argparse
    parser = argparse.ArgumentParser(description='Data plotter')
    parser.add_argument('file', type=str, nargs=1)
    op = parser.parse_args()
    try:
        from cns.data.io import load_cohort
        cohort = load_cohort(0, op.file[0])
    except:
        from cns.data.ui import load_cohort_dialog
        cohort = load_cohort_dialog()
Ejemplo n.º 2
0
def main():
    import argparse
    parser = argparse.ArgumentParser(description='Experiment browser')
    parser.add_argument('file', type=str, nargs=1)
    op = parser.parse_args()
    try:
        from cns.data.io import load_cohort
        cohort = load_cohort(0, op.file[0])
    except:
        from cns.data.ui import load_cohort_dialog
        cohort = load_cohort_dialog()

    if cohort is not None:
        DataView(cohort).configure_traits()