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

Cleanups and moving old code out #6

Merged
merged 67 commits into from
Nov 18, 2024

Conversation

anguswg-ucsb
Copy link
Collaborator

@anguswg-ucsb anguswg-ucsb commented Jul 31, 2024

  • Replaced old extend_transects_to_polygons with new version of the function
  • Dropped an extra debug statement in extend_transects_to_polygons
  • Deleted old commented code throughout package
  • bumped version
  • Added validator functions (validators.R) which validate transects/cross section points data is as anticipated and aligns with a given set of flowlines and/or transects in the case of cross section points
  • added many tests for most of core functions...

…to polygon extensions much faster and less of a hog on memory
…ons used in improve_invalid_cs(), should improve speed, memory usage on larger networks, cs points, and transects
…oving and speeding up cross section improvment functions, WIP
… all hydrofabric3D function to use user defined ids / crosswalk_ids
…ng prescribed IDs, continued working on tests for cross section point extraction code
…k_attributes() to handle missing point_types better and exported the function, working on valid_banks tests with new version of get_bank_attributes()
…nd if they don't they are given default NA / valid_banks = FALSE values, adding more get_bank_attributes() tests
…t assigned bank attributes / validity checking
… left or right bank point_types, added tests for get_relief(), added data and starting testing for cross section pts with NA Z values from DEM
… cs_pts if they have any missing Z values (drop_incomplete_cs_pts()) and added this function to get_improved_cs_pts() to deal with errors caused by NA values in DEM
…ting data generation for cross section point classification
…lect in renumber_cs_ids(), work on classificaiton algo, bumped version
…functionality to ahg_estimates and ML code, added crosswalk_id to extend_by_percent(), bumped version
…_extensions_by_id to always return all input crosswalk_id/cs_id with distances values of 0 if they dont have any extension distances
… and bumped version, added tests for get_extensions_by_id function thats used for determing transect extension distances to polygons
…n functions name, added more tests for extend_transect_side functions and fixed a bug in the extension that was incorrectly dropping some transect extensions
…sts to fit this change, bumped version, a breaking change for any code that uses old 'id' parameter
… conveniance function for converting points to XY ocolumns, bumped version
…code to a bottom_finder.R script, bumped version
…ance function for taking the updated cross section length information from get_improved_cs_pts and applying those changes to the original transect lines
… when generating new IDs, added a internal validation fgunction, has_all_unique_tmp_ids(), bumped version
…good to go, still need to add manuals and roxygen comments to these
…engths(), finishing up cs based trtansect extensions and validation revision
…, the same logic used in cs point based extensions, added a single test for this, updated roxygen comments, added a junction_flowlines.gpkg for further testing
… only, added tests for classify_derivatives, renamed transect shortening functions, added validator functions to package
@mikejohnson51 mikejohnson51 merged commit ca59fb1 into lynker-spatial:main Nov 18, 2024
4 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