Skip to content

Commit

Permalink
Merge pull request #173 from vocalpy/remove-csv-format
Browse files Browse the repository at this point in the history
Remove csv format
  • Loading branch information
NickleDave committed May 15, 2022
2 parents 6c1ed5e + 6d2ee39 commit 80fd1ee
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 24 deletions.
2 changes: 0 additions & 2 deletions src/crowsetta/formats/seq/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from .birdsongrec import BirdsongRec
from .csv import Csv
from .generic import GenericSeq
from .notmat import NotMat
from .simple import SimpleSeq
Expand All @@ -9,7 +8,6 @@

__all__ = [
'BirdsongRec',
'Csv',
'GenericSeq',
'NotMat',
'SimpleSeq',
Expand Down
9 changes: 0 additions & 9 deletions src/crowsetta/formats/seq/csv.py

This file was deleted.

17 changes: 4 additions & 13 deletions tests/test_transcriber.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,6 @@ def test_birdsongrec_from_file(birdsong_rec_xml_file,
for annot in annots])


def test_csv_from_file(birdsongrec_as_generic_seq_csv):
with pytest.warns(FutureWarning):
scribe = crowsetta.Transcriber(format='csv')
generic = scribe.from_file(birdsongrec_as_generic_seq_csv)
assert isinstance(generic, crowsetta.formats.seq.GenericSeq)
annots = generic.to_annot()
assert isinstance(annots, list)
assert all([isinstance(annot, crowsetta.Annotation)
for annot in annots])


def test_generic_seq_from_file(birdsongrec_as_generic_seq_csv):
scribe = crowsetta.Transcriber(format='generic-seq')
generic = scribe.from_file(birdsongrec_as_generic_seq_csv)
Expand Down Expand Up @@ -66,10 +55,12 @@ def test_yarden_from_file(yarden_annot_mat):
'format',
[
'birdsong-recognition-dataset',
'csv',
'notmat',
'generic-seq',
'notmat',
'raven',
'simple-seq',
'textgrid',
'timit',
'yarden'
]
)
Expand Down

0 comments on commit 80fd1ee

Please sign in to comment.