Skip to content

Commit

Permalink
clean up things
Browse files Browse the repository at this point in the history
  • Loading branch information
hema-ted committed Jul 13, 2017
1 parent 461f682 commit 67d860f
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 193 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.pyc
/dist/
/*.egg-info
.idea
2 changes: 1 addition & 1 deletion hspin/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__code__ = "hpsi"
__version__ = "0.0.0"
__version__ = "0.0.0"
1 change: 0 additions & 1 deletion hspin/common/cell.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import numpy as np
from ase import Atoms

from .units import *

class Cell:
Expand Down
10 changes: 7 additions & 3 deletions hspin/common/ft.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
_USE_PYFFTW = False
if _USE_PYFFTW:
from mpi4py import MPI
try:
from pyfftw.interfaces.numpy_fft import fftn, ifftn
else:
if MPI.COMM_WORLD.Get_rank() == 0:
print "Using PyFFTW..."
except ImportError:
from numpy.fft import fftn, ifftn
if MPI.COMM_WORLD.Get_rank() == 0:
print "Using numpy.fft..."

from numpy.fft import fftshift, ifftshift

Expand Down
96 changes: 0 additions & 96 deletions hspin/zfs/_main.py

This file was deleted.

92 changes: 0 additions & 92 deletions hspin/zfs/readinput.py

This file was deleted.

3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@
description = "",
packages=["hspin"],
classifiers=[],
install_requires=[
'scipy', 'ase', 'mpi4py',
]
)

0 comments on commit 67d860f

Please sign in to comment.