Skip to content

Commit

Permalink
Returned CompoundSeries to schema; no longer has methods for update
Browse files Browse the repository at this point in the history
Best that we leave schemas as immutable objects, where possible,
especially given #167
  • Loading branch information
dotsdl committed Jan 17, 2022
1 parent 56a50f1 commit db17b38
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 312 deletions.
2 changes: 1 addition & 1 deletion fah_xchem/analysis/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from ..fah_utils import list_results
from ..schema import (
AnalysisConfig,
CompoundSeries,
CompoundSeriesAnalysis,
CompoundMicrostate,
FahConfig,
Expand All @@ -24,7 +25,6 @@
FragalysisConfig,
RunStatus,
)
from ..compute import CompoundSeries
from .constants import KT_KCALMOL
from .diffnet import combine_free_energies, pIC50_to_DG
from .exceptions import AnalysisError, DataValidationError
Expand Down
241 changes: 0 additions & 241 deletions fah_xchem/app.py

This file was deleted.

1 change: 0 additions & 1 deletion fah_xchem/compute/__init__.py

This file was deleted.

68 changes: 0 additions & 68 deletions fah_xchem/compute/compound_series.py

This file was deleted.

6 changes: 6 additions & 0 deletions fah_xchem/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,12 @@ class Transformation(Model):
final_microstate: CompoundMicrostate


class CompoundSeries(Model):
metadata: CompoundSeriesMetadata
compounds: List[Compound]
transformations: List[Transformation]


class DataPath(Model):
path: str
clone: int
Expand Down
1 change: 0 additions & 1 deletion fah_xchem/tests/test_fah_xchem.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import pytest
import sys
from fah_xchem.schema import *
from fah_xchem.compute import CompoundSeries


@pytest.fixture
Expand Down

0 comments on commit db17b38

Please sign in to comment.