sage-lib


Namesage-lib JSON
Version 0.1.5.23 PyPI version JSON
download
home_pageNone
SummaryA library for advanced scientific calculations and visualization
upload_time2024-11-17 11:40:43
maintainerNone
docs_urlNone
authorLombardi, Juan Manuel
requires_pythonNone
licenseMIT
keywords scientific calculations visualization computational chemistry quantum mechanics machine learning data analysis
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            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.


            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "sage-lib",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "scientific calculations visualization computational chemistry quantum mechanics machine learning data analysis",
    "author": "Lombardi, Juan Manuel",
    "author_email": "lombardi@fhi-berlin.mpg.de",
    "download_url": "https://files.pythonhosted.org/packages/62/93/68d6f3d0c241e3e4a8fab2cd39e52eb8f45c772bd7101393532e54ea6e21/sage_lib-0.1.5.23.tar.gz",
    "platform": null,
    "description": "sage_lib\n\nOverview\n\nsage_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.\n\nFeatures\n\nAtomic Position Export: Converts atomic position files from one format to another, making data compatible with different simulation tools or visualization software.\n\nPlot 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.\n\nThermodynamic Analysis: Provides methods to calculate thermodynamic properties based on ab initio data. This includes phase diagrams, ensemble analysis, and more.\n\nBlender Integration for Rendering: Uses Blender to render atomic structures and molecular arrangements. Supports customization like resolution, camera angles, and the addition of fog effects.\n\nDynamic Molecular Analysis: Analyzes molecular dynamics data, tracking species counts, evaluating force fields, and computing properties such as diffusion coefficients and bond distances.\n\nConfiguration 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.\n\nSolvent Environment Generation: Creates a solvent environment around a given molecular or atomic structure, supporting various solvents and configurations to simulate realistic environments.\n\nDimer 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.\n\nSurface Disassembly: Generates configurations that allow the disassembly of surfaces, which is particularly useful for understanding surface stability and catalysis.\n\nCustomizable File Management: Provides functionalities for handling, reading, and exporting files in different formats including VASP, XYZ, and others.\n\nInstallation\n\nTo install sage_lib, use the following command:\n\npip install sage_lib\n\nEnsure that you have Python 3.7 or higher.\n\nUsage\n\nsage_lib can be used from the command line or programmatically.\n\nCommand Line Usage\n\nThe library includes a console command sage which can be used to execute various subcommands:\n\nsage export --path ./data --source VASP --output_path ./converted --output_source PDB\n\nThis command will convert atomic position files from VASP format to PDB format, saving the output in the ./converted directory.\n\nAnother example for generating a plot:\n\nsage plot --path ./data --plot bands --fermi 5.0 --output_path ./plots\n\nThis command generates a band structure plot using the data found in the specified directory.\n\nProgrammatic Usage\n\nBelow is a Python example that demonstrates how to use sage_lib programmatically:\n\nfrom sage_lib.partition import Partition\n\n# Initialize a Partition object\nPT = Partition(path='./data')\n\n# Read files from a specified location\nPT.read_files(file_location='./data', source='VASP', verbose=True)\n\n# Export files in a different format\nPT.export_files(file_location='./output', source='PDB', verbose=True)\n\nThis example initializes a Partition object, reads files from a directory, and exports them to a different format.\n\nDependencies\n\nsage_lib requires the following packages:\n\nnumpy: for numerical operations\n\nmatplotlib: for plotting and visualization\n\nscipy: for scientific computations\n\nimageio: for managing image files\n\nOptional dependencies include:\n\npytest: for testing\n\nflake8: for code linting\n\nsphinx: for generating documentation\n\nLicense\n\nsage_lib is licensed under the MIT License. For more details, refer to the LICENSE file.\n\nContributing\n\nContributions are welcome! Please feel free to open an issue or a pull request on the GitHub repository to contribute to the project.\n\nContact\n\nFor questions, please contact the author via email: lombardi@fhi-berlin.mpg.de\n\nFor bug reports or feature requests, visit the issues page.\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A library for advanced scientific calculations and visualization",
    "version": "0.1.5.23",
    "project_urls": null,
    "split_keywords": [
        "scientific",
        "calculations",
        "visualization",
        "computational",
        "chemistry",
        "quantum",
        "mechanics",
        "machine",
        "learning",
        "data",
        "analysis"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8a3d19d5684322af504d5c978d140c0e4155eb5f055686818fd401d756c7b47f",
                "md5": "c141affc365d9c51e77e3289faef8313",
                "sha256": "5bd70dc8563e868b70651a2409e1e73039db561dc10b6e127544443989ba4361"
            },
            "downloads": -1,
            "filename": "sage_lib-0.1.5.23-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c141affc365d9c51e77e3289faef8313",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 404657,
            "upload_time": "2024-11-17T11:40:41",
            "upload_time_iso_8601": "2024-11-17T11:40:41.810210Z",
            "url": "https://files.pythonhosted.org/packages/8a/3d/19d5684322af504d5c978d140c0e4155eb5f055686818fd401d756c7b47f/sage_lib-0.1.5.23-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "629368d6f3d0c241e3e4a8fab2cd39e52eb8f45c772bd7101393532e54ea6e21",
                "md5": "44c99a0d302bbb3335173f3d0e5ee013",
                "sha256": "14b8bbc568bf8525d1092c3b1868ce45bb2bdb36402cb0671ed09192e9b0d3ed"
            },
            "downloads": -1,
            "filename": "sage_lib-0.1.5.23.tar.gz",
            "has_sig": false,
            "md5_digest": "44c99a0d302bbb3335173f3d0e5ee013",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 288504,
            "upload_time": "2024-11-17T11:40:43",
            "upload_time_iso_8601": "2024-11-17T11:40:43.910555Z",
            "url": "https://files.pythonhosted.org/packages/62/93/68d6f3d0c241e3e4a8fab2cd39e52eb8f45c772bd7101393532e54ea6e21/sage_lib-0.1.5.23.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-17 11:40:43",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "sage-lib"
}
        
Elapsed time: 0.81970s