Skip to main content

sage_lib

Overview

sage_lib is a versatile library designed for advanced scientific computations and visualization. It enables users to process atomic structures, perform thermodynamic analyses, generate band structures, and handle various tasks commonly required in quantum mechanical and molecular dynamics studies. The primary focus of this library is to simplify complex workflows, enabling researchers to conduct simulations, generate graphical representations, and export data in multiple formats with ease.

Features

Atomic Position Export: Converts atomic position files from one format to another, making data compatible with different simulation tools or visualization software.

Plot Generation: Generates plots based on simulation data, such as band structures or molecular arrangements. This includes support for visualizing results from popular tools like VASP.

Thermodynamic Analysis: Provides methods to calculate thermodynamic properties based on ab initio data. This includes phase diagrams, ensemble analysis, and more.

Blender Integration for Rendering: Uses Blender to render atomic structures and molecular arrangements. Supports customization like resolution, camera angles, and the addition of fog effects.

Dynamic Molecular Analysis: Analyzes molecular dynamics data, tracking species counts, evaluating force fields, and computing properties such as diffusion coefficients and bond distances.

Configuration Generation and Editing: Reads atomic structures and configurations, applies specified editing operations, and exports new structures. This includes operations like creating supercells, rattling atomic positions, and applying compressions.

Solvent Environment Generation: Creates a solvent environment around a given molecular or atomic structure, supporting various solvents and configurations to simulate realistic environments.

Dimer Search and Analysis: Facilitates dimer search to analyze interactions between specific pairs of atoms, which is useful for studying catalytic activity and other atomic-scale interactions.

Surface Disassembly: Generates configurations that allow the disassembly of surfaces, which is particularly useful for understanding surface stability and catalysis.

Customizable File Management: Provides functionalities for handling, reading, and exporting files in different formats including VASP, XYZ, and others.

Installation

To install sage_lib, use the following command:

pip install sage_lib

Ensure that you have Python 3.7 or higher.

Usage

sage_lib can be used from the command line or programmatically.

Command Line Usage

The library includes a console command sage which can be used to execute various subcommands:

sage export --path ./data --source VASP --output_path ./converted --output_source PDB

This command will convert atomic position files from VASP format to PDB format, saving the output in the ./converted directory.

Another example for generating a plot:

sage plot --path ./data --plot bands --fermi 5.0 --output_path ./plots

This command generates a band structure plot using the data found in the specified directory.

Programmatic Usage

Below is a Python example that demonstrates how to use sage_lib programmatically:

from sage_lib.partition import Partition

Initialize a Partition object

PT = Partition(path='./data')

Read files from a specified location

PT.read_files(file_location='./data', source='VASP', verbose=True)

Export files in a different format

PT.export_files(file_location='./output', source='PDB', verbose=True)

This example initializes a Partition object, reads files from a directory, and exports them to a different format.

Dependencies

sage_lib requires the following packages:

numpy: for numerical operations

matplotlib: for plotting and visualization

scipy: for scientific computations

imageio: for managing image files

Optional dependencies include:

pytest: for testing

flake8: for code linting

sphinx: for generating documentation

License

sage_lib is licensed under the MIT License. For more details, refer to the LICENSE file.

Contributing

Contributions are welcome! Please feel free to open an issue or a pull request on the GitHub repository to contribute to the project.

Contact

For questions, please contact the author via email: lombardi@fhi-berlin.mpg.de

For bug reports or feature requests, visit the issues page.

Download files

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

Source Distribution

sage_lib-0.1.9.25.tar.gz (1.7 MB view details)

Uploaded Source

Built Distribution

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

sage_lib-0.1.9.25-py3-none-any.whl (1.8 MB view details)

Uploaded Python 3

File details

Details for the file sage_lib-0.1.9.25.tar.gz.

File metadata

  • Download URL: sage_lib-0.1.9.25.tar.gz
  • Upload date:
  • Size: 1.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for sage_lib-0.1.9.25.tar.gz
Algorithm Hash digest
SHA256 99fa1172ad0205a1c1c12145adfdd58dd58ffb8353f3de502e321fcbd33412e4
MD5 8050d07f35cc0b926254ab3e0eeb0561
BLAKE2b-256 54ec39e4d72af0dc7b2b889274dd10c54bde34059572f1d5e29f1d0fa42e8b70

