Skip to content

Commit

Permalink
fix pymatgen import error
Browse files Browse the repository at this point in the history
  • Loading branch information
TsumiNa committed Mar 14, 2021
1 parent 8af93eb commit 5407b04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xenonpy/descriptor/structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import re

import numpy as np
import pymatgen as pm
from pymatgen.core import Element
from pymatgen.analysis.local_env import VoronoiNN

from xenonpy.descriptor.base import BaseDescriptor, BaseFeaturizer
Expand Down Expand Up @@ -165,7 +165,7 @@ def get_element_representation(name):
name: string
element symbol
"""
element = pm.Element(name)
element = Element(name)
general_element_electronic = {
's1': 0.0,
's2': 0.0,
Expand Down

0 comments on commit 5407b04

Please sign in to comment.