Skip to main content

A toolbox for working with observations of star clusters.

Project description

docs PyPI Build Docs

ocelot

A toolbox for working with observations of star clusters.

In the long-running tradition of astronomy software, ocelot is not a good acronym for this project. It's the Open-source star ClustEr muLti-purpOse Toolkit. (We hope the results you get from this package are better than this acronym)

Current package status

⚠️ ocelot is currently in alpha and is in active development. Expect breaking API changes ⚠️

For the time being, ocelot is a collection of code that emilyhunt wrote during her PhD, but the eventual goal will be to make a package usable by the entire star cluster community. If you'd like to see a feature added, then please consider opening an issue and proposing it!

Installation

Install from PyPI with:

pip install ocelot

Currently, using ocelot.simulate also requires manually downloading data from here. Place it at a directory of your choosing, and set the environment variable OCELOT_DATA to this location.

If you're just working with a local dev copy of ocelot (i.e. you installed it via git clone), then you could put the data at the default location - /data in this folder.

Development

We recommend using uv to manage Python dependencies when developing a local copy of the project. Here's everything you need to do:

  1. Clone the repo:
git clone https://github.com/emilyhunt/ocelot
  1. Install uv, if you haven't already. (This won't mess with any of your other Python installations.)

  2. Navigate to the new ocelot directory, and sync the project dependences including dev and docs ones with:

uv sync --all-extras

After installing development dependencies, you can also locally view edits to the package's documentation. To view a local copy of the documentation, do mkdocs serve. You can do a test build with mkdocs build.

Citation

There is currently no paper associated with ocelot. For now, please at least mention the package and add a footnote to your mention, linking to this repository - in LaTeX, that would be:

\footnote{\url{https://github.com/emilyhunt/ocelot}}

You can also cite Hunt & Reffert 2021, which was the paper for which development of this module began:

@ARTICLE{2021A&A...646A.104H,
       author = {{Hunt}, Emily L. and {Reffert}, Sabine},
        title = "{Improving the open cluster census. I. Comparison of clustering algorithms applied to Gaia DR2 data}",
      journal = {\aap},
     keywords = {methods: data analysis, open clusters and associations: general, astrometry, Astrophysics - Astrophysics of Galaxies, Astrophysics - Solar and Stellar Astrophysics},
         year = 2021,
        month = feb,
       volume = {646},
          eid = {A104},
        pages = {A104},
          doi = {10.1051/0004-6361/202039341},
archivePrefix = {arXiv},
       eprint = {2012.04267},
 primaryClass = {astro-ph.GA},
       adsurl = {https://ui.adsabs.harvard.edu/abs/2021A&A...646A.104H},
      adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}

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

ocelot-0.4.10.tar.gz (118.2 kB view details)

Uploaded Source

Built Distribution

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

ocelot-0.4.10-py3-none-any.whl (125.7 kB view details)

Uploaded Python 3

File details

Details for the file ocelot-0.4.10.tar.gz.

File metadata

  • Download URL: ocelot-0.4.10.tar.gz
  • Upload date:
  • Size: 118.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for ocelot-0.4.10.tar.gz
Algorithm Hash digest
SHA256 284f7aed906c807e4a4bb6fb5e21277a8a686afde65e4c509d41b505b807484e
MD5 4f219d9dbc19bd95310150f5c649d797
BLAKE2b-256 599ca47cf6dfa8e3008baf8f0d10572a1723c81674d7374abe99450723d0f853

See more details on using hashes here.

File details

Details for the file ocelot-0.4.10-py3-none-any.whl.

File metadata

  • Download URL: ocelot-0.4.10-py3-none-any.whl
  • Upload date:
  • Size: 125.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for ocelot-0.4.10-py3-none-any.whl
Algorithm Hash digest
SHA256 845a29c12d797a6d158f0467b9b22af6bd55350c9540b284bf62a330c07bd6d6
MD5 3d4b26e7e2c139d969396c3989bc6d94
BLAKE2b-256 744284d20aa43afaaccc2e6302bf9d9f97d28908e3e2ca1f488fad2e0f175af9

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