-
Notifications
You must be signed in to change notification settings - Fork 16
Closed
Description
This is a change was requested by @knaaptime in the discussion for 26. It is a one-character fix here:
Line 55 in bfae8ed
| if max_cost is not None: temp = temp[temp[cost_cost] < max_cost].copy() |
But it will also break the expectations of the zero-catchment tests here:
access/access/tests/test_floating_catchment_area.py
Lines 75 to 80 in bfae8ed
| def test_floating_catchment_area_ratio_zero_catchment(self): | |
| zero_catchment = 0 | |
| result = self.model.fca_ratio(max_cost = zero_catchment) | |
| actual = math.isnan(self.model.access_df.iloc[0]['fca_value']) | |
| self.assertEqual(actual, True) |
Not a hard change but your judgment call.
Metadata
Metadata
Assignees
Labels
No labels