Skip to main content

PyPi version crates.io

roche-rs is a translation of Tom Marsh's C++ cpp-roche package for modelling Roche-distorted binary systems. It also has a few useful functions and types from cpp-subs such as Vec3 and Point.

Rust

The latest version of roche-rs can be viewed at roche-rs and can be added to a rust project with

cargo add roche-rs

Python

This package has also been wrapped for python to replicate trm-roche and can be installed with pip from PyPI

pip install roche

This is very much a first go at it. Most functions have been tested against their trm.roche counterparts however not all functions have been tested as of yet and some bugs may remain. Please add an issue on the Github repo if you find any.

Some functions from cpp-roche/trm-roche have not been translated yet so this is still a work-in-progress. Please add an issue on the Github repo if there's a specific function from cpp-roche/trm-roche that you'd like adding.

Functions still to add for Python are:

  • astream
  • pvstream
  • qirbs

Functions still to add for Rust are:

  • third_contact
  • fourth_contact
  • eprob
  • flobe1
  • hits
  • irrad
  • rdot
  • rlobe_eggleton

Metadata

Release files for roche 0.5.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for roche 0.5.4
File Size Uploaded
roche-0.5.4.tar.gz 43.9 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for roche 0.5.4
File Interpreter ABI Platform
roche-0.5.4-cp38-abi3-win_amd64.whl CPython 3.8 abi3 Windows x86-64 Details
roche-0.5.4-cp38-abi3-manylinux_2_35_x86_64.whl CPython 3.8 abi3 Linux glibc 2.35+ x86-64 Details
roche-0.5.4-cp38-abi3-macosx_11_0_arm64.whl CPython 3.8 abi3 macOS 11.0+ ARM64 Details

Total release size: 1.1 MB

Release files / roche-0.5.4.tar.gz

Download URL roche-0.5.4.tar.gz
Size 43.9 kB
Tags Source
SHA-256 checksum
How to use checksums
8855ac1d85fd64f0a5b82a5114c2b48c5b5fcac1805b36a9d1c06e60b68cf582
BLAKE2b-256 checksum
How to use checksums
1d3628fc4a1dd7daff37aa33a84fb7d239f621801184c9e61a181d62c0d54969
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via maturin/1.14.1

Release files / roche-0.5.4-cp38-abi3-win_amd64.whl

Download URL roche-0.5.4-cp38-abi3-win_amd64.whl
Size 255.9 kB
Tags CPython 3.8 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
9bb353b364052bb791de9f97cbd52e8dc11f10055dfe34a63eb0442f05e93177
BLAKE2b-256 checksum
How to use checksums
5e963d16b2972dba7d43de24512b15641bd7a38f4edbda75e03f9a58d17c03cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via maturin/1.14.1

Release files / roche-0.5.4-cp38-abi3-manylinux_2_35_x86_64.whl

Download URL roche-0.5.4-cp38-abi3-manylinux_2_35_x86_64.whl
Size 403.1 kB
Tags CPython 3.8 Linux glibc 2.35+ x86-64 abi3
SHA-256 checksum
How to use checksums
58f84464190348bc69a8b944d8df0034869889bcf59a70ac18e3d7cb49b5e38d
BLAKE2b-256 checksum
How to use checksums
42460bad0e386ae861e94b8ad24db431b0d1af66ed2cf17d8da343f24c80c80c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via maturin/1.14.1

Release files / roche-0.5.4-cp38-abi3-macosx_11_0_arm64.whl

Download URL roche-0.5.4-cp38-abi3-macosx_11_0_arm64.whl
Size 355.0 kB
Tags CPython 3.8 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
e9b452f48e147dd0f7b69542190e5e211eff9736ab4e4d27727534000c5e2bec
BLAKE2b-256 checksum
How to use checksums
e91fa2df4f99906636c203d29cfa4fda58e5c5b5bafbe174a2acbe7bfd208f1b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via maturin/1.14.1

Release history Release notifications | RSS feed

0.5.6

4 release files

0.5.5

4 release files

This release

0.5.4 This release

4 release files

0.5.3

4 release files

0.5.2

4 release files

0.5.1

4 release files

0.5.0

4 release files

0.4.5

4 release files

0.4.4

4 release files

0.4.2

4 release files

0.4.1

4 release files

0.3.0

4 release files

0.2.8

4 release files

0.2.7

4 release files

0.2.3

4 release files

0.2.2

3 release files

0.2.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page