Skip to content

Commit 6568611

Browse files
committed
icosahedron similar to jiang data
1 parent 015ec85 commit 6568611

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pygsp/graphs/nngraphs/sphereicosahedron.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# -*- coding: utf-8 -*-
22

3+
import log
34
import numpy as np
45

56
from pygsp.graphs import NNGraph # prevent circular import in Python < 3.5
@@ -315,7 +316,7 @@ def _float_to_int(self, data, digits=None, dtype=np.int32):
315316
if digits is None:
316317
digits = self._decimal_to_digits(1e-8)
317318
elif isinstance(digits, float) or isinstance(digits, np.float):
318-
digits = _decimal_to_digits(digits)
319+
digits = self._decimal_to_digits(digits)
319320
elif not (isinstance(digits, int) or isinstance(digits, np.integer)):
320321
log.warn('Digits were passed as %s!', digits.__class__.__name__)
321322
raise ValueError('Digits must be None, int, or float!')

0 commit comments

Comments
 (0)