Skip to content

Commit

Permalink
fix toString for numpy arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
fidelram committed Mar 26, 2018
1 parent d15a9f5 commit 7308091
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hicexplorer/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,8 @@ def toString(s):
return s.decode('ascii')
if isinstance(s, list):
return [toString(x) for x in s]
if isinstance(s, np.ndarray):
return s.astype(str)
return s


Expand Down

0 comments on commit 7308091

Please sign in to comment.