See more details on using hashes here.

File details

Details for the file sage_lib-0.1.9.25-py3-none-any.whl.

File metadata

  • Download URL: sage_lib-0.1.9.25-py3-none-any.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for sage_lib-0.1.9.25-py3-none-any.whl
Algorithm Hash digest
SHA256 e8cde4c51fb2062017a40b12864f2a450304f8208bf0cd759ffa13f4430964bf
MD5 929f13bf7aa1d43322254725ebfa03e8
BLAKE2b-256 a1d58e31078665435c50167114ba501c05b2d062f1fd77f3913a309ed53f8578

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.9.30

2 files

0.1.9.29

2 files

0.1.9.28

2 files

0.1.9.27

2 files

0.1.9.26

2 files

This release

0.1.9.25 This release

2 files

0.1.9.24

2 files

0.1.9.23

2 files

0.1.9.22

2 files

0.1.9.21

2 files

0.1.9.20

2 files

0.1.9.19

2 files

0.1.9.18

2 files

0.1.9.17

2 files

0.1.9.16

2 files

0.1.9.15

2 files

0.1.9.14

2 files

0.1.9.13

2 files

0.1.9.12

2 files

0.1.9.11

2 files

0.1.9.10

2 files

0.1.9.9

2 files

0.1.9.8

2 files

0.1.9.7

2 files

0.1.9.6

2 files

0.1.9.5

2 files

0.1.9.4

2 files

0.1.9.3

2 files

0.1.9.2

2 files

0.1.9.1

2 files

0.1.9.0

2 files

0.1.8.2

2 files

0.1.8.1

2 files

0.1.8.0

2 files

0.1.7.6

2 files

0.1.7.5

2 files

0.1.7.3

2 files

0.1.7.2

2 files

0.1.7.1

2 files

0.1.7.0

2 files

0.1.6.66

2 files

0.1.6.65

2 files

0.1.6.64

2 files

0.1.6.63

2 files

0.1.6.62

2 files

0.1.6.61

2 files

0.1.6.60

2 files

0.1.6.59

2 files

0.1.6.58

2 files

0.1.6.57

2 files

0.1.6.56

2 files

0.1.6.55

2 files

0.1.6.54

2 files

0.1.6.53

2 files

0.1.6.52

2 files

0.1.6.51

2 files

0.1.6.50

2 files

0.1.6.49

2 files

0.1.6.48

2 files

0.1.6.47

2 files

0.1.6.46

2 files

0.1.6.45

2 files

0.1.6.44

2 files

0.1.6.43

2 files

0.1.6.42

2 files

0.1.6.41

2 files

0.1.6.40

2 files

0.1.6.39

2 files

0.1.6.38

2 files

0.1.6.37

2 files

0.1.6.36

2 files

0.1.6.35

2 files

0.1.6.34

2 files

0.1.6.33

2 files

0.1.6.32

2 files

0.1.6.31

2 files

0.1.6.30

2 files

0.1.6.29

2 files

0.1.6.28

2 files

0.1.6.27

2 files

0.1.6.26

2 files

0.1.6.25

2 files

0.1.6.24

2 files

0.1.6.23

2 files

0.1.6.22

2 files

0.1.6.21

2 files

0.1.6.20

2 files

0.1.6.19

2 files

0.1.6.18

2 files

0.1.6.17

2 files

0.1.6.16

2 files

0.1.6.15

2 files

0.1.6.14

2 files

0.1.6.13

2 files

0.1.6.12

2 files

0.1.6.11

2 files

0.1.6.10

2 files

0.1.6.9

2 files

0.1.6.8

2 files

0.1.6.7

2 files

0.1.6.6

2 files

0.1.6.5

2 files

0.1.6.4

2 files

0.1.6.3

2 files

0.1.6.2

2 files

0.1.6.1

2 files

0.1.6.0

2 files

0.1.5.38

2 files

0.1.5.37

2 files

0.1.5.36

2 files

0.1.5.35

2 files

0.1.5.34

2 files

0.1.5.33

2 files

0.1.5.32

2 files

0.1.5.31

2 files

0.1.5.30

2 files

0.1.5.29

2 files

0.1.5.28

2 files

0.1.5.27

2 files

0.1.5.26

2 files

0.1.5.25

2 files

0.1.5.24

2 files

