Visualizer plugin to use ase with weas-widget
Project description
ase-weas-widget
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:
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:
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0bb17df8b45e293dd44b1732640d97f8ce746af54ed15f523cc7dbcfda89286e
|
|
| MD5 |
03d47bab154c3b01a76317ba27f93a34
|
|
| BLAKE2b-256 |
bb191e8c7ed8e294f47d976e04120cd9d63a3dda217d3bfd65e05d9f6f164f20
|
File details
Details for the file ase_weas_widget-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ase_weas_widget-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9af6ad37af1fc88ad809d80868c2d694bfecb65ef80bc38cb3bda3802ee642ec
|
|
| MD5 |
e2a66223a057a991c5b5f566e084c51b
|
|
| BLAKE2b-256 |
4bf21af26de8f200470b58c1e105e9f99585f5f3894c9615452c18d37773cb16
|