-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'plots/sankey' into visualization - early parts
* plots/sankey: (28 commits) diffinsights_web: File with Sankey data -> file without transition works diffinsights_web: Improve message when Sankey diagram is not possible diffinsigths_web: Remove leftover debug-print, fix unlikely case diffinsights_web: Fix SankeyPlot not refreshing on file change diffinsights_web: Fix LinesStatsDataStore not refreshing on file change diffinsights_web: Turn off disabling SANKEY_DIAGRAM for "Contributions:" diffinsights_web: Add support for "sankey" plot type to sampling_info() diffinsights_web: Add SankeyPlot to list of possible plots diffinsights_web: Rename data_store to timeline_data_store in contributors.py diffinsights_web: Add views/plots/sankey.py diffinsights_web: Fix handling of missing lines-stats file diffinsights_web: Add process_sankey() diffinsights_web: Handle input of None in count_file_x_line_lines_stats() diffinsights_web: Add sankey_plot_from_triplets() for rough preview diffinsights_web: Add reduce_sankey_thin_out() diffinsights_web: Add reduce_sankey_from_tail() diffinsights_web: Add add_dashdash_dirs_to_counter(), not tested diffinsights_web: Add path_to_dirs_only_counter() diffinsights_web: Add sankey_triples_from_counter() and its reverse diffinsights_web: Add limit_count_to_selected_files() ...
- Loading branch information
Showing
9 changed files
with
640 additions
and
33 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 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,17 @@ | ||
from pathlib import Path | ||
from typing import Optional | ||
|
||
import panel as pn | ||
|
||
DATASET_DIR = 'data/examples/stats' | ||
|
||
|
||
@pn.cache | ||
def find_dataset_dir() -> Optional[Path]: | ||
for TOP_DIR in ['', '..', '../..']: | ||
full_dir = Path(TOP_DIR).joinpath(DATASET_DIR) | ||
|
||
if full_dir.is_dir(): | ||
return full_dir | ||
|
||
return None |
Oops, something went wrong.