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

AttributeError: Module 'scipy' has no attribute 'shape' #154

Open
madp4rry opened this issue Mar 21, 2024 · 2 comments
Open

AttributeError: Module 'scipy' has no attribute 'shape' #154

madp4rry opened this issue Mar 21, 2024 · 2 comments

Comments

@madp4rry
Copy link

I get a AttributeError: Module 'scipy' has no attribute 'shape' whenever i run:
m = mofa(adata,
expectations=["W","Z","AlphaW","AlphaZ"],
use_raw=False,
n_factors=5,
outfile="model/pbmc3k_nogroup_expectations.hdf5", quiet=False)
with the mofapy2 package. Why?

@Rana-Sabrii
Copy link

Change s.shape to np.shape in the mofapy2/core/distributions/basic_distributions.py file and s.outer to np.outer in the mofapy2/core/BayesNet.py files.

@gingerii
Copy link

I had a similar issue when running ent.build(). I would get AttributeError: Module 'scipy' has no attribute 'empty'. I located the source of the issue in mofapy2/core/distributions/multivariate_gaussian.py, and changed s.empty to np.empty in three locations. Hope this helps someone else.

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

3 participants