Spaces:
Runtime error
Runtime error
log message
Browse files
app.py
CHANGED
|
@@ -117,14 +117,17 @@ def create_phase_diagram(
|
|
| 117 |
# Fetch all entries from the Materials Project database
|
| 118 |
def get_energy_correction(energy_correction, row):
|
| 119 |
if energy_correction == "Database specific, or MP2020" and map_functional[functional] == 'pbe':
|
|
|
|
| 120 |
return (
|
| 121 |
row["energy_corrected"] - row["energy"]
|
| 122 |
if not np.isnan(row["energy_corrected"])
|
| 123 |
else 0
|
| 124 |
)
|
| 125 |
elif energy_correction == "The 110 PBE Method" and map_functional[functional] == 'pbe':
|
|
|
|
| 126 |
return row["energy"] * 1.1-row['energy']
|
| 127 |
elif map_functional[functional] != 'pbe':
|
|
|
|
| 128 |
return 0
|
| 129 |
|
| 130 |
entries = [
|
|
|
|
| 117 |
# Fetch all entries from the Materials Project database
|
| 118 |
def get_energy_correction(energy_correction, row):
|
| 119 |
if energy_correction == "Database specific, or MP2020" and map_functional[functional] == 'pbe':
|
| 120 |
+
print('applying MP corrections')
|
| 121 |
return (
|
| 122 |
row["energy_corrected"] - row["energy"]
|
| 123 |
if not np.isnan(row["energy_corrected"])
|
| 124 |
else 0
|
| 125 |
)
|
| 126 |
elif energy_correction == "The 110 PBE Method" and map_functional[functional] == 'pbe':
|
| 127 |
+
print('applying PBE110 corrections')
|
| 128 |
return row["energy"] * 1.1-row['energy']
|
| 129 |
elif map_functional[functional] != 'pbe':
|
| 130 |
+
print('not applying any corrections')
|
| 131 |
return 0
|
| 132 |
|
| 133 |
entries = [
|