File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
matminer/featurizers/site Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 33"""
44import copy
55import os
6+ from typing import Literal
67
78import numpy as np
89import pymatgen .analysis .local_env
@@ -372,11 +373,12 @@ class CrystalNNFingerprint(BaseFeaturizer):
372373 """
373374
374375 @staticmethod
375- def from_preset (preset , ** kwargs ):
376+ def from_preset (preset : Literal [ "cn" , "ops" ] , ** kwargs ):
376377 """
377378 Use preset parameters to get the fingerprint
378379 Args:
379- preset (str): name of preset ("cn" or "ops")
380+ preset ('cn' | 'ops'): Initializes the featurizer to use coordination number ('cn') or structural
381+ order parameters like octahedral, tetrahedral ('ops').
380382 **kwargs: other settings to be passed into CrystalNN class
381383 """
382384 if preset == "cn" :
You can’t perform that action at this time.
0 commit comments