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

scv.tl.recover_dynamics fails #1058

Closed
Marius1311 opened this issue May 16, 2023 · 0 comments · Fixed by #1059 or #1065
Closed

scv.tl.recover_dynamics fails #1058

Marius1311 opened this issue May 16, 2023 · 0 comments · Fixed by #1059 or #1065
Assignees
Labels
bug Something isn't working

Comments

@Marius1311
Copy link
Contributor

When trying to run scv.tl.recover_dynamics(adata, n_jobs=8), I get

    761 if dm is not None and dm.recoverable:
    762     dm.m = m[idx]
    763     dm.alpha, dm.beta, dm.gamma, dm.pars[:3] = (
--> 764         np.array([dm.alpha, dm.beta, dm.gamma, dm.pars[:3]]) / dm.m[-1]
    765     )
    766     dm.t, dm.tau, dm.t_, dm.pars[4] = (
    767         np.array([dm.t, dm.tau, dm.t_, dm.pars[4]]) * dm.m[-1]
    768     )
    770 return adata if copy else dm

ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (4,) + inhomogeneous part.

This appears to be a similar error to #1044

Error output
# paste the error output here, if applicable
Versions
scvelo==0.3.0  scanpy==1.9.3  anndata==0.8.0  loompy==3.0.7  numpy==1.24.2  scipy==1.10.1  matplotlib==3.7.0  sklearn==1.1.3  pandas==1.5.3  
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant