From f4517858d9079cff8f21ddc942da073c425b4e70 Mon Sep 17 00:00:00 2001 From: BitterB0NG0 <93603537+BitterB0NG0@users.noreply.github.com> Date: Sat, 30 Nov 2024 21:43:09 -0700 Subject: [PATCH] files/inp: update f-strings --- src/pymcnp/files/inp/inp.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/pymcnp/files/inp/inp.py b/src/pymcnp/files/inp/inp.py index ec7a5e2..e194c9d 100644 --- a/src/pymcnp/files/inp/inp.py +++ b/src/pymcnp/files/inp/inp.py @@ -615,7 +615,7 @@ def to_mcnp(self, makeFancy: bool = True) -> str: if makeFancy: source += DELIMITER - source += f'c {'cells':^76.76}\n' + source += f'c {"cells":^76.76}\n' source += DELIMITER source += '\n'.join(card.to_mcnp() for card in self.cells.values()) @@ -623,7 +623,7 @@ def to_mcnp(self, makeFancy: bool = True) -> str: if makeFancy and self.surfaces: source += DELIMITER - source += f'c {'surfaces':^76.76}\n' + source += f'c {"surfaces":^76.76}\n' source += DELIMITER source += '\n'.join(card.to_mcnp() for card in self.surfaces.values()) @@ -632,7 +632,7 @@ def to_mcnp(self, makeFancy: bool = True) -> str: if self.data_geometry: if makeFancy: source += DELIMITER - source += f'c {'geometry data':^76.76}\n' + source += f'c {"geometry data":^76.76}\n' source += DELIMITER source += '\n'.join(card.to_mcnp() for card in self.data_geometry.values()) @@ -641,7 +641,7 @@ def to_mcnp(self, makeFancy: bool = True) -> str: if self.data_material: if makeFancy: source += DELIMITER - source += f'c {'material data':^76.76}\n' + source += f'c {"material data":^76.76}\n' source += DELIMITER source += '\n'.join(card.to_mcnp() for card in self.data_material.values()) @@ -650,7 +650,7 @@ def to_mcnp(self, makeFancy: bool = True) -> str: if self.data_physics: if makeFancy: source += DELIMITER - source += f'c {'physics data':^76.76}\n' + source += f'c {"physics data":^76.76}\n' source += DELIMITER source += '\n'.join(card.to_mcnp() for card in (self.data_physics).values()) @@ -659,7 +659,7 @@ def to_mcnp(self, makeFancy: bool = True) -> str: if self.data_source: if makeFancy: source += DELIMITER - source += f'c {'source data':^76.76}\n' + source += f'c {"source data":^76.76}\n' source += DELIMITER source += '\n'.join(card.to_mcnp() for card in (self.data_source).values()) @@ -668,7 +668,7 @@ def to_mcnp(self, makeFancy: bool = True) -> str: if self.data_tally: if makeFancy: source += DELIMITER - source += f'c {'tally data':^76.76}\n' + source += f'c {"tally data":^76.76}\n' source += DELIMITER source += '\n'.join(card.to_mcnp() for card in (self.data_tally).values()) @@ -677,7 +677,7 @@ def to_mcnp(self, makeFancy: bool = True) -> str: if self.data_variance: if makeFancy: source += DELIMITER - source += f'c {'variance data':^76.76}\n' + source += f'c {"variance data":^76.76}\n' source += DELIMITER source += '\n'.join(card.to_mcnp() for card in (self.data_variance).values()) @@ -686,7 +686,7 @@ def to_mcnp(self, makeFancy: bool = True) -> str: if self.data_micellaneous: if makeFancy: source += DELIMITER - source += f'c {'micellaneous data':^76.76}\n' + source += f'c {"micellaneous data":^76.76}\n' source += DELIMITER source += '\n'.join(card.to_mcnp() for card in (self.data_micellaneous).values())