Closed yutaoki closed 5 years ago
Could you show us your script for the error reproducing?
The error looks like something get wrong when unzipping the downloaded files.
The following is my script:
=================================
from xenonpy.datatools import MDL
mdl = MDL()
summary = mdl(modelset_has="QM9", property_has="", save_to=False)
mdl_mu = summary[summary["property"] == "organic.nonpolymer.mu_debye"].sort_values(by="mae", ascending=True)
urls = mdl_mu["url"].iloc[:5]
results = mdl.pull(urls=urls)
FileNotFoundError Traceback (most recent call last)
I have another example for this error:
===================================================
from xenonpy.datatools import MDL
mdl = MDL()
summary = mdl(modelset_has="Polymer", property_has="density", save_to=False) mdl_dens = summary[summary["property"] == "organic.polymer.density"].sort_values(by="mae", ascending=True)
urls = mdl_dens["url"].iloc[:5]
results = mdl.pull(urls = urls)
FileNotFoundError Traceback (most recent call last)
Thank you. We will check that.
Thank you so much.
I think the models for S1 and S2 dataset are fine. The URL for those models are end by "***.tar.gz", such as: http://xenon.ism.ac.jp/mdl/S1/inorganic.crystal.volume/xenonpy.composition/pytorch.nn.neural_network/04cd-290-281-153-75-21@1.tar.gz
But the URLs for the other models (for example, S3 dataset) do not have .tar.gz, such as: http://xenon.ism.ac.jp/mdl/S3/organic.nonpolymer.cv_calmol-1k-1/rcdk.fp.fingerprint/mxnet.nn.neural_network/shotgun_Cv_calmol-1K-1_randFP1000_corr-0.8172_mxnet_186-102-15-1_2018-04-11-032416
Maybe is this related to the problem?
@yutaoki We have confirmed that all the non-crystal (S3 ~ S6) compounds are stored without their extension name '.tar.gz' and this is unexpected behavior but, we also can not reproduce your error.
We use the same querying parameters and the mdl.pull
work like a charm.
Anyway, all R models will be retrained in python and MDL
API will have a huge refactor to enable us to open the public uploading. #138 #65
We will close this issue. Thanks again.
I found that I can download the models for "stable inorganic compounds for materials project" but cannot download those for "QM9 Dataset" or "PolymerGenome Dataset" either.
When I tried mdl.pull(urls), it responded as follows:
FileNotFoundError: [Errno 2] No such file or directory: '~\S3\organic.nonpolymer.mu_debye\rcdk.fp.fingerprint\mxnet.nn.neural_network\shotgun_mu_Debye_randFP4975_corr-0.7528_mxnet_294-101-28-1_2018-06-13\model-175724d\shotgun_mu_Debye_randFP4975_corr-0.7528_mxnet_294-101-28-1_2018-06-13-045255-symbol.json'
Does anyone have any idea for this problem?