Add UTAC tension metric computation from ERA5 climate data#52
Merged
GenesisAeon merged 1 commit intomainfrom Mar 27, 2026
Merged
Add UTAC tension metric computation from ERA5 climate data#52GenesisAeon merged 1 commit intomainfrom
GenesisAeon merged 1 commit intomainfrom
Conversation
- Add data/era5_kipppunkte.csv: 84 years (1940-2023) of ERA5-style temperature anomaly and Arctic sea ice volume data - Add compute_tension_metric(temp_anomaly, ice_volume) to utac_core adapter: maps climate observables to a UTAC tension scalar using the CREP Gamma coupling framework (T = (1-Γ)·(1+1/(1+V))) - Expose genesis_os.utac_core at the top-level namespace so scripts can do `from genesis_os import utac_core` - Extend TestUtacCore with 5 new tests covering tension metric correctness, monotonicity, and top-level import https://claude.ai/code/session_01XWjSMFdboX1UgdbmJ14Nhk
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR introduces a new tension metric computation function that maps ERA5 climate observables (temperature anomaly and Arctic sea ice volume) to a scalar tension value within the UTAC-Logistic framework. The implementation includes supporting test data and comprehensive unit tests.
Key Changes
compute_tension_metric()inutac_core.py: Implements a mathematically-grounded tension metric that combines temperature anomaly and ice volume stress using exponential coherence and gamma functions. Higher temperature anomalies and lower ice volumes produce higher tension values.data/era5_kipppunkte.csv): Added historical climate data spanning 1940–2023 with temperature anomalies and Arctic sea ice volumes for validation and analysis.utac_coremodule at the top-levelgenesis_ospackage for easier access.Implementation Details
The tension metric uses a two-stage exponential model:
All computations use
mathmodule for numerical stability and return explicitfloattype.https://claude.ai/code/session_01XWjSMFdboX1UgdbmJ14Nhk