-
Notifications
You must be signed in to change notification settings - Fork 58
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
support strings in elements.get_node_id()
#522
Conversation
Seeing now that the line isn't being hit by any tests... |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #522 +/- ##
=====================================
Coverage 97.5% 97.5%
=====================================
Files 24 24
Lines 4115 4123 +8
=====================================
+ Hits 4011 4020 +9
+ Misses 104 103 -1
|
It is technically covering a corner case that should not happen when everything is as expected. We hit it when we don't have a street network edge attached to a building footprint, which happens only if a building is really far away from any street. But we could possibly simulate that by using |
Working on creating a synthetic test case now that simply converts some edge IDs in the |
Passing locally and hitting the offending line. |
|
||
# test for NaNs within `object` nIDs column | ||
_df_buildings = self.df_buildings.copy() | ||
_df_buildings.loc[[0, 1], "nID"] = pd.NA |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_df_buildings.loc[[0, 1], "nID"] = pd.NA | |
_df_buildings["nID"] = _df_buildings["nID"].astype(str) | |
_df_buildings.loc[[0, 1], "nID"] = pd.NA |
Might be worth actually testing for the string ID?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure. Will push up a new version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
This PR resolves #519