astroapers/lib.rs
1//! Rust-backed aperture overlap and summation utilities.
2
3pub mod aperture;
4
5mod geometry;
6#[cfg(feature = "python")]
7mod pyapi;
8
9pub use aperture::{
10 circle_bbox, circle_exact_weight_at_pixel, ellipse_bbox, ellipse_exact_weight_at_pixel,
11 rectangle_bbox, rectangle_exact_weight_at_pixel, BoundingBox, Ellipse, Rectangle,
12};
13
14#[cfg(feature = "extension-module")]
15use pyo3::prelude::*;
16
17#[cfg(feature = "extension-module")]
18#[pymodule]
19fn _rust(m: &Bound<'_, PyModule>) -> PyResult<()> {
20 pyapi::register(m)
21}