Skip to content

Commit f0963ef

Browse files
authored
Merge pull request #356 from Cloudac7/jump
fix pymatgen v2022.0.* incompatible issue (switch the branch)
2 parents b73a49e + c99ff74 commit f0963ef

File tree

11 files changed

+12
-12
lines changed

11 files changed

+12
-12
lines changed

dpgen/auto_test/mpdb.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os
22
from dpgen import dlog
3-
from pymatgen import MPRester,Structure
4-
from pymatgen.ext.matproj import MPRestError
3+
from pymatgen.ext.matproj import MPRester, MPRestError
4+
from pymatgen.core import Structure
55

66
web="materials.org"
77

dpgen/data/gen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import dpgen.data.tools.diamond as diamond
2222
import dpgen.data.tools.sc as sc
2323
from dpgen.generator.lib.vasp import incar_upper
24-
from pymatgen import Structure
24+
from pymatgen.core import Structure
2525
from pymatgen.io.vasp import Incar
2626
from dpgen.remote.decide_machine import decide_fp_machine
2727
from dpgen import ROOT_PATH

dpgen/data/surf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from dpgen.dispatcher.Dispatcher import Dispatcher, make_dispatcher
1616
#-----PMG---------
1717
from pymatgen.io.vasp import Poscar
18-
from pymatgen import Structure,Element
18+
from pymatgen.core import Structure, Element
1919
from pymatgen.io.ase import AseAtomsAdaptor
2020
#-----ASE-------
2121
from ase.io import read

dpgen/dispatcher/LSF.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def check_status(self):
1414
except:
1515
return JobStatus.terminated
1616
if job_id == "" :
17-
raise RuntimeError("job %s is has not been submitted" % self.remote_root)
17+
raise RuntimeError("job %s has not been submitted" % self.context.remote_root)
1818
ret, stdin, stdout, stderr\
1919
= self.context.block_call ("bjobs " + job_id)
2020
err_str = stderr.read().decode('utf-8')

tests/auto_test/test_elastic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import dpdata
66
from monty.serialization import loadfn, dumpfn
77
from pymatgen.analysis.elasticity.strain import Strain, Deformation
8-
from pymatgen import Structure
8+
from pymatgen.core import Structure
99
from pymatgen.io.vasp import Incar
1010

1111
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))

tests/auto_test/test_mpdb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os
22
import sys
33
import unittest
4-
from pymatgen import Structure
4+
from pymatgen.core import Structure
55
from pymatgen.analysis.structure_matcher import StructureMatcher
66
from monty.serialization import loadfn,dumpfn
77

tests/auto_test/test_surface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import unittest
55
import dpdata
66
from monty.serialization import loadfn, dumpfn
7-
from pymatgen import Structure
7+
from pymatgen.core import Structure
88
from pymatgen.io.vasp import Incar
99
from pymatgen.core.surface import SlabGenerator
1010

tests/auto_test/test_vacancy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import unittest
55
import dpdata
66
from monty.serialization import loadfn, dumpfn
7-
from pymatgen import Structure
7+
from pymatgen.core import Structure
88
from pymatgen.io.vasp import Incar
99
from pymatgen.symmetry.analyzer import SpacegroupAnalyzer
1010
from pymatgen.analysis.defects.core import Vacancy as pmg_Vacancy

tests/data/test_gen_bulk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import os,sys,json,glob,shutil
22
import unittest
3-
from pymatgen import Structure,Composition
3+
from pymatgen.core import Structure, Composition
44

55
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
66
__package__ = 'data'

tests/data/test_gen_surf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import os,sys,json,glob,shutil
22
import unittest
3-
from pymatgen import Structure,Element
3+
from pymatgen.core import Structure, Element
44

55
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
66
__package__ = 'data'

0 commit comments

Comments
 (0)