Skip to content

Commit

Permalink
Merge pull request #7 from ilevantis/patch-1
Browse files Browse the repository at this point in the history
allow np.int64 for style_single_glyph()
  • Loading branch information
atareen committed Sep 25, 2019
2 parents 9a7e23e + f9e61be commit 3b877db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions logomaker/src/Logo.py
Expand Up @@ -583,8 +583,8 @@ def style_single_glyph(self, p, c, **kwargs):
"""

# validate p is an integer
check(isinstance(p, int),
'type(p) = %s must be of type int' % type(p))
check(isinstance(p, (int, np.int64)),
'type(p) = %s must be of type int or numpy.int64' % type(p))

# check p is a valid position
check(p in self.glyph_df.index,
Expand Down

0 comments on commit 3b877db

Please sign in to comment.