Skip to content

Commit

Permalink
Test format failure
Browse files Browse the repository at this point in the history
  • Loading branch information
freddyheppell committed Jun 13, 2024
1 parent 8a5fd25 commit aa40a02
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions bertopic/_bertopic.py
Original file line number Diff line number Diff line change
Expand Up @@ -880,15 +880,14 @@ def topics_over_time(
# matrix at timestamp t-1
if evolution_tuning and index != 0:
current_topics = sorted(list(documents_per_topic.Topic.values))
overlapping_topics = sorted(
list(set(previous_topics).intersection(set(current_topics))) # noqa: F821
)
overlapping_topics = sorted(list(set(previous_topics).intersection(set(current_topics))) # noqa: F821
)

current_overlap_idx = [
current_topics.index(topic) for topic in overlapping_topics
]
previous_overlap_idx = [
previous_topics.index(topic) # noqa: F821
previous_topics.index(topic) # noqa: F821
for topic in overlapping_topics
]

Expand Down

0 comments on commit aa40a02

Please sign in to comment.