|
@@ -35,7 +35,7 @@ from ChildProject.projects import ChildProject
|
|
|
|
|
|
from consts import ANNOTATION_TYPES
|
|
from consts import ANNOTATION_TYPES
|
|
from utils import get_raw_filename
|
|
from utils import get_raw_filename
|
|
-from custom_converters import AcousticConverter, ConversationsConverter # /!\ Do not remove this line
|
|
|
|
|
|
+from custom_converters import FilteredCsvConverter # /!\ Do not remove this line
|
|
|
|
|
|
logger = logging.getLogger(__name__)
|
|
logger = logging.getLogger(__name__)
|
|
pd.set_option('mode.chained_assignment', None) # Silences pandas' complaints
|
|
pd.set_option('mode.chained_assignment', None) # Silences pandas' complaints
|
|
@@ -157,7 +157,8 @@ def _build_raw_filename(input, annotation_format, filename='', extension=''):
|
|
|
|
|
|
def _import_annotation(project, am, annotation_type, annotation_file, recordings_from_annotation_file, recording):
|
|
def _import_annotation(project, am, annotation_type, annotation_file, recordings_from_annotation_file, recording):
|
|
annotation_set = annotation_type.lower()
|
|
annotation_set = annotation_type.lower()
|
|
- annotation_format = ANNOTATION_TYPES.asdict()[annotation_set.upper()][0]
|
|
|
|
|
|
+ annotation_format = ANNOTATION_TYPES.asdict()[annotation_set.upper()][0] \
|
|
|
|
+ if annotation_set not in ['conversations', 'acoustic'] else 'filtered_csv'
|
|
|
|
|
|
# Get recordings and set up df
|
|
# Get recordings and set up df
|
|
input = _get_recordings(project, annotation_set, annotation_format, recording)
|
|
input = _get_recordings(project, annotation_set, annotation_format, recording)
|