Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix maximum element failure #921

Merged
merged 1 commit into from
Feb 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions matminer/utils/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

import numpy as np
import pandas as pd
from pymatgen.core.periodic_table import Element, _pt_data
from pymatgen.core.periodic_table import Element

__author__ = "Kiran Mathew, Jiming Chen, Logan Ward, Anubhav Jain, Alex Dunn"

Expand Down Expand Up @@ -206,7 +206,7 @@ def __init__(self):
with open(os.path.join(self.data_dir, f"{descriptor_name}.table")) as f:
self.all_elemental_props[descriptor_name] = dict()
lines = f.readlines()
for atomic_no in range(1, len(_pt_data) + 1): # max Z=103
for atomic_no in range(1, 118 + 1): # (max Z=118)
try:
if descriptor_name in ["OxidationStates"]:
prop_value = [float(i) for i in lines[atomic_no - 1].split()]
Expand Down
Loading