Skip to content

Thermodynamic data missing for Fe2O3 chemical #5

@AlexSilverSword

Description

@AlexSilverSword

I am trying to use Fe2O3 in some of my thermodynamic calculations using 'thermo.chemical', but was unable to call it from the chemical database. I have used both methods shown below:

from thermo.chemical import Chemical
Fe2O3 = Chemical("Fe2O3") # Using chemical formula name
# OR
Fe2O3 = Chemical("1317-60-8") # Using the CAS ID from PubChem

Method 1 returned the following error:

---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
<ipython-input-12-872c9ccce381> in <module>()
----> 1 Fe2O3 = Chemical("Fe2O3")

C:\ProgramData\Anaconda3\lib\site-packages\thermo\chemical.py in __init__(self, ID, T, P)
    392             self.calculate(T, P)
    393         else:
--> 394             self.PubChem = PubChem(self.CAS)
    395             self.MW = MW(self.CAS)
    396             self.formula = formula(self.CAS)

C:\ProgramData\Anaconda3\lib\site-packages\thermo\identifiers.py in PubChem(CASRN)
    239 
    240     '''
--> 241     pubchem = pubchem_dict[CASRN]['Pubchem ID']
    242     return pubchem
    243 

KeyError: None

Method 2 returned a "none" for every property I tried.
Please, will you help me?

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions