Skip to main content

SIESTAstepper

PyPI version PyPI pyversions PyPI download month PyPI download week PyPI download day GitHub all releases GitHub contributors CodeFactor PyPI license DOI

SIESTAstepper runs SIESTA step by step, designed for constrained calculations.

Installation

Use the package manager pip to install SIESTAstepper.

pip install SIESTAstepper

Usage

All SIESTA working directories must be named as i1, i2, i3 ... and so on.

In code

import SIESTAstepper

#Sets the path of the working directory
SIESTAstepper.cwd = "path/to/working/directory"

#Sets the name of SIESTA log files (default is "log")
SIESTAstepper.log = "log"

#Sets number of cores for parallel run
SIESTAstepper.cores = 4

#Sets Anaconda environment
SIESTAstepper.conda = "envir"

# Runs SIESTA step by step
SIESTAstepper.run("graphene")

# Converts last geometry of an ANI to FDF by using the previous FDF and ANI files
SIESTAstepper.ani_to_fdf("path/to/ANI", "path/to/FDF", "path/to/newFDF")

# Converts XYZ to FDF by using the previous FDF and XYZ files
SIESTAstepper.xyz_to_fdf("path/to/XYZ", "path/to/FDF", "path/to/newFDF")

#Merges ANI files
SIESTAstepper.merge_ani(label = "graphene")

#Merges ANI files by setting a path
SIESTAstepper.merge_ani(label = "graphene", path = "path/to/i*/ANI/files")

#Merges ANI files by setting a missing files path
SIESTAstepper.merge_ani(label = "graphene", missing="path/to/i*/missing/ANI/files")

# Runs SIESTA a for given step
SIESTAstepper.run_next("1", "graphene")

# Plots and returns energies from log files
SIESTAstepper.analysis()

# Returns energies from log files without plotting
SIESTAstepper.analysis(plot_ = False)

# Plots and returns energies from log files by setting a path
SIESTAstepper.analysis(path = "path/to/i*/log/files")

# Plots and returns energies from log files by setting a missing files path
SIESTAstepper.analysis(missing = "path/to/i*/missing/log/files")

In terminal

python -m SIESTAstepper run log

python -m SIESTAstepper run log mpirun=4

python -m SIESTAstepper run log conda=envir

python -m SIESTAstepper run_next log 1 graphene

python -m SIESTAstepper run_next log 1 graphene mpirun=4

python -m SIESTAstepper run_next log 1 graphene conda=envir

python -m SIESTAstepper ani_to_fdf path/to/ANI path/to/FDF path/to/newFDF

python -m SIESTAstepper xyz_to_fdf path/to/XYZ path/to/FDF path/to/newFDF

python -m SIESTAstepper merge_ani graphene

python -m SIESTAstepper merge_ani graphene path=path/to/i*/ANI/files

python -m SIESTAstepper merge_ani graphene missing=path/to/i*/missing/ANI/files

python -m SIESTAstepper analysis log

python -m SIESTAstepper analysis log noplot

python -m SIESTAstepper analysis log path=path/to/i*/log/files

python -m SIESTAstepper analysis log missing=path/to/i*/missing/log/files

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Citation

@software{eftal_gezer_2022_7062764,
  author       = {Eftal Gezer},
  title        = {eftalgezer/SIESTAstepper: v0.4.2},
  month        = sep,
  year         = 2022,
  publisher    = {Zenodo},
  version      = {v0.4.2},
  doi          = {10.5281/zenodo.7062764},
  url          = {https://doi.org/10.5281/zenodo.7062764}
}

License

GNU General Public License v3.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

SIESTAstepper-0.4.2.tar.gz (18.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

SIESTAstepper-0.4.2-py3-none-any.whl (18.8 kB view details)

Uploaded Python 3

File details

Details for the file SIESTAstepper-0.4.2.tar.gz.

File metadata

  • Download URL: SIESTAstepper-0.4.2.tar.gz
  • Upload date:
  • Size: 18.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for SIESTAstepper-0.4.2.tar.gz
Algorithm Hash digest
SHA256 38767c33fc573a28d3be911539c54fa278192a90497eec1061a10418f894a819
MD5 abfd627d22d83594bd007aa8fd93d9da
BLAKE2b-256 50e1049083bc95d770acc80294aed2ed342859d1c69b24c6414f8386d8585daf

See more details on using hashes here.

File details

Details for the file SIESTAstepper-0.4.2-py3-none-any.whl.

File metadata

  • Download URL: SIESTAstepper-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 18.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for SIESTAstepper-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ead4989c4fa26725e16a1da0b812bfa9f6789123cfb85ec34985c2a16d667dab
MD5 67b2a8a43efb06bb6f6926e95bc0175f
BLAKE2b-256 950ca2515c819287dbc7618eac73d6d3c152c36b12e29bf0d51b29ae1b34b579

See more details on using hashes here.

Release history Release notifications | RSS feed

2.1.0

3 files

2.0.0

3 files

1.2.3

3 files

1.2.2

3 files

1.2.1

2 files

1.2.0

3 files

1.1.0

3 files

1.0.0

3 files

This release

0.4.2 This release

2 files

0.4.1

1 file

0.4.0

1 file

0.3.0

1 file

0.2.0

2 files

0.1.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page