Skip to content

Commit

Permalink
icosahedron similar to jiang data
Browse files Browse the repository at this point in the history
  • Loading branch information
Droxef committed Jul 26, 2019
1 parent 015ec85 commit 6568611
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pygsp/graphs/nngraphs/sphereicosahedron.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-

import log
import numpy as np

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

0 comments on commit 6568611

Please sign in to comment.