Skip to content

Commit

Permalink
optional import from experimental
Browse files Browse the repository at this point in the history
  • Loading branch information
misko committed Aug 20, 2024
1 parent 21eecd4 commit f3e1c38
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/fairchem/core/datasets/ase_datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,9 @@
from fairchem.core.datasets.lmdb_database import LMDBDatabase
from fairchem.core.datasets.target_metadata_guesser import guess_property_metadata

# from fairchem.core.modules.transforms import DataTransforms
from fairchem.core.preprocessing import AtomsToGraphs
from fairchem.experimental.foundation_models.multi_task_dataloader.transforms.data_object import (
DataTransforms,
)

from fairchem.core.modules.transforms import DataTransforms


def apply_one_tags(
Expand Down
5 changes: 5 additions & 0 deletions src/fairchem/core/modules/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
if TYPE_CHECKING:
from torch_geometric.data import Data

try:
from fairchem.experimental.foundation_models.multi_task_dataloader.transforms.data_object import *
except ImportError:
pass


class DataTransforms:
def __init__(self, config) -> None:
Expand Down

0 comments on commit f3e1c38

Please sign in to comment.