bioepic-data/ecosim-agent / .agents/skills/ecosim-plant-trait-sanity-check
ecosim-plant-trait-sanity-check
VerifiedRead-only validation of EcoSIM plant_trait.*.desc values for the first grid, including all plant-class identities and their evidence coverage, C3/C4 physiology, active protein allocation and root hydraulics. Use for trait evaluation and run-readiness checks. Never edit or replace the `.desc` file.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 18.7 KB |
| agents/openai.yaml | config | 314 B |
| references/class_information_validation.md | markdown | 7.3 KB |
| references/evidence_coverage.md | markdown | 4.5 KB |
| references/pft_case_notes.md | markdown | 5.6 KB |
| references/sanity_rules.md | markdown | 23.6 KB |
| references/web_evidence.md | markdown | 11.0 KB |
| scripts/check_plant_trait_desc.py | script | 72.5 KB |
| scripts/plant_class_validation.py | script | 13.5 KB |
| scripts/site_vegetation.py | script | 18.2 KB |
| scripts/trait_corrections.py | script | 10.5 KB |
| tests/test_annual_phenology.py | script | 2.2 KB |
| tests/test_class_information.py | script | 9.5 KB |
| tests/test_physiological_parameterization.py | script | 12.9 KB |
| tests/test_root_conduit_hydraulics.py | script | 8.7 KB |
| tests/test_site_vegetation.py | script | 5.4 KB |
| tests/test_soybean_angle_default.py | script | 1.8 KB |
| tests/test_trait_corrections.py | script | 7.0 KB |
tests/test_soybean_angle_default.py
View on GitHub"""Soybean angle preference stays separate from physiological validity."""
import unittest
from test_physiological_parameterization import CHECKER, parameter
class SoybeanAngleDefaultTests(unittest.TestCase):
def findings(self, code, value):
block = CHECKER.PlantBlock(nz=1, ny=1, nx=1, code=code, start_line=1)
block.parameters = [parameter('ANGSH', value, 2)]
found = []
def add(b, severity, name, line, message, category='general'):
found.append(CHECKER.Finding(severity, b.code, b.nz, b.ny, b.nx,
line, name, message, category))
CHECKER.check_petiole_sheath_angle(block, CHECKER.by_var(block), add)
return found
def test_all_soybean_climates_accept_45(self):
for code in ('soyb31', 'soyb33', 'soyb41'):
with self.subTest(code=code):
self.assertEqual(self.findings(code, 45), [])
def test_deviations_remain_warnings_in_strict_mode(self):
for value in (0, 60):
with self.subTest(value=value):
found = CHECKER.enforce_strict_physiology(self.findings('soyb41', value))
self.assertEqual(len(found), 1)
self.assertEqual(found[0].category, 'user-default')
self.assertEqual(found[0].severity, 'WARN')
def test_other_petiole_bearing_pfts_keep_their_own_angles(self):
for code in ('maiz41', 'clva34', 'gr3a34'):
with self.subTest(code=code):
self.assertEqual(self.findings(code, 60), [])
def test_organ_absence_rule_still_applies(self):
found = self.findings('ndlf35', 45)
self.assertTrue(any(f.severity == 'ERROR' for f in found))
self.assertEqual(self.findings('ndlf35', 0), [])
if __name__ == '__main__':
unittest.main()
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |