Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…into main
  • Loading branch information
computron committed Mar 10, 2021
2 parents f7d0a69 + a9957fd commit 404187f
Show file tree
Hide file tree
Showing 40 changed files with 52 additions and 50 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ We use github to host code, to track issues and feature requests, as well as acc
Pull requests are the best way to propose changes to the codebase. Follow the [Github flow](https://www.atlassian.com/git/tutorials/comparing-workflows/forking-workflow) for more information on this procedure.

The basic procedure for making a PR is:
* Fork the repo and create your branch from master.
* Fork the repo and create your branch from main.
* Commit your improvements to your branch and push to your Github fork (repo).
* When you're finished, go to your fork and make a Pull Request. It will automatically update if you need to make further changes.

Expand Down
2 changes: 1 addition & 1 deletion atomate/feff/firetasks/tests/test_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import unittest
from glob import glob

from pymatgen import Structure
from pymatgen.core import Structure
from pymatgen.io.feff.sets import MPEXAFSSet
from pymatgen.io.feff.inputs import Paths

Expand Down
2 changes: 1 addition & 1 deletion atomate/feff/fireworks/tests/test_fireworks.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import shutil
import unittest

from pymatgen import Structure
from pymatgen.core import Structure

from atomate.feff.fireworks.core import EXAFSPathsFW
from atomate.utils.testing import AtomateTest
Expand Down
2 changes: 1 addition & 1 deletion atomate/feff/workflows/tests/test_eels_workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import os
import unittest

from pymatgen import Structure
from pymatgen.core import Structure
from pymatgen.io.feff.inputs import Tags

from fireworks.core.fworker import FWorker
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import os
import unittest

from pymatgen import Structure
from pymatgen.core import Structure

from atomate.feff.workflows.core import get_wf_exafs_paths

Expand Down
2 changes: 1 addition & 1 deletion atomate/feff/workflows/tests/test_xas_workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import numpy as np

from pymatgen import Structure
from pymatgen.core import Structure
from pymatgen.io.feff.inputs import Tags

from fireworks.core.fworker import FWorker
Expand Down
2 changes: 1 addition & 1 deletion atomate/lammps/firetasks/write_inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
parameters file)
"""

from pymatgen import Molecule
from pymatgen.core import Molecule
# from pymatgen.io.lammps.data import LammpsData
# from pymatgen.io.lammps.sets import LammpsInputSet

Expand Down
2 changes: 1 addition & 1 deletion atomate/utils/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from fireworks import LaunchPad
from pymongo import MongoClient

from pymatgen.settings import SETTINGS
from pymatgen.core import SETTINGS

__author__ = "Kiran Mathew"
__credits__ = "Anubhav Jain"
Expand Down
2 changes: 1 addition & 1 deletion atomate/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from pymongo import MongoClient
from monty.json import MontyDecoder
from monty.serialization import loadfn
from pymatgen import Composition
from pymatgen.core import Composition

from fireworks import Workflow
from pymatgen.alchemy.materials import TransformedStructure
Expand Down
2 changes: 1 addition & 1 deletion atomate/vasp/builders/boltztrap_materials.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from atomate.utils.utils import get_logger , get_database

from pymatgen import Structure
from pymatgen.core import Structure
from pymatgen.analysis.structure_matcher import StructureMatcher, ElementComparator
from pymatgen.electronic_structure.boltztrap import BoltztrapAnalyzer

Expand Down
2 changes: 1 addition & 1 deletion atomate/vasp/builders/file_materials.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from atomate.utils.utils import get_database

from pymatgen import Composition
from pymatgen.core import Composition

from atomate.vasp.builders.base import AbstractBuilder
from atomate.utils.utils import get_logger
Expand Down
2 changes: 1 addition & 1 deletion atomate/vasp/builders/materials_descriptor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from atomate.utils.utils import get_database

from pymatgen import Structure
from pymatgen.core import Structure
from pymatgen.analysis.structure_analyzer import get_dimensionality

from atomate.utils.utils import get_logger
Expand Down
3 changes: 2 additions & 1 deletion atomate/vasp/builders/materials_ehull.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@

from atomate.utils.utils import get_database

from pymatgen import MPRester, Structure
from pymatgen.ext.matproj import MPRester
from pymatgen.core import Structure
from pymatgen.entries.computed_entries import ComputedEntry

from atomate.utils.utils import get_logger
Expand Down
2 changes: 1 addition & 1 deletion atomate/vasp/builders/tasks_materials.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from atomate.vasp.builders.utils import dbid_to_str, dbid_to_int
from atomate.utils.utils import get_database
from monty.serialization import loadfn
from pymatgen import Structure
from pymatgen.core import Structure
from pymatgen.analysis.structure_matcher import StructureMatcher, ElementComparator

logger = get_logger(__name__)
Expand Down
2 changes: 1 addition & 1 deletion atomate/vasp/firetasks/exchange.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from datetime import datetime
import numpy as np

from pymatgen import Structure
from pymatgen.core import Structure
from pymatgen.command_line.bader_caller import bader_analysis_from_path
from pymatgen.analysis.magnetism.heisenberg import HeisenbergMapper, HeisenbergModel
from pymatgen.analysis.magnetism import CollinearMagneticStructureAnalyzer, Ordering
Expand Down
2 changes: 1 addition & 1 deletion atomate/vasp/firetasks/glue_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import os
import re

from pymatgen import MPRester
from pymatgen.ext.matproj import MPRester
from pymatgen.io.vasp.sets import get_vasprun_outcar
from pymatgen.core.structure import Structure

Expand Down
2 changes: 1 addition & 1 deletion atomate/vasp/firetasks/parse_outputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from fireworks import FiretaskBase, FWAction, explicit_serialize
from fireworks.utilities.fw_serializers import DATETIME_HANDLER

from pymatgen import Structure
from pymatgen.core import Structure
from pymatgen.analysis.elasticity.elastic import ElasticTensor, ElasticTensorExpansion
from pymatgen.analysis.elasticity.strain import Strain, Deformation
from pymatgen.analysis.elasticity.stress import Stress
Expand Down
2 changes: 1 addition & 1 deletion atomate/vasp/firetasks/tests/test_exchange.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

from atomate.utils.testing import AtomateTest

from pymatgen import Structure
from pymatgen.core import Structure
from pymatgen.util.testing import PymatgenTest
from pymatgen.io.vasp import Incar, Poscar, Potcar, Kpoints
from pymatgen.io.vasp.sets import MPRelaxSet
Expand Down
2 changes: 1 addition & 1 deletion atomate/vasp/firetasks/tests/test_polarization_to_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from atomate.vasp.powerups import use_fake_vasp
from atomate.vasp.firetasks.parse_outputs import PolarizationToDb

from pymatgen.settings import SETTINGS
from pymatgen.core import SETTINGS

__author__ = 'Tess Smidt'
__email__ = '[email protected]'
Expand Down
2 changes: 1 addition & 1 deletion atomate/vasp/fireworks/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

from fireworks import Firework

from pymatgen import Structure
from pymatgen.core import Structure
from pymatgen.io.vasp.sets import (
MPRelaxSet,
MPScanRelaxSet,
Expand Down
2 changes: 1 addition & 1 deletion atomate/vasp/powerups.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from fireworks import Workflow, FileWriteTask
from fireworks.core.firework import Tracker
from fireworks.utilities.fw_utilities import get_slug
from pymatgen import Structure
from pymatgen.core import Structure

__author__ = "Anubhav Jain, Kiran Mathew, Alex Ganose"
__email__ = "[email protected], [email protected]"
Expand Down
2 changes: 1 addition & 1 deletion atomate/vasp/submission_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from monty.json import MSONable, MontyDecoder

from pymatgen import MPRester
from pymatgen.ext.matproj import MPRester
from pymatgen.alchemy.filters import AbstractStructureFilter

__author__ = 'Anubhav Jain <[email protected]>, Kiran Mathew <[email protected]>'
Expand Down
2 changes: 1 addition & 1 deletion atomate/vasp/tests/test_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import os
import unittest

from pymatgen import IStructure, Lattice
from pymatgen.core import IStructure, Lattice
from pymatgen.io.vasp import Incar, Poscar, Potcar, Kpoints
from pymatgen.io.vasp.sets import MPRelaxSet

Expand Down
2 changes: 1 addition & 1 deletion atomate/vasp/workflows/base/ferroelectric.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

from atomate.utils.utils import get_logger, get_a_unique_id

from pymatgen import Structure
from pymatgen.core import Structure

from atomate.vasp.fireworks.core import OptimizeFW
from atomate.vasp.fireworks.polarization import LcalcpolFW
Expand Down
2 changes: 1 addition & 1 deletion atomate/vasp/workflows/tests/test_adsorbate_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
get_slab_trans_params, MPSurfaceSet
from atomate.utils.testing import AtomateTest

from pymatgen import Structure, Molecule, Lattice
from pymatgen.core import Structure, Molecule, Lattice
from pymatgen.util.testing import PymatgenTest
from pymatgen.core.surface import generate_all_slabs
from pymatgen.transformations.advanced_transformations import SlabTransformation
Expand Down
2 changes: 1 addition & 1 deletion atomate/vasp/workflows/tests/test_bulk_modulus_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from atomate.vasp.workflows.presets.core import wf_bulk_modulus
from atomate.utils.testing import AtomateTest

from pymatgen import Structure
from pymatgen.core import Structure
from pymatgen.util.testing import PymatgenTest
from pymatgen.symmetry.analyzer import SpacegroupAnalyzer

Expand Down
2 changes: 1 addition & 1 deletion atomate/vasp/workflows/tests/test_elastic_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

from pymatgen.util.testing import PymatgenTest
from pymatgen.symmetry.analyzer import SpacegroupAnalyzer
from pymatgen import Structure
from pymatgen.core import Structure

__author__ = 'Kiran Mathew, Joseph Montoya'
__email__ = '[email protected]'
Expand Down
2 changes: 1 addition & 1 deletion atomate/vasp/workflows/tests/test_exchange_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from atomate.utils.utils import get_a_unique_id

from json import load
from pymatgen import Structure
from pymatgen.core import Structure

__author__ = "Nathan C. Frey"
__email__ = "[email protected]"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from pathlib import Path

from pymatgen import Structure
from pymatgen.core import Structure

from fireworks import FWorker
from fireworks.core.rocket_launcher import rapidfire
Expand Down
2 changes: 1 addition & 1 deletion atomate/vasp/workflows/tests/test_magnetism_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from atomate.utils.testing import AtomateTest, DB_DIR

from json import load
from pymatgen import Structure
from pymatgen.core import Structure

__author__ = "Matthew Horton"
__email__ = "[email protected]"
Expand Down
2 changes: 1 addition & 1 deletion atomate/vasp/workflows/tests/test_nmr.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from atomate.vasp.workflows.presets.core import wf_nmr
from atomate.utils.testing import AtomateTest

from pymatgen import Structure
from pymatgen.core import Structure

module_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)))
db_dir = os.path.join(module_dir, "..", "..", "..", "common", "test_files")
Expand Down
2 changes: 1 addition & 1 deletion dev_scripts/gibbs.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import numpy as np

from pymatgen import Structure
from pymatgen.core import Structure

__author__ = "Kiran Mathew"
__email__ = "[email protected]"
Expand Down
10 changes: 5 additions & 5 deletions docs/_sources/customizing_workflows.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ An example for adding an INCAR setting to use a different force convergence crit
from atomate.vasp.workflows.presets.core import wf_elastic_constant
from atomate.vasp.powerups import add_modify_incar
from pymatgen import Structure
from pymatgen.core import Structure
# load your structure, e.g. from a POSCAR
struct = Structure.from_file('POSCAR')
Expand Down Expand Up @@ -74,7 +74,7 @@ To use a different functional, for instance in a optimization calculation, you c
from fireworks import Workflow
from atomate.vasp.fireworks.core import OptimizeFW
from pymatgen.io.vasp.sets import MPRelaxSet
from pymatgen import Structure
from pymatgen.core import Structure
def get_optimize_wf(structure, name="optimization wf", vasp_input_set=None,
vasp_cmd="vasp", db_file=None, user_kpoints_settings=None,
Expand Down Expand Up @@ -134,7 +134,7 @@ KPOINTS settings can also be similarly customized using the above example. You c
.. code-block:: python
from pymatgen.io.vasp.sets import MPRelaxSet
from pymatgen import Structure
from pymatgen.core import Structure
# load your structure, e.g. from a POSCAR
struct = Structure.from_file('POSCAR')
Expand All @@ -151,7 +151,7 @@ If you need more control, create the ``Kpoints`` object directly with pymatgen.
from pymatgen.io.vasp.sets import MPRelaxSet
from pymatgen.io.vasp.inputs import Kpoints
from pymatgen import Structure
from pymatgen.core import Structure
# load your structure, e.g. from a POSCAR
struct = Structure.from_file('POSCAR')
Expand Down Expand Up @@ -199,7 +199,7 @@ Which POTCAR file you want to use is controlled by the input set as well. The ea
.. code-block:: python
from pymatgen.io.vasp.sets import MPRelaxSet
from pymatgen import Structure
from pymatgen.core import Structure
# load your structure, e.g. from a POSCAR
struct = Structure.from_file('POSCAR')
Expand Down
4 changes: 2 additions & 2 deletions docs/_sources/gibbs_workflow_tutorial.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ In the directory you created, make a Python script named ``gibbs.py`` with the f
#!/usr/bin/env python
import numpy as np
from pymatgen import MPRester
from pymatgen.ext.matproj import MPRester
from fireworks import LaunchPad
from atomate.vasp.workflows.presets.core import wf_gibbs_free_energy
Expand Down Expand Up @@ -157,7 +157,7 @@ Simply add the following Python script (``gibbs-analysis.py``) to your folder an
.. code-block:: python
from atomate.vasp.database import VaspCalcDb
from pymatgen import Structure
from pymatgen.core import Structure
import numpy as np
import matplotlib.pyplot as plt
Expand Down
2 changes: 1 addition & 1 deletion docs/_sources/running_workflows.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ In the same directory as the POSCAR, create a Python script named ``mgo_bandstru
# Create a bandstructure from the workflow from the atomate presets
import numpy as np
from pymatgen import Structure
from pymatgen.core import Structure
from fireworks import LaunchPad
from atomate.vasp.workflows.presets.core import wf_bandstructure
from atomate.vasp.powerups import add_modify_incar
Expand Down
Loading

0 comments on commit 404187f

Please sign in to comment.