Skip to content

Commit

Permalink
Remove gufe submodule and fix pydantic import
Browse files Browse the repository at this point in the history
gufe v1.2.0 is available on conda-forge, no longer need the submodule
for testing.

pydantic imports now match the style used in gufe to address version issue.
  • Loading branch information
ianmkenney committed Jan 14, 2025
1 parent b3a42db commit dfe01c3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
[submodule "lib/gufe"]
path = lib/gufe
url = [email protected]:OpenFreeEnergy/gufe
1 change: 0 additions & 1 deletion lib/gufe
Submodule gufe deleted from 71a9c6
12 changes: 11 additions & 1 deletion src/stratocaster/strategies/connectivity.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
from gufe import AlchemicalNetwork, ProtocolResult
from gufe.tokenization import GufeKey
from pydantic import Field, root_validator, validator

from stratocaster.base import Strategy, StrategyResult
from stratocaster.base.models import StrategySettings

try:
from pydantic.v1 import Field, root_validator, validator
except ImportError:
from pydantic import (
Field,
root_validator,
validator,
)

import pydantic


# TODO: docstrings
class ConnectivityStrategySettings(StrategySettings):
Expand Down

0 comments on commit dfe01c3

Please sign in to comment.