-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: move default laoyut to layouts module
- Loading branch information
1 parent
111e8bc
commit 327849c
Showing
4 changed files
with
33 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
from .default import default | ||
from .model_debug import debug_classification | ||
from .model_compare import compare_classification | ||
|
||
__all__ = ["debug_classification", "compare_classification"] | ||
__all__ = ["default", "debug_classification", "compare_classification"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
from renumics.spotlight.layout import ( | ||
histogram, | ||
inspector, | ||
layout, | ||
scatterplot, | ||
similaritymap, | ||
split, | ||
tab, | ||
table, | ||
) | ||
from renumics.spotlight.layout.nodes import Layout | ||
|
||
|
||
def default() -> Layout: | ||
""" | ||
Default layout for spotlight. | ||
""" | ||
|
||
return layout( | ||
split( | ||
tab(table(), weight=60), | ||
tab(similaritymap(), scatterplot(), histogram(), weight=40), | ||
weight=60, | ||
), | ||
tab(inspector(), weight=40), | ||
) |