Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial DamageCurve implementation plus.. #55

Merged
merged 23 commits into from
Aug 3, 2023
Merged

Conversation

tomalrussell
Copy link
Member

Features:

  • PiecewiseLinearDamageCurve implementation and read from CSV/XLSX

Refactoring:

  • update split_polygons for performance improvement
  • renaming Transform to GridDefinition
  • snail.io and snail.intersection separation of concerns, e.g. with read_raster_band_data and get_raster_values_for_splits
  • fixes to tutorial notebooks to keep up-to-date

- damage curve objects intended to encode commonly-implemented
  details for direct damage assessment
- implementation of piecewise-linear damage curves
- methods to apply curve to exposure, scale/translate curves
- drop unittest.TestCase inheritance
- parameterize to avoid some tests-in-loops
- assert .all() on lists of bools
- reorder list of polygon split rings.. should be order-independent?
- in test, sort along a Hilbert curve using each split centroid
- test 'actual.equals(expected)' to ignore specific vertex ordering
pkg_resources is deprecated.
- rename transform:grid
- add INFO logging
- use list-of-rasters wrapper function
@tomalrussell tomalrussell merged commit e1bfe95 into main Aug 3, 2023
9 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.

None yet

1 participant