TB2Jflows 0.1__tar.gz → 0.2__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: TB2Jflows
3
- Version: 0.1
3
+ Version: 0.2
4
4
  Summary: TB2Jflows: Workflows for automatically calculation of exchange parameters using TB2J
5
5
  Author: Xu He
6
6
  Author-email: mailhexu@gmail.com
@@ -160,6 +160,7 @@ class SiestaFlow:
160
160
  MaxStressTol=0.1,
161
161
  NumCGSteps=200,
162
162
  ):
163
+ print(f"Relaxation in {path}")
163
164
  if (
164
165
  self.restart
165
166
  and self.metadata["already_relaxed"]
@@ -171,20 +172,20 @@ class SiestaFlow:
171
172
  old_spin = self.spin
172
173
  if use_collinear:
173
174
  self.spin = "collinear"
174
- calc = self.get_calculator(atoms, path=self.relax_path, label=label)
175
- calc.atoms = atoms
176
- atoms = calc.relax(
177
- atoms,
178
- TypeOfRun=TypeOfRun,
179
- VariableCell=VariableCell,
180
- ConstantVolume=ConstantVolume,
181
- RelaxCellOnly=RelaxCellOnly,
182
- MaxForceTol=MaxForceTol,
183
- MaxStressTol=MaxStressTol,
184
- NumCGSteps=NumCGSteps,
185
- )
186
- self.spin = old_spin
187
- self.relaxed_atoms = atoms
175
+ calc = self.get_calculator(atoms, path=self.relax_path, label=label)
176
+ calc.atoms = atoms
177
+ atoms = calc.relax(
178
+ atoms,
179
+ TypeOfRun=TypeOfRun,
180
+ VariableCell=VariableCell,
181
+ ConstantVolume=ConstantVolume,
182
+ RelaxCellOnly=RelaxCellOnly,
183
+ MaxForceTol=MaxForceTol,
184
+ MaxStressTol=MaxStressTol,
185
+ NumCGSteps=NumCGSteps,
186
+ )
187
+ self.spin = old_spin
188
+ self.relaxed_atoms = atoms
188
189
  self.update_metadata(
189
190
  {
190
191
  "already_relaxed": True,
@@ -52,7 +52,7 @@ def auto_siesta_TB2J(
52
52
  TB2J=True,
53
53
  rotate_type="structure",
54
54
  fincore=True,
55
- relax_arguments={},
55
+ relax_kwargs={},
56
56
  siesta_kwargs={},
57
57
  TB2J_kwargs={},
58
58
  fdf_kwargs={},
@@ -100,7 +100,7 @@ def auto_siesta_TB2J(
100
100
  fincore=fincore,
101
101
  Udict=Udict,
102
102
  split_soc=split_soc,
103
- relax_arguments = relax_arguments,
103
+ relax_arguments = relax_kwargs,
104
104
  **siesta_kwargs,
105
105
  )
106
106
  flow.write_metadata()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: TB2Jflows
3
- Version: 0.1
3
+ Version: 0.2
4
4
  Summary: TB2Jflows: Workflows for automatically calculation of exchange parameters using TB2J
5
5
  Author: Xu He
6
6
  Author-email: mailhexu@gmail.com
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env python
2
2
  from setuptools import find_packages, setup
3
3
 
4
- __version__ = "0.1"
4
+ __version__ = "0.2"
5
5
 
6
6
  long_description = """ TB2Jflows: Workflows for automatically calculation of exchange parameters using TB2J """
7
7
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes