diff --git a/MANIFEST.in b/MANIFEST.in index f14a84c..51ca827 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -6,7 +6,7 @@ prune notebooks recursive-include docs/source *.py recursive-include docs/source *.rst recursive-include docs/source *.png -recursive-include src/ *.json +recursive-include src/*.json global-exclude *.py[cod] __pycache__ *.so *.dylib .DS_Store *.gpickle diff --git a/src/element_coder/data/coding_data.py b/src/element_coder/data/coding_data.py index 546cac5..23e1902 100644 --- a/src/element_coder/data/coding_data.py +++ b/src/element_coder/data/coding_data.py @@ -15,6 +15,7 @@ CODING_FILES = { "x": "x.json", + "electronegativity": "x.json", "atomic": "atomic.json", "atomic_radius_calculated": "atomic_radius_calculated.json", "boiling_point": "boiling_point.json", @@ -80,10 +81,11 @@ def get_coding_dict(key: str) -> dict: Returns: dict: property dictionary """ + input_key = key key = key.lower() if not key in _PROPERTY_KEYS: key = get_close_matches(key, _PROPERTY_KEYS, n=1)[0] - logger.warning(f"No matching key found for {key}. Falling back to closest match {key}.") + logger.warning(f"No matching key found for {input_key}. Falling back to closest match {key}.") cd = _load_coding_data(key) cd = _load_coding_data(key)