Skip to main content

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

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

  1. 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
  2. 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

pySettle-0.1.2.tar.gz (39.5 kB view hashes)

Uploaded Source

Built Distributions

pySettle-0.1.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (150.9 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

pySettle-0.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (150.9 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

pySettle-0.1.2-cp310-cp310-macosx_11_0_arm64.whl (41.5 kB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

pySettle-0.1.2-cp310-cp310-macosx_10_9_x86_64.whl (44.9 kB view hashes)

Uploaded CPython 3.10 macOS 10.9+ x86-64

pySettle-0.1.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (150.9 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

pySettle-0.1.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (150.9 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

pySettle-0.1.2-cp38-cp38-macosx_11_0_arm64.whl (44.4 kB view hashes)

Uploaded CPython 3.8 macOS 11.0+ ARM64

pySettle-0.1.2-cp38-cp38-macosx_10_9_x86_64.whl (45.0 kB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

pySettle-0.1.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (150.9 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

pySettle-0.1.2-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (151.9 kB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.17+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page