Skip to content

Commit

Permalink
autopep8
Browse files Browse the repository at this point in the history
  • Loading branch information
bvreede committed Nov 8, 2023
1 parent bf1bb60 commit 4edab6b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion sktalk/corpus/conversation.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@ def subconversation(self, index):
def until_next(self):
if len(self.utterances) != 2:
raise ValueError("Conversation must have 2 utterances")
return self.utterances[0].until(self.utterances[1])
return self.utterances[0].until(self.utterances[1])
1 change: 0 additions & 1 deletion sktalk/corpus/utterance.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,5 @@ def asdict(self):
def until(self, next_utt):
return next_utt.time[0] - self.time[1]


# TODO function: that prints summary of data, shows it to user
# TODO function: create a pandas data frame with the utterances
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ def convo_utts():
utterance1 = Utterance(
utterance="Hello",
participant="A",
time = [0, 1000]
time=[0, 1000]
)
utterance2 = Utterance(
utterance="Monde",
participant="B",
time = [900, 1800]
time=[900, 1800]
)
return [utterance1, utterance2]

Expand Down
2 changes: 1 addition & 1 deletion tests/corpus/test_conversation.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ def test_write_json(self, my_convo, tmp_path, user_path, expected_path):
assert my_convo_read == my_convo.asdict()

def test_until(self, my_convo):
assert my_convo.subconversation(0).until_next == -100
assert my_convo.subconversation(0).until_next == -100
2 changes: 1 addition & 1 deletion tests/corpus/test_utterance.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ def test_asdict(self):

def test_until(self, convo_utts):
utt1, utt2 = convo_utts
assert utt1.until(utt2) == -100
assert utt1.until(utt2) == -100

0 comments on commit 4edab6b

Please sign in to comment.