compliance
Evaluate lighting measurements against standards like WELL, EN 12464-1, and ISO CIE, returning compliance results for illuminance, glare, and circadian metrics.
Instructions
Check a value against a lighting standard.
standard: well_v2_l03 | brown_2022 | iso_cie_8995_1_2025 | en_17037 | en_12464_1 | ul_24480.
CIRCADIAN standards are scored on mel_edi (CIE S 026 mel-EDI -- NOT melanopic_lux, which is
larger by D65's melanopic/photopic ratio ~1.10 and would silently relax the threshold); eml is
accepted and converted. EML is the LARGER number -- EML = mel-EDI * 1.103 -- so an eml
input is DIVIDED by 1.103 to score it. Pass ONE of them: if both are given, mel_edi wins,
eml is discarded without warning, and the result is stamped quantity "mel_edi" with no
trace of the ignored input. To go the other way, from mel-EDI to EML, use
spectral_metrics(eml_edi_value=..., eml_edi_direction='medi_to_eml'); do not do the
arithmetic by hand. en_17037 returns "n/a" (daylight-provision, non-circadian) and
ul_24480 returns "unsupported" (Circadian Stimulus, not computed here).
standard="en_12464_1" is the ELECTRIC VISUAL-TASK path and ignores mel_edi entirely: pass
task (see EN_12464_1_TASKS / the hcl://compliance/en_12464_1 resource) plus the measured
em/ugr/uo/ra, and optionally the surround/background (em_surround, uo_surround, em_background,
uo_background) and wall/ceiling/cylindrical (em_wall, uo_wall, em_ceiling, uo_ceiling,
em_cylindrical, uo_cylindrical) values -- each relationship is evaluated only when supplied.
Supplying the task but no measured values returns "incomplete", never a vacuous "pass".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| em | No | ||
| ra | No | ||
| uo | No | ||
| eml | No | ||
| ugr | No | ||
| task | No | ||
| period | No | daytime | |
| em_wall | No | ||
| mel_edi | No | ||
| uo_wall | No | ||
| standard | No | brown_2022 | |
| em_ceiling | No | ||
| uo_ceiling | No | ||
| em_surround | No | ||
| uo_surround | No | ||
| daylight_met | No | ||
| em_background | No | ||
| uo_background | No | ||
| em_cylindrical | No | ||
| uo_cylindrical | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||