lasp-ase 0.0.3__tar.gz → 0.0.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lasp_ase
3
- Version: 0.0.3
3
+ Version: 0.0.4
4
4
  Summary: ASE calculator for LASP
5
5
  Home-page: https://github.com/renpj/lasp_ase
6
6
  Author:
@@ -10,11 +10,6 @@ from ase.calculators.calculator import FileIOCalculator
10
10
 
11
11
 
12
12
  class Lasp(FileIOCalculator):
13
- if 'ASE_LASP_COMMAND' in os.environ:
14
- command = os.environ['ASE_LASP_COMMAND']
15
- else:
16
- command = 'mpirun -np 2 lasp'
17
-
18
13
  implemented_properties = ['energy', 'forces']
19
14
 
20
15
  def __init__(self, restart=None,
@@ -27,7 +22,11 @@ class Lasp(FileIOCalculator):
27
22
  self.do_forces = False
28
23
  self.outfilename = 'lasp.out'
29
24
  if not kwargs.get('command'):
30
- kwargs['command'] = self.command
25
+ if 'ASE_LASP_COMMAND' in os.environ:
26
+ command = os.environ['ASE_LASP_COMMAND']
27
+ else:
28
+ command = 'mpirun -np 2 lasp'
29
+ kwargs['command'] = command
31
30
  FileIOCalculator.__init__(self, restart, ignore_bad_restart_file,
32
31
  label, atoms, **kwargs)
33
32
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lasp_ase
3
- Version: 0.0.3
3
+ Version: 0.0.4
4
4
  Summary: ASE calculator for LASP
5
5
  Home-page: https://github.com/renpj/lasp_ase
6
6
  Author:
@@ -8,7 +8,7 @@ install_requires = [
8
8
  ]
9
9
  setuptools.setup(
10
10
  name="lasp_ase",
11
- version="0.0.3",
11
+ version="0.0.4",
12
12
  author="",
13
13
  description="ASE calculator for LASP",
14
14
  long_description=long_description,
File without changes
File without changes
File without changes
File without changes