Skip to content

Warn when spatial values look like lengths or areas instead of volumes #3

@madsCodeBuddy

Description

@madsCodeBuddy

Problem

The spatial axis uses cubic meters (m³), but column names (Space_min, Space_max) don't make this obvious. A common mistake is entering lengths (meters) or areas (m²) instead of volumes.

Proposal

Add an optional heuristic warning in transform_predefined_processes — if Space_min/Space_max values fall in the 1e-6 to 1e6 range, warn that they look like lengths and suggest calculate_sphere_volume().

The heuristic range is debatable. Make the check optional via a warn_on_lengths=True parameter.

Migrated from timeSpace-private #226

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions