Skip to content

Commit 62297be

Browse files
committed
Refactor n_samples_js construction for improved readability
1 parent d7d6315 commit 62297be

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

datamapplot/selection_handlers.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,9 +1054,7 @@ def javascript(self):
10541054
# Build JS models object
10551055
models_js = ", ".join(f'"{p}": "{self.models[p]}"' for p in self.providers)
10561056
# Build JS n_samples object
1057-
n_samples_js = ", ".join(
1058-
f'"{p}": {self.n_samples[p]}' for p in self.providers
1059-
)
1057+
n_samples_js = ", ".join(f'"{p}": {self.n_samples[p]}' for p in self.providers)
10601058

10611059
# Escape the prompt template for JS — convert {keywords} / {samples}
10621060
# to JS template literal interpolation ${keywords} / ${samples}

0 commit comments

Comments
 (0)