Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: Offset 1687 (index 1687) out of bounds #6

Open
gdolsten opened this issue Mar 19, 2021 · 0 comments
Open

ValueError: Offset 1687 (index 1687) out of bounds #6

gdolsten opened this issue Mar 19, 2021 · 0 comments

Comments

@gdolsten
Copy link

In pyHICCUPS, I get the following error:

ValueError: Offset 1687 (index 1687) out of bounds

It occurs in sparse.diags in the following code chunk (~line 135). Do you know what causes it? –
H = Lib.matrix(balance=False, sparse=True).fetch(key)
cHeatMap = Lib.matrix(balance=True, sparse=True).fetch(key)
# Customize Sparse Matrix ...
chromLen = H.shape[0]
num = args.maxapart // resolution + args.maxww + 1

        Diags = [H.diagonal(i) for i in np.arange(num)]
        M = sparse.diags(Diags, np.arange(num), format='csr')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant