Skip to content

Commit

Permalink
fix: fix exported code formatting for UMAP (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbelak-dtml committed Sep 20, 2023
1 parent 693a616 commit a7fafbb
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions edvart/report_sections/umap.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,17 +189,15 @@ def add_cells(self, cells: List[Dict[str, Any]]) -> None:
n_neighbors={self.n_neighbors},
min_dist={self.min_dist},
metric='{self.metric}',
"""[
:-1
]
""".rstrip()
)
if self.columns is not None:
default_call += f" columns={self.columns},"
default_call += f"\n columns={self.columns},"
if self.color_col is not None:
default_call += f" color_col='{self.color_col}',"
default_call += f"\n color_col='{self.color_col}',"
if not self.interactive:
default_call += " interactive=False,"
default_call += ")"
default_call += "\n interactive=False,"
default_call += "\n)"

if self.verbosity <= Verbosity.MEDIUM:
code = default_call
Expand Down

0 comments on commit a7fafbb

Please sign in to comment.