-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
setup pipeline for multi-configuration runs
- Loading branch information
1 parent
124f15b
commit 114a30e
Showing
6 changed files
with
63 additions
and
11 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
Empty file.
25 changes: 25 additions & 0 deletions
25
src/depiction_targeted_preproc/workflow/exp/compare_cluster_stats.py
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,25 @@ | ||
from pathlib import Path | ||
from typing import Annotated | ||
|
||
import polars as pl | ||
import typer | ||
from typer import Option | ||
|
||
|
||
def load_data(csv_paths: list[Path]) -> pl.DataFrame: | ||
collect = [] | ||
for csv_path in csv_paths: | ||
df = pl.read_csv(csv_path) | ||
collect.append(df.with_columns(label=pl.lit(csv_path.parent.name))) | ||
return pl.concat(collect) | ||
|
||
|
||
def compare_cluster_stats(input_csv_path: list[Path], output_pdf: Annotated[Path, Option()]) -> None: | ||
data = load_data(input_csv_path) | ||
print(data) | ||
|
||
|
||
if __name__ == "__main__": | ||
typer.run(compare_cluster_stats) | ||
|
||
# print(sys.argv) |
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