Wakeflow

Wakeflow: A Python package for semi-analytic models of planetary wakes - Published in JOSS (2023)

https://github.com/tomhilder/wakeflow

Science Score: 95.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 4 DOI reference(s) in README and JOSS metadata
  • Academic publication links
    Links to: iop.org, joss.theoj.org
  • Committers with academic emails
    3 of 7 committers (42.9%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
    Published in Journal of Open Source Software

Keywords

analytical astronomy astronomy-astrophysics astrophysics modelling numerical planet-formation protoplanetary-discs protoplanetary-disks python
Last synced: 6 months ago · JSON representation

Repository

Generate and manipulate semi-analytic models of planet wakes

Basic Info
  • Host: GitHub
  • Owner: TomHilder
  • License: mit
  • Language: Python
  • Default Branch: master
  • Homepage:
  • Size: 150 MB
Statistics
  • Stars: 11
  • Watchers: 2
  • Forks: 7
  • Open Issues: 10
  • Releases: 5
Topics
analytical astronomy astronomy-astrophysics astrophysics modelling numerical planet-formation protoplanetary-discs protoplanetary-disks python
Created almost 5 years ago · Last pushed over 1 year ago
Metadata Files
Readme License

README.md

PyPI Package Python License JOSS

GitHub Workflow Status Docs


Logo

Generate and manipulate semi-analytic models of planet wakes

Quickstart tutorial »
Documentation »

Overview

wakeflow is a Python package primarily for calculating tidally-induced perturbations resulting from a planet embedded in a gas disk. It is an implementation of both the linear theory for planet wake generation (Goldreich and Tremaine 1979) and the non-linear theory of wake propagation (Rafikov 2002) in 2D. wakeflow lets you generate these models by specifying disk and system properties as typically parameterised in the planet formation literature. It also contains additional tools allowing you to: * Visualise your results * Create 3D models under some assumptions * Interface directly with the radiative transfer code MCFOST to generate synthetic images of these models * (Planned) Rotate and project your models to create line-of-sight maps of velocity perturbations at some emitting layer * (Planned) Create analytic predictions for peak velocity maps as found in Calcino et al. 2022

wakeflow is intended to allow both theorists and observers to easily generate models of the interaction between disks and embedded planets, instead of having to run expensive fluid simulations. In particular, wakeflow allows researchers to easily test whether a planet can explain kinematic perturbations observed in some set of disk observations, so-called velocity kinks (see for example Pinte et al. 2018). wakeflow therefore also allows for a fast exploration of disk and planet parameters in order to determine those most likely to recreate observations, before resources are spent on 3D simulations. In addition, wakeflow models may be used with MCFOST to create synthetic images that may be compared directly with observations.

(back to top)

Installation

wakeflow may be most easily installed from the Python Package Index (PyPI), or can also be installed from the GitHub repository if you wish to make contributions. Dependencies for wakeflow consist mostly of standard python libraries. We recommend using a package manager such as Anaconda to make your life easier, but this is not required.

PyPI (pip)

The easiest way to install wakeflow is via PyPI, using pip: sh pip install wakeflow that's it!

From source (GitHub)

If you want to contribute to, or modify wakeflow, you should install it from the GitHub repository. After installing the dependencies (see below), simply fork the repo using the button in the top right, and then clone it: sh git clone https://github.com/<replace-by-your-username>/wakeflow.git Alternatively, you may install from source even if you do not wish to edit wakeflow, in which case I would recommend skipping the fork and simply cloning the repo directly: sh git clone https://github.com/TomHilder/wakeflow.git Navigate to the directory it is installed in: sh cd wakeflow You can verify that you are in the correct directory by checking that you see README.md when you run: sh ls Now we use pip to create a local and editable install of wakeflow: sh python -m pip install -e . Do not forget the dot (.) in the above command, as it tells pip to look in the current working directory (where wakeflow is). The advantage of installing this way is that it places a link to wakeflow in your site-packages folder instead of moving it there. Now when you edit the code in wakeflow/src/wakeflow/ it will edit your installation!

(back to top)

Dependencies

Python packages:

  • numpy
  • matplotlib
  • astropy
  • scipy
  • setuptools
  • pyyaml
  • tqdm
  • pytest (optional)
  • pytest-cov (optional)
  • pymcfost (optional, only if interfacing with MCFOST)

If you install wakeflow using pip then the required dependencies will be automatically installed.

Usage

Please refer to the Quickstart tutorial for the most typical usage of wakeflow including generating models and reading the results. Additional examples of more advanced usage can be found in the Documentation.

(back to top)

Testing

wakeflow is automatically unit-tested on Github using Actions and tox. If you have installed wakeflow from source, you may run a local test on your machine provided that you have pytest and pytest-cov installed. Simply navigate to your installation directory and run: sh pytest

Contributing

Contributions to wakeflow are welcome. If you would like to implement a new feature, please:

  1. Install using the above installation from source instructions
  2. Create your Feature Branch (git checkout -b feature/NewFeature)
  3. Commit your Changes (git commit -m 'Added some NewFeature')
  4. Push to the Branch (git push origin feature/NewFeature)
  5. Open a Pull Request

If you have a suggestion that would improve wakeflow but do not have the time or means to implement it yourself, please simply open an issue with the tag "enhancement". If you would like to report a bug, please open an issue with the tag "bug".

Don't forget to give the project a star!

(back to top)

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

Citing

Please cite Hilder et al. (2023) and Bollati et al. (2021) in any work where wakeflow has been used. Please contact us if wakeflow is useful to you, we welcome any collaboration opportunities.

(back to top)

Getting Help

If you are experiencing issues with wakeflow, please try the following:

  1. Check the documentation to see if it may be easily resolved
  2. Open an issue on the repository
  3. Feel free to contact us directly using the details below

Contact

If you are having difficulties installing or using wakeflow, please let us know! We are happy to answer any questions or provide assistance.

Thomas Hilder - Thomas.Hilder@monash.edu

Project Link: https://github.com/TomHilder/wakeflow

(back to top)

Acknowledgments

wakeflow is based on the semi-analytic theory of planets wakes described in Rafikov (2002) and Bollati et al. (2021). The code is partially adapted from analytical kinks which was written by Francesco Bollati, Daniele Fasano and Thomas Hilder, and can be found here.

Additional acknowledgements: * Img Shields * Best-README-Template * Tox * Tox GH Actions

(back to top)

Owner

  • Name: Tom Hilder
  • Login: TomHilder
  • Kind: user
  • Location: Melbourne, Australia
  • Company: Monash University

Astrophysics PhD student at Monash University, Australia.

JOSS Publication

Wakeflow: A Python package for semi-analytic models of planetary wakes
Published
February 28, 2023
Volume 8, Issue 82, Page 4863
Authors
Thomas Hilder ORCID
School of Physics and Astronomy, Monash University, Australia
Daniele Fasano ORCID
Dipartimento di Fisica, Università degli Studi di Milano, Italy
Francesco Bollati
Dipartimento di Scienza e Alta Tecnologia, Università degli Studi dell'Insubria, Italy
Jacob Vandenberg ORCID
School of Mathematics, Monash University, Australia
Editor
Dan Foreman-Mackey ORCID
Tags
astronomy dynamics protoplanetary disks planet formation

GitHub Events

Total
Last Year

Committers

Last synced: 7 months ago

All Time
  • Total Commits: 318
  • Total Committers: 7
  • Avg Commits per committer: 45.429
  • Development Distribution Score (DDS): 0.101
Past Year
  • Commits: 1
  • Committers: 1
  • Avg Commits per committer: 1.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Tom Hilder t****p@g****m 286
Daniele Fasano 8****o 17
Tom Hilder t****r@d****u 6
Jacob Vandenberg j****4@s****u 4
Cristiano Longarini c****i@u****t 2
Christophe Pinte c****e@u****r 2
Dan Foreman-Mackey d****m@d****o 1

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 16
  • Total pull requests: 18
  • Average time to close issues: about 2 months
  • Average time to close pull requests: 9 days
  • Total issue authors: 2
  • Total pull request authors: 6
  • Average comments per issue: 0.44
  • Average comments per pull request: 0.61
  • Merged pull requests: 16
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • TomHilder (10)
  • andizq (4)
Pull Request Authors
  • TomHilder (8)
  • JacobVandenberg (3)
  • cpinte (2)
  • DanieleFasano (2)
  • crislong (2)
  • dfm (1)
Top Labels
Issue Labels
enhancement (8) bug (2)
Pull Request Labels
enhancement (2)

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 33 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 12
  • Total maintainers: 1
pypi.org: wakeflow

Generate and manipulate semi-analytic models of planet wakes

  • Homepage: https://github.com/TomHilder/wakeflow
  • Documentation: https://wakeflow.readthedocs.io/
  • License: MIT License Copyright (c) 2022 Thomas Hilder Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  • Latest release: 1.4.0
    published over 2 years ago
  • Versions: 12
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 33 Last month
Rankings
Dependent packages count: 6.6%
Downloads: 10.8%
Forks count: 12.8%
Average: 16.5%
Stargazers count: 21.8%
Dependent repos count: 30.6%
Maintainers (1)
Last synced: 6 months ago

Dependencies

docs/requirements.txt pypi
  • myst-parser ==0.18.0
  • nbsphinx ==0.8.9
  • sphinx-rtd-theme ==1.0.0
.github/workflows/Tests.yml actions
  • actions/checkout v2 composite
  • actions/setup-python v2 composite
.github/workflows/draft-pdf.yml actions
  • actions/checkout v2 composite
  • actions/upload-artifact v1 composite
  • openjournals/openjournals-draft-action master composite