semvec/pypi-packages huggingface dataset:
erresire 0.1.5
Simulate large populations of strong gravitational lenses (Monte Carlo‑based).
License: MIT
Requires Python: >=3.8

<img width="403" height="150" alt="Erresire(2)" src="https://github.com/user-attachments/assets/17e22142-ca63-483d-b113-b656f44d3934" />



# Erresire

**Erresire** enables users to simulate **large populations of strong gravitational lenses** in an efficient and flexible manner via a Monte Carlo method.  
Users can customize the simulation by supplying catalogs of their choice for dark matter halos, galaxies, and sources.

###  Installation

You can install the latest version directly from PyPI:

```bash
pip install erresire
```

### Quickstart

The fastest way to get started is with the **model_run_example.ipynb** notebook provided in the `examples/` folder.

This notebook illustrates how to use the core Erresire functions and shows how to integrate **custom lens models** into your simulations.

Also within this directory are mini catalogs of galaxy, halo, and source properties. These small datasets allow you to quickly run the example notebook and explore the functionality of Erresire without needing large external files.

Galaxy data comes from the ComsoDC2 Synthetic Sky Catalog (https://iopscience.iop.org/article/10.3847/1538-4365/ab510c/pdf) and source data from the Quaia Gaia-unWISE Quasar Catalog (https://iopscience.iop.org/article/10.3847/1538-4357/ad1328/meta).
Creation of the halo data catalog is discussed in Mezini 2025 using particle data from the Symphony Simulation suite.

### IMPORTANT: Catalog Configuration

In **schema.md** we discuss the columns contained within the mock lens catalog and halo catalog.
For more information on the source and galaxy catalogs used to create the Erresire catalog, we recommend consulting the external resources linked above for each dataset.

To ensure compatibility with lenstronomy and to support reliable cross-matching between galaxies and their associated dark matter halos, all input data catalogs must follow specific configuration requirements.
These requirements are outlined in **input_data_configuration.md**, where we provide a detailed description of the necessary fields and formatting.
no-slop 0.5.0
Detect AI-generated code patterns via static analysis
License: MIT
Requires Python: >=3.10
Keywords: ai, code-quality, flake8, linter, mypy, static-analysis

<div align="center">

# no-slop

**Detect AI-generated code patterns via static analysis**

[![Python 3.10+](https://img.shields.io/badge/python-3.10+-blue.svg)](https://www.python.org/downloads/)
[![mypy](https://img.shields.io/badge/mypy-plugin-blue.svg)](https://mypy.readthedocs.io/)
[![flake8](https://img.shields.io/badge/flake8-plugin-blue.svg)](https://flake8.pycqa.org/)
<br>
[![CI](https://github.com/HardMax71/no-slop/actions/workflows/ci.yml/badge.svg)](https://github.com/HardMax71/no-slop/actions/workflows/ci.yml)
[![codecov](https://codecov.io/gh/HardMax71/no-slop/branch/master/graph/badge.svg)](https://codecov.io/gh/HardMax71/no-slop)
[![PyPI](https://img.shields.io/pypi/v/no-slop.svg)](https://pypi.org/project/no-slop/)
<br>
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

</div>

> [!NOTE]
> **Why mypy/flake8?** [Ruff](https://github.com/astral-sh/ruff) and [ty](https://github.com/astral-sh/ty) don't support external plugins ([ruff#283](https://github.com/astral-sh/ruff/issues/283), [ty blog](https://astral.sh/blog/ty)).


## Install

```bash
pip install no-slop
```

## Usage

**mypy plugin** (redundant type checks):
```toml
# pyproject.toml
[tool.mypy]
plugins = ["no_slop.mypy_plugin"]
```

**flake8 plugin** (style checks) - auto-registers on install:
```bash
flake8 your_project/
```

**Unused defaults CLI**:
```bash
no-slop-unused-defaults /path/to/project
```

## What it detects

- Redundant `isinstance`/`hasattr`/`getattr`/`callable` when types guarantee the result
- Runtime checks on `Any`/untyped values (add types instead)
- ASCII art, emojis, excessive docstrings
- Default parameters never used by any call site

See [docs.md](docs.md) for full documentation.