From aa40a02070f7d2d24f62a75da8f870cf342ae8f7 Mon Sep 17 00:00:00 2001 From: Freddy Heppell Date: Thu, 13 Jun 2024 23:51:48 +0200 Subject: [PATCH] Test format failure --- bertopic/_bertopic.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/bertopic/_bertopic.py b/bertopic/_bertopic.py index 4a94d139..1a406a04 100644 --- a/bertopic/_bertopic.py +++ b/bertopic/_bertopic.py @@ -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 ]