Skip to content

Commit

Permalink
Fix RemoteButler import
Browse files Browse the repository at this point in the history
Removed an implicit dependency on "fastapi" when loading the RemoteButler class.  This was causing RemoteButler import to fail on RSP.
  • Loading branch information
dhirving committed Nov 14, 2023
1 parent c817402 commit 8bcb19c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion python/lsst/daf/butler/remote_butler/_remote_butler.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
from ..transfers import RepoExportContext
from ._authentication import get_authentication_headers, get_authentication_token_from_environment
from ._config import RemoteButlerConfigModel
from .server import FindDatasetModel
from .server_models import FindDatasetModel


class RemoteButler(Butler):
Expand Down
1 change: 0 additions & 1 deletion python/lsst/daf/butler/remote_butler/server/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,3 @@

from ._factory import *
from ._server import *
from ._server_models import *
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@

from fastapi import APIRouter, Depends
from lsst.daf.butler import SerializedDatasetRef, SerializedDatasetType
from lsst.daf.butler.remote_butler.server_models import FindDatasetModel

from .._dependencies import factory_dependency
from .._factory import Factory
from .._server_models import FindDatasetModel

external_router = APIRouter()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,12 @@

from lsst.daf.butler import SerializedDataCoordinate

from ..._compat import _BaseModelCompat
from .._compat import _BaseModelCompat


class FindDatasetModel(_BaseModelCompat):
"""Request model for find_dataset"""

data_id: SerializedDataCoordinate
collections: list[str]
storage_class: str | None
Expand Down

0 comments on commit 8bcb19c

Please sign in to comment.