Skip to content

Commit

Permalink
remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
brlec committed May 17, 2021
1 parent ddb1675 commit d21c74a
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 26 deletions.
9 changes: 1 addition & 8 deletions surfaxe/analysis.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,14 @@
# Pymatgen
from pymatgen.core import Structure, Element, Lattice
from pymatgen.core.structure import SiteCollection
from pymatgen.core import Structure
from pymatgen.analysis.local_env import CrystalNN, CutOffDictNN
from pymatgen.io.vasp.outputs import Locpot

# Misc
import os
import math
import numpy as np
import pandas as pd
import warnings

# Matplotlib
import matplotlib as mpl
from matplotlib import pyplot as plt
from mpl_toolkits.axes_grid1 import make_axes_locatable

# surfaxe
from surfaxe.generation import oxidation_states
from surfaxe.io import plot_bond_analysis, plot_electrostatic_potential
Expand Down
2 changes: 0 additions & 2 deletions surfaxe/convergence.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# Pymatgen
from pymatgen.core import Structure
from pymatgen.io.vasp.outputs import Vasprun, Outcar
from pymatgen.analysis.local_env import CrystalNN

# Misc
import os
import numpy as np
import pandas as pd
import warnings
import functools
Expand Down
1 change: 0 additions & 1 deletion surfaxe/generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

# misc
import warnings
import os
import itertools
import functools
import multiprocessing
Expand Down
4 changes: 1 addition & 3 deletions surfaxe/vasp_data.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Pymatgen
from pymatgen.core.surface import Slab
from pymatgen.core import Structure, Element
from pymatgen.core.sites import PeriodicSite
from pymatgen.core import Structure
from pymatgen.io.vasp.outputs import Locpot, Outcar, Vasprun
from pymatgen.analysis.local_env import CrystalNN

Expand Down
2 changes: 0 additions & 2 deletions tests/tests_analysis/test_analysis.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import unittest
import warnings
import os
from pathlib import Path
from pymatgen.core import Structure
from surfaxe.analysis import simple_nn, complex_nn, cart_displacements, \
bond_analysis, electrostatic_potential

Expand Down
4 changes: 0 additions & 4 deletions tests/tests_convergence/test_convergence.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
import unittest
import warnings
import os
from pathlib import Path
from pymatgen.core import Structure
from pymatgen.core.surface import Slab
from surfaxe.convergence import parse_fols

fols = str(Path(__file__).parents[2].joinpath('example_data/convergence/Y2Ti2S2O5'))
Expand Down
2 changes: 0 additions & 2 deletions tests/tests_generation/test_generation.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import unittest
import warnings
import os
import shutil
from pathlib import Path
from pymatgen.core import Structure
from pymatgen.core.surface import Slab
from surfaxe.generation import get_slabs_max_index, get_slabs_single_hkl

Expand Down
4 changes: 0 additions & 4 deletions tests/tests_io/test_io.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
import unittest
import warnings
import os
from pathlib import Path
from pymatgen.core import Structure
from pymatgen.core.surface import Slab
from surfaxe.io import load_config_dict, slab_from_file
import surfaxe.io

class LoadTestCase(unittest.TestCase):
def setUp(self):
Expand Down

0 comments on commit d21c74a

Please sign in to comment.