Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change repo / package name #90

Merged
merged 5 commits into from
Jun 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
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 @@
print(f"Project data successfully created at {outdir}/data.h5ad !")


@app.command("launch_dashboard")
def launch_dashboard():
@app.command("launch")
def launch(port: str = 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
Loading