Changes in API
Major changes from v1.0
Support of socket communication layer
Migration to ASE 3.23 standard
Enhanced documents
Major changes from v0.1
SPARC-X-API has been heavily refactored in v1.0. If you’re using legacy Python codes that are written under v0.1 API, there are a few major changes that require your attention:
Support for single
.ion
file format is deprecated. Instead, v1.0 API treats the whole SPARC directory as a bundle format. Please useread_sparc
andwrite_sparc
methods for basic file I/O instead. Nevertheless, reading calculation results generated by a v0.1 API code will not be affected.v1.0 API uses a different mapping scheme for the sorting of ASE atoms objects (similar to
Vasp
), add a comment section in.ion
file similar to follows:
# ASE-SORT:
# 3 2 1 0
# END ASE-SORT
which maps atoms 3, 2, 1, 0 from the SPARC .ion file order to
atoms 0, 1, 2, 3 in ASE order. This is useful for systems that are
constructed by ASE’s add_adsorbate
method.
v1.0 API accepts all SPARC internal parameters (i.e. CAPITALIZED) in atomic units for consistency reason. However, we also keep a list of “special input params” that are conventionally used in other ASE calculators, that use Å / eV / GPa / fs unit system.
Defining
LATVEC
,LATVEC_SCALE
, orCELL
via the calculator parameters is no longer encouraged. Instead, all structure changes should be made to theAtoms
object.
Below are a list of v0.1 method of the SPARC
calculator and their current status in v1.0 API.
calc
is an instance of sparc.SPARC
.
old methods |
status in v1.0 API |
alternatives |
---|---|---|
|
deprecated |
|
|
deprecated |
|
|
deprecated |
Manual setting not recommended |
|
deprecated |
|
|
deprecated |
|
|
maintained |
|
|
deprecated |
Manual set |
|
deprecated |
|
|
maintained |
|
|
maintained |
|
|
deprecated |
|
|
maintained |
|
|
maintained |
|
|
deprecated |
Use |
|
deprecated |
Use |
|
deprecated |
|
|
deprecated |
|
|
deprecated |
|
|
deprecated |
|
|
deprecated |
Use |
|
deprecated |
Use third party library like |
|
deprecated |
Use third party library like |