Skip to main content

A python packaged for analysing star clusters

Project description

clustertools

clustertools is a Python package for analysing star cluster simulations. The package is built around the StarCluster class, which will store all the necessary information from a given star cluster simulation to be used for anaylsis. All functions within clustertools are then designed to act on a StarCluster. clustertools can be used for unit and coordinate transformations, the calculation of key structural and kinematic parameters, analysis of the cluster’s orbit and tidal tails (with the help of galpy , and measuring common cluster properties like its mass function, density profile, and velocity dispersion profile (among others). While originally designed with star clusters in mind, clustertools can be used to study other types of N-body systems, including stellar streams and dark matter sub-halos.

The package contains functions for loading data from commonly used N-body codes, generic snapshots, and codes for generating initial conditions.

clustertools is developed on Github. Please go to https://github.com/webbjj/clustertools to report issues or contribute to the code.

Documentation for clustertools can be found at https://clustertools.readthedocs.io/en/latest/

Installation

clustertools can be installed either directly from the GitHub repository or via pip

To install clustertools from GitHub, simply clone the repository and install via setup tools:

git clone https://github.com/webbjj/clustertools.git cd clustertools python setup.py install Please note that if you don’t have permission to write files to the default install location (often /usr/local/lib), you will either need to run

sudo python setup.py install or

python setup.py install --prefix='PATH' where ‘PATH’ is a directory that you do have permission to write in and is in your PYTHONPATH.

It is also possible to install clustertools using pip:

pip install clustertools however please note this version is not updated as frequently as the GitHub repository. Similarly, if permissions are an issue, you can use:

pip install --user clustertools or

pip install clustertools --install-option="--prefix=PATH"

Note: For users looking to take advantage of the plotting features available in clustertools, it may be necessary to install the cm-super and dvipng packages if they aren't installed by default.

Requirements

clustertools requires the following python packages:

galpy (https://docs.galpy.org/en/v1.7.2/index.html) matplotlib numpy scipy astropy numba

Optional: limepy (https://readthedocs.org/projects/limepy/) AMUSE (https://amuse.readthedocs.io/en/latest/)

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

clustertools-1.1.0.tar.gz (45.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

clustertools-1.1.0-py3.9.egg (258.1 kB view details)

Uploaded Egg

File details

Details for the file clustertools-1.1.0.tar.gz.

File metadata

  • Download URL: clustertools-1.1.0.tar.gz
  • Upload date:
  • Size: 45.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.1

File hashes

Hashes for clustertools-1.1.0.tar.gz
Algorithm Hash digest
SHA256 ba84565c6897a923fba89cbe57513de27b96b703b84ff80b09521982fad1506f
MD5 e0fdfc994db4e4a9c20aa0038557c260
BLAKE2b-256 2d9b759e4b08322683c343b057614d1cc7a43d458a9b86ebeffa87f7e60b9ff5

See more details on using hashes here.

File details

Details for the file clustertools-1.1.0-py3.9.egg.

File metadata

  • Download URL: clustertools-1.1.0-py3.9.egg
  • Upload date:
  • Size: 258.1 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.1

File hashes

Hashes for clustertools-1.1.0-py3.9.egg
Algorithm Hash digest
SHA256 c832d30133db6442a3ed7c4a3114712b8821448200c771846fe4758da3f60ada
MD5 f7bfa53da87028119b849cd2616506b9
BLAKE2b-256 aeb9ebb3028abc06d1c400d3370cfe9cee92dd9b27b29649bba0c6f5a5c1e62c

See more details on using hashes here.

Supported by

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