Skip to content

REC: always write out all userday metrics#1918

Merged
davemfish merged 5 commits intonatcap:release/3.16.0from
davemfish:feature/REC-1893-userday-metrics
May 15, 2025
Merged

REC: always write out all userday metrics#1918
davemfish merged 5 commits intonatcap:release/3.16.0from
davemfish:feature/REC-1893-userday-metrics

Conversation

@davemfish
Copy link
Copy Markdown
Contributor

@davemfish davemfish commented May 12, 2025

Always write out final userday variables to regression_data.gpkg even if not proceeding to the compute_regression portion of the model.

Fixes #1893

UG update: natcap/invest.users-guide#179

Checklist

  • Updated HISTORY.rst and link to any relevant issue (if these changes are user-facing)
  • Updated the user's guide (if needed)
    - [ ] Tested the Workbench UI (if relevant)

@davemfish
Copy link
Copy Markdown
Contributor Author

The test failures here are unrelated. They are the HRA failure that is awaiting #1881

Comment thread tests/test_recreation.py
# andros_aoi.shp fits 71 hexes at 20000 meters cell size
self.assertEqual(n_features, 71)

def test_existing_regression_coef(self):
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I deleted this test because the _schedule_predictor_data_processing function no longer encapsulates the logic to delete the pre-existing output, that was moved elsewhere.

Copy link
Copy Markdown
Contributor

@claire-simpson claire-simpson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This all looks great! Are we happy to merge even with the failing tests, since we know that will be fixed in PR 1882?

@davemfish
Copy link
Copy Markdown
Contributor Author

This all looks great! Are we happy to merge even with the failing tests, since we know that will be fixed in PR 1882?

Thanks! Yes, it's okay to merge when we know the failures are unrelated. I'll go ahead and merge it.

@davemfish davemfish merged commit 8f94ce0 into natcap:release/3.16.0 May 15, 2025
23 of 39 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.

2 participants