Computes ignition conditions for Type I X-ray bursts using a multi-zone model of the Neutron star accreting layer
Project description
Settling solver - the BEANSp edition
Forked from settle project by Andrew Cumming https://github.com/andrewcumming/settle
BEANSp Repo: https://github.com/adellej/beans
Features
This code computes ignition conditions for Type I X-ray bursts using a multi-zone model of the accreting layer (including hot CNO hydrogen burning, but not helium burning), but a one-zone ignition criterion. For more details, see Cumming & Bildsten (2000).
Credits
Rotational Evolution During Type I X-Ray Bursts, Andrew Cumming, Lars Bildsten (2000) - https://arxiv.org/abs/astro-ph/0004347
Package installation and usage
Create and activate a clean conda environment
The example is for python 3.8, but should work for any version 3.6 to 3.11 as well.
# remove existing environment if needed - to start from scratch conda remove -n settle-3.8 --all # create blank conda environment conda create --name settle-3.8 python==3.8.* conda activate settle-3.8
Install/upgarde pip, build and local install
python3 -m pip install --upgrade pip python3 -m pip install --upgrade build
# test build & local install # The "-e" install does not seem to be reliable for re-install # - keeps pulling some old build from somewhere middlewhere. # *Do not use: python -m pip install -e .* # This is more reliable: python3 -m build python3 -m pip install .
Note: when workinng on the code, in case of doubts that recent changes got propagated, uninstall & purge the installed module _before_ pip install to ensure the installed version has all the recent modifications.
python3 -m pip -v uninstall pySettle python3 -m pip -v cache purge
After this, in that enviroment, pySettle just works from every directorty, providing the conda environment is activated. Imports like:
from pySettle import settler as se
(See test_settle_sft.py.)
Run short functional test (SFT) manually
cd tests
python ./test_settle_sft.py
Publish package on PyPI
python3 -m pip install twine
Test PyPI : testing all works, but not really publishing to a place where all the world is searching for python packages.
python3 -m twine upload --repository testpypi dist/*
Real PyPI
python3 -m twine upload dist/*
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
Built Distributions
Hashes for pySettle-0.1.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae7288dde3dfe2a798a8a6155a7a798ba092b8b54072f36429760ae07b55399f |
|
MD5 | 1ce694c27a296c875302042fbc6e3ce4 |
|
BLAKE2b-256 | 485aa2317d33346a121414512cbf8dea91aeb18c780519878a72b29bed64f4bc |
Hashes for pySettle-0.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76ef100f067f160967ae9d916959f8877aa6789da21b940dab1672dfc81230fe |
|
MD5 | 921a7f096feede903f03383eddd48aa8 |
|
BLAKE2b-256 | a2b2b81a535ef445a7350abf32dd50ac4747a4b9a5d22a03a06997a4bd80656a |
Hashes for pySettle-0.1.2-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a2c6e0fdc1eac2fb395e5af2c8676677880e87968e1be0c555c030f8c417bcd |
|
MD5 | e709f8c5c966115967941323cfb0940b |
|
BLAKE2b-256 | 34426517bb3c07cb72f000bc565eb82ad284f8e6b3cb6d0b7449c8c1b087cbf6 |
Hashes for pySettle-0.1.2-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41739d94dc387656017cbf161c0a77765fd59c573896a9e58a467e1094e70c2c |
|
MD5 | fe4e678c6a616a451a430a35b15e8e0d |
|
BLAKE2b-256 | 1fcb8a16de829facbce7280339f56cae9d0bb6541a5157ae9c9ac2adc070a8c7 |
Hashes for pySettle-0.1.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e89ed264ce4612598f6e8ec92903e1c0bc75b55a040fb89c2f72b16291b4de38 |
|
MD5 | 9cdefaa9e865859a6ecb442942758974 |
|
BLAKE2b-256 | 2c68f361e19a4a5cc3d9d84ab5807f09e849d73f43cd2e0ba351051f4375096d |
Hashes for pySettle-0.1.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa25cde2b62f0592b10568069343321d5c4b235a6604eb1075fe350ee184fd0b |
|
MD5 | b4e83bbd4422a9a058983008834f3674 |
|
BLAKE2b-256 | fc3e7f74b0064e5341d0ad83e6794615368900d338de6bdbb1db94517b82e285 |
Hashes for pySettle-0.1.2-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ea971fe72292cf419c6dc68bb071892896958f561e899a6e80e7024bd4dd348 |
|
MD5 | db45dbf343c3d78729130369ce591a76 |
|
BLAKE2b-256 | 36f8efe9e764f645aa0fe512482e4c0ffb7bfb56c591e0dd1f3e5f7868984e7d |
Hashes for pySettle-0.1.2-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 566ba9fa60629f938b0b09049cd540aaf36eba579d90a64b11dfc333ffd0777b |
|
MD5 | e6e5837b34b26fc16b0b6fd99799dfcc |
|
BLAKE2b-256 | b288bba1215a302b60341d12905b778d05b295b727f66951ad2e65d3cb08b963 |
Hashes for pySettle-0.1.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50692f0fca1b2a35f5f615a3e995a733db63e5ec3d60cbc40283299edee8f6b5 |
|
MD5 | dfb43a98c1c0cf37843265b62b3c4e5f |
|
BLAKE2b-256 | 6cdf3851e04faf3f891fa00b4e9d8d1f52c91e8a06df06254bbf9ce96138e7dc |
Hashes for pySettle-0.1.2-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 870ad67de53e8e3d59273167aebd432ebf8b4aab3adb50f4dac862575b950203 |
|
MD5 | e1485c291ac3fa0fa05c4bbcac468be2 |
|
BLAKE2b-256 | 65a89ca58731699727a6ea1c55fc56142036243619a2f5457d3cd2e70bb4775e |