Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
EdenWuyifan committed Jun 10, 2024
1 parent b0064d5 commit f973bfe
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions bdikit/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,19 @@ def reduce_scope(self):
self.scope_manager = ScopeReducingManager(self.dataset, self.global_table)
self.reduced_scope = self.scope_manager.reduce()
return self.scope_manager.get_heatmap()

def update_scope(self, reduced_scope=None):
if self.scope_manager is None:
logger.warning("Scope manager not initialized. Please run reduce_scope() first.")
logger.warning(
"Scope manager not initialized. Please run reduce_scope() first."
)
return

if reduced_scope is None:
self.reduced_scope = self.scope_manager.visualization_manager.reduced_scope
else:
self.reduced_scope = reduced_scope

return self.reduced_scope

def map_columns(self, algorithm="SimFloodAlgorithm"):
Expand Down

0 comments on commit f973bfe

Please sign in to comment.