A package for quickly generating simple nuclear level schemes.
Project description
DrawLevels
DrawLevels is a python3 package to enable quickly drawing a level scheme and easilly allowing for the slow encorporation of additional levels. The idea is that as a project goes forwards you can keep appending the file with new levels and transitions. This should be a lot easier than some of the more fiddly methods that exist. It allows for exact level schemes to be easily drawn.
This is probably not ready for use in publication yet - but this should change with further updates.
Install
To install use:
pip install DrawLevels
This should give you the most up-to-date version of the package.
A note for installation - this requires the module 'pycairo' in order to render the image. If not automatically installed, this can also be installed using:
pip install pycairo
Usage
There are example level scheme scripts included in the files 'Example.py' and 'Example2.py'. The level schemes that these produce are saved as 'ExampleLevelScheme.png' and 'ExampleLevelScheme_2.png'.
Example.py shows the standard level scheme style with a 60Ni decay scheme + an extra few (fake) levels in a 'branch' where the levels don't span the entire scheme. Example2.py shows the same information but this time both the real and fake transtions are in seperate branches with only the ground level spanning the whole diagram.
The python code must include the line:
include DrawLevels
Then can be run with:
python3 Example.py
More usage tips can be found on the GitHub wiki.
Thanks for using my maiden package! Enjoy!
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 Distributions
Built Distribution
Hashes for DrawLevels-0.2.10-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e410d274d29f9f8d37d6c5a1c20b941e5fc3b17591787106cd41fcd789ad5d1f |
|
MD5 | 45650d5b5e80665a133bf5c17062264e |
|
BLAKE2b-256 | b4c8cc67c8784db64f13a2d6f7851d9d6a2fdadd80b0c16c860d4dda861a3813 |