0.1.5.23

2 files

0.1.5.22

2 files

0.1.5.20

2 files

0.1.5.19

2 files

0.1.5.18

2 files

0.1.5.17

2 files

0.1.5.16

2 files

0.1.5.15

2 files

0.1.5.14

2 files

0.1.5.13

2 files

0.1.5.12

2 files

0.1.5.11

2 files

0.1.5.10

2 files

0.1.5.9

2 files

0.1.5.8

2 files

0.1.5.7

2 files

0.1.5.6

2 files

0.1.5.5

2 files

0.1.5.4

2 files

0.1.5.3

2 files

0.1.5.2

2 files

0.1.5.1

2 files

0.1.5.0

2 files

0.1.4.29

2 files

0.1.4.28

2 files

0.1.4.27

2 files

0.1.4.26

2 files

0.1.4.25

2 files

0.1.4.24

2 files

0.1.4.23

2 files

0.1.4.22

2 files

0.1.4.21

2 files

0.1.4.20

2 files

0.1.4.19

2 files

0.1.4.18

2 files

0.1.4.17

2 files

0.1.4.16

2 files

0.1.4.15

2 files

0.1.4.14

2 files

0.1.4.13

2 files

0.1.4.12

2 files

0.1.4.11

2 files

0.1.4.10

2 files

0.1.4.9

2 files

0.1.4.8

2 files

0.1.4.7

2 files

0.1.4.6

2 files

0.1.4.5

2 files

0.1.4.4

2 files

0.1.4.3

2 files

0.1.4.2

2 files

0.1.4.1

2 files

0.1.3.27

2 files

0.1.3.26

2 files

0.1.3.25

2 files

0.1.3.24

2 files

0.1.3.22

2 files

0.1.3.21

2 files

0.1.3.20

2 files

0.1.3.19

2 files

0.1.3.18

2 files

0.1.3.17

2 files

0.1.3.16

2 files

0.1.3.15

2 files

0.1.3.14

2 files

0.1.3.13

2 files

0.1.3.12

2 files

0.1.3.11

2 files

0.1.3.10

2 files

0.1.3.9

2 files

0.1.3.8

2 files

0.1.3.7

2 files

0.1.3.6

2 files

0.1.3.5

2 files

0.1.3.4

2 files

0.1.3.3

2 files

0.1.3.2

2 files

0.1.3.1

2 files

0.1.2.17

2 files

0.1.2.16

2 files

0.1.2.15

2 files

0.1.2.12

2 files

0.1.2.11

2 files

0.1.2.10

2 files

0.1.2.9

2 files

0.1.2.8

2 files

0.1.2.7

2 files

0.1.2.6

2 files

0.1.2.5

2 files

0.1.2.4

2 files

0.1.2.3

2 files

0.1.2.2

2 files

0.1.2.1

2 files

0.1.1.48

2 files

0.1.1.47

2 files

0.1.1.46

2 files

0.1.1.45

2 files

0.1.1.44

2 files

0.1.1.43

2 files

0.1.1.42

2 files

0.1.1.41

2 files

0.1.1.40

2 files

0.1.1.39

2 files

0.1.1.38

2 files

0.1.1.37

2 files

0.1.1.36

2 files

0.1.1.35

2 files

0.1.1.34

2 files

0.1.1.33

2 files

0.1.1.32

2 files

0.1.1.31

2 files

0.1.1.30

2 files

0.1.1.29

2 files

0.1.1.28

2 files

0.1.1.27

2 files

0.1.1.26

2 files

0.1.1.25

2 files

0.1.1.24

2 files

0.1.1.23

2 files

0.1.1.22

2 files

0.1.1.21

2 files

0.1.1.20

2 files

0.1.1.19

2 files

0.1.1.18

2 files

0.1.1.17

2 files

0.1.1.16

2 files

0.1.1.15

2 files

0.1.1.14

2 files

0.1.1.13

2 files

0.1.1.12

2 files

0.1.1.11

2 files

0.1.1.10

2 files

0.1.1.9

2 files

0.1.1.8

2 files

0.1.1.7

2 files

0.1.1.6

2 files

0.1.1.5

2 files

0.1.1.4

2 files

0.1.1.3

2 files

0.1.1.2

2 files

0.1.1.1

2 files

0.1.1

2 files

0.1

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page