From eeeb2a7d82e3aa5a529e07fca5e0ea2da9b3fae0 Mon Sep 17 00:00:00 2001 From: Kabilar Gunalan Date: Wed, 7 Aug 2024 11:24:49 -0500 Subject: [PATCH] Update instance names from `dandi` to `lincbrain` --- lincbrain/consts.py | 4 ++-- lincbrain/delete.py | 2 +- lincbrain/move.py | 2 +- lincbrain/upload.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lincbrain/consts.py b/lincbrain/consts.py index 26ce4f452..e63962dce 100644 --- a/lincbrain/consts.py +++ b/lincbrain/consts.py @@ -121,8 +121,8 @@ def urls(self) -> Iterator[str]: # TODO: Also add docs for what each of these values should map to known_instances = { - "dandi": DandiInstance( - "dandi", + "lincbrain": DandiInstance( + "lincbrain", "https://lincbrain.org", "https://api.lincbrain.org/api", ), diff --git a/lincbrain/delete.py b/lincbrain/delete.py index 28311c199..f697ee3e9 100644 --- a/lincbrain/delete.py +++ b/lincbrain/delete.py @@ -192,7 +192,7 @@ def process_assets_debug(self) -> Iterator[Iterator[dict]]: def delete( paths: Iterable[str], - dandi_instance: str | DandiInstance = "dandi", + dandi_instance: str | DandiInstance = "lincbrain", devel_debug: bool = False, jobs: int | None = None, force: bool = False, diff --git a/lincbrain/move.py b/lincbrain/move.py index fb40d34e2..f6db52b6c 100644 --- a/lincbrain/move.py +++ b/lincbrain/move.py @@ -789,7 +789,7 @@ def move( dest: str, regex: bool = False, existing: MoveExisting = MoveExisting.ERROR, - dandi_instance: str | DandiInstance = "dandi", + dandi_instance: str | DandiInstance = "lincbrain", dandiset: Path | str | None = None, work_on: MoveWorkOn = MoveWorkOn.AUTO, devel_debug: bool = False, diff --git a/lincbrain/upload.py b/lincbrain/upload.py index 61e15eb04..8dd68f0ce 100644 --- a/lincbrain/upload.py +++ b/lincbrain/upload.py @@ -70,7 +70,7 @@ def upload( paths: Sequence[str | Path] | None = None, existing: UploadExisting = UploadExisting.REFRESH, validation: UploadValidation = UploadValidation.REQUIRE, - dandi_instance: str | DandiInstance = "dandi", + dandi_instance: str | DandiInstance = "lincbrain", allow_any_path: bool = False, upload_dandiset_metadata: bool = False, devel_debug: bool = False,