@@ -512,7 +512,10 @@ def __init__(
512
512
site : PeriodicSite ,
513
513
multiplicity : int | None = None ,
514
514
oxi_state : float | None = None ,
515
- ** kwargs ,
515
+ equivalent_sites : list [PeriodicSite ] | None = None ,
516
+ symprec : float = 0.01 ,
517
+ angle_tolerance : float = 5 ,
518
+ user_charges : list [int ] | None = None ,
516
519
) -> None :
517
520
"""Initialize a substitutional defect object.
518
521
@@ -525,9 +528,23 @@ def __init__(
525
528
multiplicity: The multiplicity of the defect.
526
529
oxi_state: The oxidation state of the defect, if not specified,
527
530
this will be determined automatically.
528
- **kwargs: Additional kwargs to pass to the Defect constructor.
531
+ equivalent_sites: A list of equivalent sites for the defect in the structure.
532
+ symprec: Tolerance for symmetry finding.
533
+ angle_tolerance: Angle tolerance for symmetry finding.
534
+ user_charges: User specified charge states. If specified,
535
+ ``get_charge_states`` will return this list. If ``None`` or empty list
536
+ the charge states will be determined automatically.
529
537
"""
530
- super ().__init__ (structure , site , multiplicity , oxi_state , ** kwargs )
538
+ super ().__init__ (
539
+ structure = structure ,
540
+ site = site ,
541
+ multiplicity = multiplicity ,
542
+ oxi_state = oxi_state ,
543
+ equivalent_sites = equivalent_sites ,
544
+ symprec = symprec ,
545
+ angle_tolerance = angle_tolerance ,
546
+ user_charges = user_charges ,
547
+ )
531
548
532
549
def get_multiplicity (self ) -> int :
533
550
"""Returns the multiplicity of a defect site within the structure.
@@ -643,7 +660,9 @@ def __init__(
643
660
multiplicity : int = 1 ,
644
661
oxi_state : float | None = None ,
645
662
equivalent_sites : list [PeriodicSite ] | None = None ,
646
- ** kwargs ,
663
+ symprec : float = 0.01 ,
664
+ angle_tolerance : float = 5 ,
665
+ user_charges : list [int ] | None = None ,
647
666
) -> None :
648
667
"""Initialize an interstitial defect object.
649
668
@@ -656,15 +675,19 @@ def __init__(
656
675
oxi_state: The oxidation state of the defect, if not specified,
657
676
this will be determined automatically.
658
677
equivalent_sites: A list of equivalent sites for the defect in the structure.
659
- **kwargs: Additional kwargs to pass to the Defect constructor.
678
+ symprec: Tolerance for symmetry finding.
679
+ angle_tolerance: Angle tolerance for symmetry finding.
680
+ user_charges: User specified charge states. If specified,
660
681
"""
661
682
super ().__init__ (
662
- structure ,
663
- site ,
664
- multiplicity ,
665
- oxi_state ,
666
- equivalent_sites ,
667
- ** kwargs ,
683
+ structure = structure ,
684
+ site = site ,
685
+ multiplicity = multiplicity ,
686
+ oxi_state = oxi_state ,
687
+ equivalent_sites = equivalent_sites ,
688
+ symprec = symprec ,
689
+ angle_tolerance = angle_tolerance ,
690
+ user_charges = user_charges ,
668
691
)
669
692
670
693
def get_multiplicity (self ) -> int :
0 commit comments