Skip to content

Commit

Permalink
shift import in function
Browse files Browse the repository at this point in the history
  • Loading branch information
GreatRSingh committed Aug 7, 2024
1 parent e21a1eb commit 4cc4cd3
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions deepchem/models/tests/test_dftxc.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
import deepchem as dc
try:
from deepchem.models.dft.dftxc import XCModel
from deepchem.data.data_loader import DFTYamlLoader
has_dqc = True
except ModuleNotFoundError:
has_dqc = False
import pytest
import tempfile


@pytest.mark.dqc
def test_dftxc_eval():
from deepchem.models.dft.dftxc import XCModel
from deepchem.data.data_loader import DFTYamlLoader
inputs = 'deepchem/models/tests/assets/test_dftxcdata.yaml'
data = DFTYamlLoader()
model_dir = tempfile.mkdtemp()
Expand Down Expand Up @@ -48,6 +44,8 @@ def test_dftxc_eval():

@pytest.mark.dqc
def test_dm():
from deepchem.models.dft.dftxc import XCModel
from deepchem.data.data_loader import DFTYamlLoader
inputs = 'deepchem/models/tests/assets/test_dm.yaml'
data = DFTYamlLoader()
dataset = (data.create_dataset(inputs))
Expand Down

0 comments on commit 4cc4cd3

Please sign in to comment.