File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ def average_approx(
141
141
142
142
143
143
def vectorize (
144
- l : PersLandscapeExact , start : float = None , stop : float = None , num_dims : int = 500
144
+ l : PersLandscapeExact , start : float = None , stop : float = None , num_steps : int = 500
145
145
) -> PersLandscapeApprox :
146
146
"""Converts a `PersLandscapeExact` type to a `PersLandscapeApprox` type.
147
147
@@ -162,10 +162,10 @@ def vectorize(
162
162
163
163
l .compute_landscape ()
164
164
if start is None :
165
- start = min (l .critical_pairs , key = itemgetter (0 ))[0 ]
165
+ start = min (l .critical_pairs [ 0 ] , key = itemgetter (0 ))[0 ]
166
166
if stop is None :
167
- stop = max (l .critical_pairs , key = itemgetter (0 ))[0 ]
168
- grid = np .linspace (start , stop , num_dims )
167
+ stop = max (l .critical_pairs [ 0 ] , key = itemgetter (0 ))[0 ]
168
+ grid = np .linspace (start , stop , num_steps )
169
169
result = []
170
170
# creates sequential pairs of points for each lambda in critical_pairs
171
171
for depth in l .critical_pairs :
@@ -174,7 +174,7 @@ def vectorize(
174
174
return PersLandscapeApprox (
175
175
start = start ,
176
176
stop = stop ,
177
- num_dims = num_dims ,
177
+ num_steps = num_steps ,
178
178
hom_deg = l .hom_deg ,
179
179
values = np .array (result ),
180
180
)
You can’t perform that action at this time.
0 commit comments