Skip to content

Commit

Permalink
Update pymatgen imports
Browse files Browse the repository at this point in the history
  • Loading branch information
zhubonan committed Mar 27, 2023
1 parent 50358d0 commit eb0338f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 7 additions & 6 deletions disp/analysis/airssutils.py
Expand Up @@ -6,13 +6,12 @@
import re
from collections import namedtuple
from subprocess import check_output
from xml.etree.ElementInclude import include

import numpy as np
import pandas as pd
from ase import Atoms
from ase.geometry import cellpar_to_cell
from pymatgen import Structure
from pymatgen.core import Structure
from pymatgen.entries.computed_entries import ComputedStructureEntry
from pymatgen.io.ase import AseAtomsAdaptor
from tqdm import tqdm
Expand Down Expand Up @@ -241,12 +240,14 @@ def __init__(self, structure, data, lines=None, metadata=None):
The most cases it is best to initialise using class methods such as
`from_file` or `from_lines`.
Args:
structure: `pymatgen.Structure` instance
data: A dictionary contains the underlying data
lines: A list of raw lines of the RESFile
:param structure: `pymatgen.Structure` instance
:param data: A dictionary contains the underlying data
:param lines: A list of raw lines of the RESFile
"""
if isinstance(structure, Atoms):
structure = AseAtomsAdaptor.get_structure(structure)

self.structure = structure
self.lines = lines

Expand Down
2 changes: 1 addition & 1 deletion disp/fws/workflows.py
Expand Up @@ -16,7 +16,7 @@
preserve_fworker,
set_execution_options,
)
from pymatgen import Structure
from pymatgen.core import Structure
from pymatgen.io.vasp.inputs import Kpoints

from disp.analysis.airssutils import RESFile
Expand Down

0 comments on commit eb0338f

Please sign in to comment.