Skip to content

Commit

Permalink
Merge pull request #329 from OpenFreeEnergy/feature/replace-keyedchai…
Browse files Browse the repository at this point in the history
…n-import

Replace the alchemiscale KeyedChain with new gufe KeyedChain
  • Loading branch information
dotsdl authored Nov 20, 2024
2 parents 7099ce6 + 3ee96c4 commit 11eda18
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 135 deletions.
3 changes: 1 addition & 2 deletions alchemiscale/base/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from fastapi import status as http_status
from fastapi.routing import APIRoute
from fastapi.security import OAuth2PasswordRequestForm
from gufe.tokenization import JSON_HANDLER, GufeTokenizable
from gufe.tokenization import JSON_HANDLER, GufeTokenizable, KeyedChain

from ..settings import (
JWTSettings,
Expand All @@ -32,7 +32,6 @@
oauth2_scheme,
)
from ..security.models import Token, TokenData, CredentialedEntity
from ..keyedchain import KeyedChain


def validate_scopes(scope: Scope, token: TokenData) -> None:
Expand Down
3 changes: 1 addition & 2 deletions alchemiscale/interface/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from fastapi.middleware.gzip import GZipMiddleware

import json
from gufe.tokenization import JSON_HANDLER
from gufe.tokenization import JSON_HANDLER, KeyedChain

from ..base.api import (
GufeJSONResponse,
Expand All @@ -34,7 +34,6 @@
from ..storage.models import TaskStatusEnum
from ..models import Scope, ScopedKey
from ..security.models import TokenData, CredentialedUserIdentity
from ..keyedchain import KeyedChain


app = FastAPI(title="AlchemiscaleAPI")
Expand Down
3 changes: 1 addition & 2 deletions alchemiscale/interface/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from async_lru import alru_cache
import networkx as nx
from gufe import AlchemicalNetwork, Transformation, ChemicalSystem
from gufe.tokenization import GufeTokenizable, JSON_HANDLER
from gufe.tokenization import GufeTokenizable, JSON_HANDLER, KeyedChain
from gufe.protocols import ProtocolResult, ProtocolDAGResult


Expand All @@ -29,7 +29,6 @@
)
from ..strategies import Strategy
from ..validators import validate_network_nonself
from ..keyedchain import KeyedChain

from warnings import warn

Expand Down
82 changes: 0 additions & 82 deletions alchemiscale/keyedchain.py

This file was deleted.

3 changes: 1 addition & 2 deletions alchemiscale/tests/integration/interface/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
import json

from gufe import AlchemicalNetwork, ChemicalSystem, Transformation
from gufe.tokenization import JSON_HANDLER, GufeTokenizable
from gufe.tokenization import JSON_HANDLER, GufeTokenizable, KeyedChain

from alchemiscale.models import ScopedKey
from alchemiscale.keyedchain import KeyedChain


def pre_load_payload(network, scope, name="incomplete 2"):
Expand Down
45 changes: 0 additions & 45 deletions alchemiscale/tests/unit/test_keyedchain.py

This file was deleted.

0 comments on commit 11eda18

Please sign in to comment.