aeat.domain.calculations.registry._validate_relation_periods module¶
Relation selector helpers for resolving revision and period coverage.
The helpers select source ModeloRevision entries from a
ModeloDefinition and verify that their period selectors cover the
target relation window.
- select_relation_source_revisions(modelo, selector)[source]¶
- Return type:
- Parameters:
modelo (ModeloDefinition)
selector (RelationRevisionSelector)
- relation_filing_year_delta(selector)[source]¶
- Return type:
- Parameters:
selector (RelationRevisionSelector)
- relation_fixed_source_year(selector)[source]¶
- Return type:
- Parameters:
selector (RelationRevisionSelector)
- validate_source_year_coverage(scope, *, target_selector, source_revisions, source_periods, filing_year_delta, fixed_source_year=None, source_is_observation_history=False)[source]¶
Verify source-year coverage, with observation history requiring only shape coverage.
Candidate
ModeloRevisionentries are filtered by source-period shape before their year intervals are compared with the target selector.
- period_selectors_overlap(left, right)[source]¶
- Return type:
- Parameters:
left (PeriodSelector)
right (PeriodSelector)