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
Installation from source
The slightly more complicated but more reliable method to install DrawLevels is to install from source. While this sidesteps the convenience given by the package manager 'pip', it also avoids the problems it can cause. To install first clone the GitHub repository with:
git clone https://github.com/TheThirdFool/DrawLevels
Then enter the folder:
cd DrawLevels
Now you can use pip to build the package from source:
pip install .
This has the advantage of being a surefire way of ensuring installation of the most up-to-date version of DrawLevels - as the GitHub is regularly updated. However, any further updates will require a full repeat of this process, rather than updating via pip.
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.12-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da8b0366288e83ac24813e333d5f4bbd727672e97801815a440cfc8a7718d09a |
|
MD5 | 8c16a3c1d550730e01b33f40b5e668c1 |
|
BLAKE2b-256 | 20b0af75a801c08631af88c5113e6e99f8c40053a39f559a29a5ff083195d4fc |