Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
RokIvansek committed Jun 6, 2016
2 parents 2d8848b + b8c3138 commit d98dad1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/persistence_diagrams.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def to_dict(p, f, max_dim):
diagrams[b.dimension()].append((b.data, d.data))
return diagrams

def persistence_diagram(cx, max_r, X, n_intervals=10, max_dim=2):
def persistence_diagram(cx, max_r, X=[], n_intervals=10, max_dim=2):
""" Compute persistence diagrams for cx, given max_r as the maximum
distance between two points upto max_dim dimensions.
"""
Expand Down

0 comments on commit d98dad1

Please sign in to comment.