@@ -3352,7 +3352,7 @@ def get_symmetry_dataset(self, backend: Literal["moyopy"], **kwargs) -> moyopy.M
33523352 def get_symmetry_dataset (self , backend : Literal ["spglib" ], ** kwargs ) -> spglib .SpglibDataset : ...
33533353
33543354 def get_symmetry_dataset (
3355- self , backend : Literal ["moyopy" , "spglib" ] = "spglib" , return_raw_dataset = False , ** kwargs
3355+ self , backend : Literal ["moyopy" , "spglib" ] = "spglib" , return_raw_dataset = False , symprec : float = 1e-2 , ** kwargs
33563356 ) -> dict | moyopy .MoyoDataset | spglib .SpglibDataset :
33573357 """Get a symmetry dataset from the structure using either moyopy or spglib backend.
33583358
@@ -3368,6 +3368,7 @@ def get_symmetry_dataset(
33683368 return_raw_dataset (bool): Whether to return the raw Dataset object from the backend. The default is
33693369 False, which returns a dict with a common subset of the data present in both datasets. If you use the
33703370 raw Dataset object, we do not guarantee that the format of the output is not going to change.
3371+ symprec (float): Tolerance for symmetry determination. Defaults to 0.01 A.
33713372 **kwargs: Additional arguments passed to the respective backend's constructor.
33723373 For spglib, these are passed to SpacegroupAnalyzer (e.g. symprec, angle_tolerance).
33733374 For moyopy, these are passed to MoyoDataset constructor.
@@ -3391,12 +3392,12 @@ def get_symmetry_dataset(
33913392
33923393 # Convert structure to MoyoDataset format
33933394 moyo_cell = moyopy .interface .MoyoAdapter .from_structure (self )
3394- dataset = moyopy .MoyoDataset (cell = moyo_cell , ** kwargs )
3395+ dataset = moyopy .MoyoDataset (cell = moyo_cell , symprec = symprec , ** kwargs )
33953396
33963397 else :
33973398 from pymatgen .symmetry .analyzer import SpacegroupAnalyzer
33983399
3399- sga = SpacegroupAnalyzer (self , ** kwargs )
3400+ sga = SpacegroupAnalyzer (self , symprec = symprec , ** kwargs )
34003401 dataset = sga .get_symmetry_dataset ()
34013402
34023403 if return_raw_dataset :
0 commit comments