Skip to content

Commit

Permalink
add categories to AccessModel
Browse files Browse the repository at this point in the history
  • Loading branch information
ifarah committed Aug 6, 2019
1 parent ac52b6c commit 4709684
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions spatial_access/Models.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,9 +456,17 @@ class AccessModel(ModelData):
nonprofit services in urban environments.
"""

def __init__(self, network_type, sources_filename=None, source_column_names=None,
destinations_filename=None, dest_column_names=None, transit_matrix_filename=None,
decay_function='linear', configs=None, debug=False):
def __init__(self,
network_type,
sources_filename=None,
source_column_names=None,
destinations_filename=None,
dest_column_names=None,
transit_matrix_filename=None,
decay_function='linear',
categories=None,
configs=None,
debug=False):
"""
Args:
network_type: string, one of {'walk', 'bike', 'drive', 'otp'}.
Expand Down

0 comments on commit 4709684

Please sign in to comment.