@@ -385,7 +385,7 @@ class DictSet(VaspInputSet):
385
385
international_monoclinic : bool = True
386
386
validate_magmom : bool = True
387
387
inherit_incar : bool | list [str ] = False
388
- auto_kspacing : bool = False
388
+ auto_kspacing : bool = False
389
389
auto_ismear : bool = False
390
390
auto_ispin : bool = False
391
391
auto_lreal : bool = False
@@ -414,7 +414,7 @@ def __post_init__(self):
414
414
# self.user_kpoints_settings will never be `None` because it is set to
415
415
# an empty dict if it is `None`.
416
416
warnings .warn (
417
- f "You have specified KSPACING and also supplied KPOINTS "
417
+ "You have specified KSPACING and also supplied KPOINTS "
418
418
"settings. KSPACING only has effect when there is no "
419
419
"KPOINTS file. Since both settings were given, pymatgen"
420
420
"will generate a KPOINTS file and ignore KSPACING."
@@ -553,8 +553,8 @@ def get_input_set(
553
553
incar = self .incar ,
554
554
kpoints = self .kpoints ,
555
555
poscar = self .poscar ,
556
- potcar = "\n " .join (self .potcar_symbols ) if potcar_spec else self .potcar ,
557
- potcar_spec = potcar_spec
556
+ potcar = "\n " .join (self .potcar_symbols ) if potcar_spec else self .potcar ,
557
+ potcar_spec = potcar_spec ,
558
558
)
559
559
560
560
@property
@@ -615,7 +615,7 @@ def incar(self) -> Incar:
615
615
616
616
# breaking change - order in which settings applied inconsistent with atomate2
617
617
# apply updates from input set generator to SETTINGS
618
- #_apply_incar_updates(settings, incar_updates)
618
+ # _apply_incar_updates(settings, incar_updates)
619
619
620
620
# apply user incar settings to SETTINGS not to INCAR
621
621
_apply_incar_updates (settings , self .user_incar_settings )
@@ -633,7 +633,7 @@ def incar(self) -> Incar:
633
633
if key == "MAGMOM" :
634
634
mag = []
635
635
for site in structure :
636
- if uic_magmom := self .user_incar_settings .get ("MAGMOM" ,{}).get (site .species_string ):
636
+ if uic_magmom := self .user_incar_settings .get ("MAGMOM" , {}).get (site .species_string ):
637
637
mag .append (uic_magmom )
638
638
elif hasattr (site , "magmom" ):
639
639
mag .append (site .magmom )
@@ -740,7 +740,7 @@ def incar(self) -> Incar:
740
740
"Hybrid functionals only support Algo = All, Damped, or Normal." ,
741
741
BadInputSetWarning ,
742
742
)
743
-
743
+
744
744
if self .auto_ismear :
745
745
if self .bandgap is None :
746
746
# don't know if we are a metal or insulator so set ISMEAR and SIGMA to
@@ -821,11 +821,9 @@ def poscar(self) -> Poscar:
821
821
site_properties = self .structure .site_properties
822
822
return Poscar (
823
823
self .structure ,
824
- velocities = site_properties .get ("velocities" ),
824
+ velocities = site_properties .get ("velocities" ),
825
825
predictor_corrector = site_properties .get ("predictor_corrector" ),
826
- predictor_corrector_preamble = self .structure .properties .get (
827
- "predictor_corrector_preamble"
828
- ),
826
+ predictor_corrector_preamble = self .structure .properties .get ("predictor_corrector_preamble" ),
829
827
lattice_velocities = self .structure .properties .get ("lattice_velocities" ),
830
828
)
831
829
@@ -1350,7 +1348,7 @@ class MPScanRelaxSet(DictSet):
1350
1348
"""
1351
1349
1352
1350
bandgap : float | None = None
1353
- auto_kspacing : bool = True
1351
+ auto_kspacing : bool = True
1354
1352
user_potcar_functional : UserPotcarFunctional = "PBE_54"
1355
1353
auto_ismear : bool = True
1356
1354
CONFIG = _load_yaml_config ("MPSCANRelaxSet" )
@@ -1365,6 +1363,7 @@ def __post_init__(self):
1365
1363
for k in vdw_par [self .vdw ]:
1366
1364
self ._config_dict ["INCAR" ].pop (k , None )
1367
1365
1366
+
1368
1367
@dataclass
1369
1368
class MPMetalRelaxSet (DictSet ):
1370
1369
"""
@@ -1526,6 +1525,7 @@ def __post_init__(self):
1526
1525
if self .xc_functional .upper ().endswith ("+U" ):
1527
1526
self ._config_dict ["INCAR" ]["LDAU" ] = True
1528
1527
1528
+
1529
1529
@dataclass
1530
1530
class MPScanStaticSet (MPScanRelaxSet ):
1531
1531
"""Create input files for a static calculation using the accurate and numerically
@@ -1545,7 +1545,7 @@ class MPScanStaticSet(MPScanRelaxSet):
1545
1545
lepsilon : bool = False
1546
1546
lcalcpol : bool = False
1547
1547
inherit_incar : bool = True
1548
- auto_kspacing : bool = True
1548
+ auto_kspacing : bool = True
1549
1549
1550
1550
@property
1551
1551
def incar_updates (self ) -> dict :
0 commit comments