Skip to content

Commit

Permalink
Merge pull request #94 from jGaboardi/fake_obs
Browse files Browse the repository at this point in the history
fake observations
  • Loading branch information
jGaboardi committed Oct 19, 2021
2 parents a2f42f9 + 5d35133 commit 73ea676
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions tigernet/tigernet.py
Original file line number Diff line number Diff line change
Expand Up @@ -780,10 +780,13 @@ def nodes_kdtree(self, only_coords=False):


class Observations:
"""Near-network observations.
"""
Near-network observations.
Parameters
----------
net : tigernet.Network
Network object.
df : geopandas.GeoDataFrame
Expand All @@ -809,6 +812,7 @@ class Observations:
Attributes
----------
study_area : str
Study area within county.
sid_name : str
Expand Down Expand Up @@ -911,10 +915,13 @@ def obs2obs_cost_matrix(
snap_dist=True,
distance_type="network",
):
"""Calculate a cost matrix from (n) observations to (m) observations.
"""
Calculate a cost matrix from (n) observations to (m) observations.
Parameters
----------
origin_observations : tigernet.Observations
network : tigernet.Network
destination_observations : tigernet.Observations
Expand All @@ -927,6 +934,7 @@ def obs2obs_cost_matrix(
Returns
-------
n2m_matrix : numpy.ndarray
'nXm' cost matrix.
Expand Down

0 comments on commit 73ea676

Please sign in to comment.