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

Error when importing OCAT #8

Open
JuliaChristiaanse opened this issue Jun 23, 2023 · 1 comment
Open

Error when importing OCAT #8

JuliaChristiaanse opened this issue Jun 23, 2023 · 1 comment

Comments

@JuliaChristiaanse
Copy link

Hello,

I get this error when I simply run 'import OCAT'

File c:\Users\julia.virtualenvs\project-VjJne3mB\lib\site-packages\OCAT_init_.py:2
1 from .utils import preprocess, apply_dim_reduct, evaluate_clusters, plot_umap, apply_dim_reduct_inference
----> 2 from .sparse_encoding import sparse_encoding_integration, run_cell_inference, run_OCAT, AnchorGraph, tune_hyperparameters
3 from .marker_gene import calculate_marker_gene
4 from .lineage import compute_ptime, compute_lineage, plot_lineage_ptime

File c:\Users\julia.virtualenvs\project-VjJne3mB\lib\site-packages\OCAT\sparse_encoding.py:15
13 import warnings
14 warnings.filterwarnings('ignore')
---> 15 import OCAT.example as example
16 from sklearn import svm
18 ##############################################
19 # In: data_list [(a,n)...(z,n)] -- list of datasets
20 # m -- num of anchors
(...)
23 # Description: The function generates the corresponding anchors for the datasets
24 ##############################################

"AttributeError: module 'numpy' has no attribute 'float'.
np.float was a deprecated alias for the builtin float. To avoid this error in existing code, use float by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.float64 here.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations"

It seems that np.float simply needs to be changed to float, but I am not certain.

Is there any way to fix this ?

Thanks in advance! :)

@lzhangdc
Copy link
Collaborator

Hi,

Could you please tell us which version of OCAT you installed? If you could provide a list of the installed package and their versions that would be most helpful.

Thank you,
Lin

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

2 participants