You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importgenomicrangesgenomicranges.SeqInfo(["A"], seqlengths=[100])
## SeqInfo(number_of_seqnames=1, seqnames=['A'], seqlengths=[100], is_circular=[None], genome=[None])genomicranges.SeqInfo(["A"], seqlengths=[numpy.uint64(100)])
## Traceback (most recent call last):## File "<stdin>", line 1, in <module>## File "/Users/luna/Library/Python/3.11/lib/python/site-packages/genomicranges/SeqInfo.py", line 152, in __init__## _validate_seqlengths(self._seqlengths, num_seqs)## File "/Users/luna/Library/Python/3.11/lib/python/site-packages/genomicranges/SeqInfo.py", line 25, in _validate_seqlengths## raise ValueError("'seqlengths' should be a list of integers.")## ValueError: 'seqlengths' should be a list of integers.
Don't use is_list_of_type() if NumPy types might be present, or cast them to int() beforehand, e.g., by putting them into a IntegerList().
The text was updated successfully, but these errors were encountered:
For example:
Don't use
is_list_of_type()
if NumPy types might be present, or cast them toint()
beforehand, e.g., by putting them into aIntegerList()
.The text was updated successfully, but these errors were encountered: