Commits

Brent Pedersen committed 68e53bf

update to new numpy semantics where we cant use 'c' for dtype, must
use 'S1'

Comments (0)

Files changed (2)

pyfasta/README.txt

 mask a sub-sequence
 ::
 
-    >>> a[11:13] = np.array('N', dtype='c')
+    >>> a[11:13] = np.array('N', dtype='S1')
     >>> a[10:14].tostring()
     'ANNA'
 

pyfasta/tests/test_all.py

     a = np.array(f['chr3'])
     old = f['chr3'][1:5]
     assert (a.shape[0] == 3600)
-    a[1:5] = np.array('N', dtype='c')
+    a[1:5] = np.array('N', dtype='S1')
     c = f['chr3'][1:5]
     assert c == old