Skip to content

tests: Add characterization tests for the parameter data pipeline#3935

Open
S1DDHEY wants to merge 2 commits intoPecanProject:developfrom
S1DDHEY:feat/characterization-tests-param-pipeline
Open

tests: Add characterization tests for the parameter data pipeline#3935
S1DDHEY wants to merge 2 commits intoPecanProject:developfrom
S1DDHEY:feat/characterization-tests-param-pipeline

Conversation

@S1DDHEY
Copy link
Copy Markdown
Contributor

@S1DDHEY S1DDHEY commented Apr 19, 2026

Description

Adds tests that lock down the current data structures passed between the three main steps of PEcAn's parameter pipeline:

  1. get.trait.data.pft().Rdata files
  2. run.meta.analysis.pft() / meta_analysis_standalone().Rdata files
  3. get_parameter_samples()samples.Rdata

What's included

  • helper-workflow-fixtures.R with shared mock data generators for the pipeline's .Rdata objects
  • test-samples-rdata-structure.R has 6 tests for get_parameter_samples() output (PEcAn.uncertainty)
  • test.run.meta.analysis.R : 2 new tests for meta_analysis_standalone() return structure and run.meta.analysis.pft() file I/O (PEcAn.MA)

All tests are self-contained (no db required). DB-dependent tests for get.trait.data.pft will follow in a separate PR.

Testing

All tests pass locally.
image
image

This work is part 2 of my pre-GSoC prep for the modularity project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant