コード例 #1
0
def test_import_fasst():
    annot = create_annotation(annot_fasst_export_file,
                              from_fasst=annot_fasst0_path)
    assert annot.time_in_stage('NREM3') == 2970

    annot = create_annotation(annot_fasst_export_file,
                              from_fasst=annot_fasst1_path)
    assert annot.time_in_stage('REM') == 1200
コード例 #2
0
def test_import_fasst_error():
    with raises(UnrecognizedFormat):
        create_annotation(annot_fasst_export_file, from_fasst=ns2_file)