Skip to content

Commit

Permalink
eaf-builder remove unused parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
LoannPeurey committed Mar 19, 2024
1 parent b03ed18 commit 54ccf5a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ChildProject/pipelines/eafbuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ def create_eaf(
eaf_type: str,
contxt_on: int,
contxt_off: int,
template: str,
speech_segments: pd.DataFrame = None,
imported_set: str = None,
imported_format: str = None,
Expand Down Expand Up @@ -70,7 +69,7 @@ def create_eaf(
speaker_id = segment["speaker_id"]
elif "speaker_type" in segment:
speaker_id = segment["speaker_type"]
if pd.isnull(speaker_id) and imported_format in FORMAT_SPEECH : speaker_id = "SPEECH" #replace nan with SPEECH for some formats
if pd.isnull(speaker_id) and imported_format in FORMAT_SPEECH: speaker_id = "SPEECH" #replace nan with SPEECH for some formats

if speaker_id is None:
continue
Expand Down Expand Up @@ -230,7 +229,6 @@ def run(
eaf_type,
context_onset,
context_offset,
template,
speech_segments,
imported_set,
imported_format,
Expand Down

0 comments on commit 54ccf5a

Please sign in to comment.