Skip to content

Change histogram import#32

Open
renzph wants to merge 2 commits intoBenevolentAI:masterfrom
renzph:master
Open

Change histogram import#32
renzph wants to merge 2 commits intoBenevolentAI:masterfrom
renzph:master

Conversation

@renzph
Copy link

@renzph renzph commented Feb 10, 2024

Histogram has been removed in scipy but is available in numpy The requirement numpy>=1.15.2 covers the import.

Histogram has been removed in `scipy` but is available in `numpy`
The requirement `numpy>=1.15.2` should cover the import.
`chemnet_model_filename` changed in FCD v1.2 as it was ported to pytorch. The functionality in `_load_chemnet` has since been 
copied to FCD and could be replaced with `fcd.load_ref_model(model_path=None)` down the road.
@brian316
Copy link

brian316 commented Mar 1, 2024

i was going to request this as well. tested on my end and works

@DM0815
Copy link

DM0815 commented Aug 10, 2024

Histogram has been removed in scipy but is available in numpy The requirement numpy>=1.15.2 covers the import.

Excuse me, I met the questions when conducting 'python -m guacamol.data.get_data -o ./' as follows:
line = line.decode("utf-8")
AttributeError: 'str' object has no attribute 'decode' . I used the code you updated. Can you provide some suggestions. Thanks

@alejandrosantanabonilla

It is still an issue. Two changes need to be done in the code. First, the utils/chemistry.py needs to change from:

histogram, to np.histogram

once this is done, the repository works

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

Successfully merging this pull request may close these issues.

4 participants