Skip to content

Commit 6d0d89d

Browse files
committed
revert back to name in f-string
1 parent 1be3beb commit 6d0d89d

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/atomate2/common/powerups.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,10 @@ def update_custodian_handlers(
8787
>>> handlers = (VaspErrorHandler(), MeshSymmetryErrorHandler())
8888
>>> flow = update_custodian_handlers(flow, handlers, RelaxBandStructureMaker)
8989
"""
90+
code = class_filter.name.split(" ")[1]
91+
9092
flow.update_maker_kwargs(
91-
{
92-
"_set": {
93-
f"run_{class_filter.__name__.lower()}_kwargs->handlers": custom_handlers
94-
}
95-
},
93+
{"_set": {f"run_{code}_kwargs->handlers": custom_handlers}},
9694
dict_mod=True,
9795
class_filter=class_filter,
9896
)

0 commit comments

Comments
 (0)