Library to draw the pyrochlore lattice and configurations of the Spin Ice model
Project description
Overview
Library based on matplotlib (>=3.3) to draw the pyrochlore lattice (corner-sharing tetrahedra) and configurations of the Spin Ice model.
Installation
$ pip install pyrodraw
Basic usage
It can, and probably should, be executed as a script:
python -m pyrodraw [<parameters>...]
and follow the instructions which appear on the screen.
Depending on the parameters supplied:
- No arguments: draws only the pyrochlore lattices and adds details such as names to the axes.
- '+ z': draws the spin ice +z configuration.
- 'ms': draws the saturation configuration with the field at [111], with positives simple monopoles in all Up Tetrahedra.
- 'md': draws the configuration with positive double monopoles in all Up Tetrahedra.
- Name of a file along with a column number: the data is obtained from it to draw the configuration.
It's also possible to import it and use it to draw more specific configurations.
Possible general improvements
The following are things I didn't know how to do it properly by the time I built the library, and for the purpose of the project it didn't worth changing them when I published it.
- The documentation is not properly done (doesn't follow a docstring convention), and it's in spanish.
- It probably should use
argparsefor managing the arguments.
ToDo
- Add a circle path as a bottom lid for the arrows.
- Be possible to annotate the field direction when using the field arrow.
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 pyrodraw-1.1.3.tar.gz.
File metadata
- Download URL: pyrodraw-1.1.3.tar.gz
- Upload date:
- Size: 14.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.10 CPython/3.7.8 Linux/5.4.0-52-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b231ac9be45bdd7f1de0ec65ab0bddef693d29d33d67f71d804cfc75a69d36f5
|
|
| MD5 |
e3cbfafb94a5ed9a49526a13d54e92b2
|
|
| BLAKE2b-256 |
d2d8fbfb954eec06b1f3057f62ef669716dfbb045865a6a5a4e23e208c85bcbb
|
File details
Details for the file pyrodraw-1.1.3-py3-none-any.whl.
File metadata
- Download URL: pyrodraw-1.1.3-py3-none-any.whl
- Upload date:
- Size: 20.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.10 CPython/3.7.8 Linux/5.4.0-52-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c67624d43230247139ed2da3b3c3e7b0700a38e43559e386a3fe5b8cff4287c
|
|
| MD5 |
c8206343213493f34c81905dfebae60a
|
|
| BLAKE2b-256 |
924f91c64cecfbf6251ef4f0f3d6b33418820658140181ccdd458b8ca11a678e
|