From af60658bb3a451b74a2883b0e97af9579556d7cc Mon Sep 17 00:00:00 2001 From: Corentin Cadiou Date: Wed, 25 Sep 2024 00:04:17 +0200 Subject: [PATCH] Convert to f-string --- yt/frontends/rockstar/data_structures.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt/frontends/rockstar/data_structures.py b/yt/frontends/rockstar/data_structures.py index a0c54a9100..3d613d3b5f 100644 --- a/yt/frontends/rockstar/data_structures.py +++ b/yt/frontends/rockstar/data_structures.py @@ -193,7 +193,7 @@ def __init__(self, ptype, particle_identifier, *, parent_ds, halo_ds): self.particle_identifier = particle_identifier def __repr__(self): - return "%s_%s_%09d" % (self.halo_ds, self.ptype, self.particle_identifier) + return f"{self.halo_ds}_{self.ptype}_{self.particle_identifier:09d}" def __getitem__(self, key): if isinstance(key, tuple):