Skip to content

Comments

Tests, bugfixes and improved docstring for Flatten in data/transforms/coordinates.py#148

Merged
tennlee merged 6 commits intoACCESS-Community-Hub:developfrom
gemmaellen:test_data_coordinates
Jul 29, 2025
Merged

Tests, bugfixes and improved docstring for Flatten in data/transforms/coordinates.py#148
tennlee merged 6 commits intoACCESS-Community-Hub:developfrom
gemmaellen:test_data_coordinates

Conversation

@gemmaellen
Copy link
Collaborator

As noted on a recent call, the Flatten class had a confusing docstring and a bug in need of fixing. These have been improved, and I have added some tests for the class as a whole.

@gemmaellen gemmaellen requested a review from tennlee July 29, 2025 02:25
@tennlee
Copy link
Collaborator

tennlee commented Jul 29, 2025

It's so great to have a good docstring on this functionality and also the bugfix. I need to get back in and tidy up the code linting, so I might do that tomorrow along with merging the PR, but this looks really useful. How does Flatten relate to CoordinateFlatten, and do we need both of them?

Renamed test files to avoid collision in test execution
@coveralls
Copy link

Pull Request Test Coverage Report for Build 16590418143

Details

  • 41 of 44 (93.18%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.1%) to 60.443%

Changes Missing Coverage Covered Lines Changed/Added Lines %
packages/pipeline/src/pyearthtools/pipeline/iterators.py 2 5 40.0%
Totals Coverage Status
Change from base Build 16458201340: -0.1%
Covered Lines: 10138
Relevant Lines: 16271

💛 - Coveralls

@tennlee tennlee merged commit 9a81e1d into ACCESS-Community-Hub:develop Jul 29, 2025
7 checks passed
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.

3 participants