example code errors

That is incorrect. Try the following instead:

df_mp = MPDataRetrieval(api_key).get_dataframe(criteria=‘Si’, properties=['band_gap’])

You can also see the matminer_examples data_retrieval notebook for example usage.

https://github.com/hackingmaterials/matminer_examples/blob/master/notebooks/data_retrieval_basics.ipynb

Best,

Alireza

···

On Nov 17, 2018, at 6:55 AM, thomas heiman [email protected] wrote:

The code that generated the errors is:

from matminer.data_retrieval.retrieve_Citrine import CitrineDataRetrieval
from matminer.data_retrieval.retrieve_MP import MPDataRetrieval
api_key=blank
df_mp = MPDataRetrieval().get_dataframe(api_key,criteria=‘Si’, properties=[‘band_gap’])

On Saturday, November 17, 2018 at 9:54:04 AM UTC-5, thomas heiman wrote:

Hi,

When I run the example code, I get the following errors (I removed the api_key value in the code below):

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-20-6ab1be06465b> in <module>()
      2 from matminer.data_retrieval.retrieve_MP import MPDataRetrieval
      3 api_key='eQSfud64aDoImzfb1o'
----> 4 df_mp = MPDataRetrieval().get_dataframe(api_key,criteria='Si', properties=['band_gap'])

TypeError: get_dataframe() got multiple values for argument 'criteria'

Any ideas on what is going wrong or what I can do about it? Thank you!

Sincerely,

tom

You received this message because you are subscribed to the Google Groups “matminer” group.

To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].

For more options, visit https://groups.google.com/d/optout.

Hi Alireza,

Thank you!!

Sincerely,

tom

···

On Sunday, November 18, 2018 at 1:31:02 AM UTC-5, Alireza Faghaninia wrote:

That is incorrect. Try the following instead:

df_mp = MPDataRetrieval(api_key).get_dataframe(criteria=‘Si’, properties=['band_gap’])

You can also see the matminer_examples data_retrieval notebook for example usage.

https://github.com/hackingmaterials/matminer_examples/blob/master/notebooks/data_retrieval_basics.ipynb

Best,

Alireza

On Nov 17, 2018, at 6:55 AM, thomas heiman [email protected] wrote:

The code that generated the errors is:

from matminer.data_retrieval.retrieve_Citrine import CitrineDataRetrieval
from matminer.data_retrieval.retrieve_MP import MPDataRetrieval
api_key=blank
df_mp = MPDataRetrieval().get_dataframe(api_key,criteria=‘Si’, properties=[‘band_gap’])

On Saturday, November 17, 2018 at 9:54:04 AM UTC-5, thomas heiman wrote:

Hi,

When I run the example code, I get the following errors (I removed the api_key value in the code below):

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-20-6ab1be06465b> in <module>()
      2 from matminer.data_retrieval.retrieve_MP import MPDataRetrieval
      3 api_key='eQSfud64aDoImzfb1o'
----> 4 df_mp = MPDataRetrieval().get_dataframe(api_key,criteria='Si', properties=['band_gap'])

TypeError: get_dataframe() got multiple values for argument 'criteria'

Any ideas on what is going wrong or what I can do about it? Thank you!

Sincerely,

tom

You received this message because you are subscribed to the Google Groups “matminer” group.

To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].

For more options, visit https://groups.google.com/d/optout.