Skip to main content

Visualizer plugin to use ase with weas-widget

Project description

ase-weas-widget

PyPI - Version PyPI - Python Version


Table of Contents

Installation

pip install ase-weas-widget

Usage

This plugin allows viewing ase.Atoms object using ase.visualize.view via the weas-widget in a notebook environment:

from ase.build import bulk
from ase.visualize import view
atoms = bulk('Si', 'diamond', 5.4)
view(atoms.repeat((2,2,2)), viewer='weas')

Output example:

example output

The appearance of the resulting plot can be customized with a callback function that modifies the underlying WeasWidget object:

def callback(viewer):
    """Callback to customize the WeasWidget object"""
    viewer.avr.model_style = 1
    viewer.avr.show_bonded_atoms = True
    viewer.avr.color_type = "VESTA"
    
atoms = bulk('Si', 'diamond', 5.4)
view(atoms.repeat((2,2,2)), viewer='weas', callback=callback)

Output example:

example output

Please refer to the documentation of weas-widget for details.

License

ase-weas-widget is distributed under the terms of the MIT license.

Project details


Download files

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

Source Distribution

ase_weas_widget-0.1.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

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

ase_weas_widget-0.1.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file ase_weas_widget-0.1.0.tar.gz.

File metadata

  • Download URL: ase_weas_widget-0.1.0.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.0

File hashes

Hashes for ase_weas_widget-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0bb17df8b45e293dd44b1732640d97f8ce746af54ed15f523cc7dbcfda89286e
MD5 03d47bab154c3b01a76317ba27f93a34
BLAKE2b-256 bb191e8c7ed8e294f47d976e04120cd9d63a3dda217d3bfd65e05d9f6f164f20

See more details on using hashes here.

File details

Details for the file ase_weas_widget-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ase_weas_widget-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9af6ad37af1fc88ad809d80868c2d694bfecb65ef80bc38cb3bda3802ee642ec
MD5 e2a66223a057a991c5b5f566e084c51b
BLAKE2b-256 4bf21af26de8f200470b58c1e105e9f99585f5f3894c9615452c18d37773cb16

See more details on using hashes here.

Supported by

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