I just made small script(attached below) to see the output of ‘CompositionToStructureFromMP’, but I am getting following error:/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/multiprocessing/resource_tracker.py:224: UserWarning: resource_tracker: There appear to be 1 leaked semaphore objects to clean up at shutdown
warnings.warn('resource_tracker: There appear to be %d ’
Can someone help me figure out the problem?
from matminer.datasets import load_dataset
from matminer.featurizers.conversions import StrToComposition, CompositionToStructureFromMPdef test_composition_to_structure():
df = load_dataset(“mp_nostruct_20181018”)df = df.head(10) stc = StrToComposition() df = stc.featurize_dataframe(df, "formula") cts = CompositionToStructureFromMP() try: df = cts.featurize_dataframe(df, "composition", ignore_errors=True) print(df[['composition', 'structure']]) except Exception as e: print(f"Error occurred: {e}")
if name == “main”:
test_composition_to_structure()