Skip to content

feat: extract samplingProcedure and extrapolations when collapse_comments=False#347

Merged
cmutel merged 1 commit into
mainfrom
feat/extract-representativeness-fields
Apr 26, 2026
Merged

feat: extract samplingProcedure and extrapolations when collapse_comments=False#347
cmutel merged 1 commit into
mainfrom
feat/extract-representativeness-fields

Conversation

@cmutel

@cmutel cmutel commented Apr 26, 2026

Copy link
Copy Markdown
Member

Summary

  • When collapse_comments=False, Ecospold2DataExtractor.extract_activity now returns two additional keys:
    • modeling_summarymodellingAndValidation/representativeness/samplingProcedure
    • data_handling_summarymodellingAndValidation/representativeness/extrapolations
  • Both are None when the element is absent or empty.
  • These keys are not present when collapse_comments=True, preserving backwards compatibility.

Test plan

  • test_collapse_comments_false extended to assert both new keys have the expected text from the existing fixture (which already had samplingProcedure and extrapolations)
  • test_collapse_comments_true_omits_repr_fields added to confirm keys are absent in default mode
  • All 10 ecospold2 extractor tests pass

…ents=False

When collapse_comments=False, Ecospold2DataExtractor.extract_activity now
also returns modeling_summary (from modellingAndValidation/representativeness/
samplingProcedure) and data_handling_summary (from .../extrapolations).
These fields are absent from the dict when collapse_comments=True, preserving
backwards compatibility with existing callers.
@cmutel cmutel merged commit 83c8e56 into main Apr 26, 2026
36 checks passed
@cmutel cmutel deleted the feat/extract-representativeness-fields branch April 26, 2026 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant