Skip to content

Commit

Permalink
Change repo / package name
Browse files Browse the repository at this point in the history
Fixes #89
  • Loading branch information
jvivian committed Jun 15, 2024
1 parent ce9419c commit 28f0d40
Show file tree
Hide file tree
Showing 1,495 changed files with 59 additions and 59 deletions.
4 changes: 2 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"justMyCode": true,
"args": [
"run",
"covid19_drdfm/data/processed/data.h5ad",
"./covid19_drdfm/data/example-data/full-global-2",
"dfmdash/data/processed/data.h5ad",
"./dfmdash/data/example-data/full-global-2",
"--batch",
"State"
]
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ help:

.PHONY: dashboard
dashboard:
@streamlit run covid19_drdfm/streamlit/Dashboard.py
@streamlit run dfmdash/streamlit/Dashboard.py

.DEFAULT_GOAL := help
Binary file removed covid19_drdfm/__pycache__/__init__.cpython-38.pyc
Binary file not shown.
Binary file removed covid19_drdfm/__pycache__/foo.cpython-38.pyc
Binary file not shown.
File renamed without changes.
14 changes: 7 additions & 7 deletions covid19_drdfm/cli.py → dfmdash/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
import typer
from rich import print

from covid19_drdfm.covid19 import get_project_h5ad
from covid19_drdfm.dfm import ModelRunner
from covid19_drdfm.io import DataLoader
from dfmdash.covid19 import get_project_h5ad
from dfmdash.dfm import ModelRunner
from dfmdash.io import DataLoader

app = typer.Typer()

Expand Down Expand Up @@ -69,14 +69,14 @@ def create_project_data(outdir: Path):
print(f"Project data successfully created at {outdir}/data.h5ad !")


@app.command("launch_dashboard")
def launch_dashboard():
@app.command("launch")
def launch(port: int = 8501):
"""
Launch the Dashboard
Launch Dynamic Factor Dashboard
"""
current_dir = Path(__file__).resolve().parent
dashboard_path = current_dir / "streamlit" / "Dashboard.py"
subprocess.run(["streamlit", "run", dashboard_path])
subprocess.run(["streamlit", "run", dashboard_path, "--server.port", port])

Check warning on line 79 in dfmdash/cli.py

View check run for this annotation

Codecov / codecov/patch

dfmdash/cli.py#L79

Added line #L79 was not covered by tests


if __name__ == "__main__":
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion covid19_drdfm/covid19.py → dfmdash/covid19.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import yaml
from anndata import AnnData

from covid19_drdfm.constants import NAME_MAP
from dfmdash.constants import NAME_MAP

ROOT_DIR = Path(__file__).parent.absolute()
DATA_DIR = ROOT_DIR / "data/processed"
Expand Down
Loading

0 comments on commit 28f0d40

Please sign in to comment.