Skip to content

Commit f451785

Browse files
committed
files/inp: update f-strings
1 parent 08b0cf5 commit f451785

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/pymcnp/files/inp/inp.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -615,15 +615,15 @@ def to_mcnp(self, makeFancy: bool = True) -> str:
615615

616616
if makeFancy:
617617
source += DELIMITER
618-
source += f'c {'cells':^76.76}\n'
618+
source += f'c {"cells":^76.76}\n'
619619
source += DELIMITER
620620

621621
source += '\n'.join(card.to_mcnp() for card in self.cells.values())
622622
source += '\n\n'
623623

624624
if makeFancy and self.surfaces:
625625
source += DELIMITER
626-
source += f'c {'surfaces':^76.76}\n'
626+
source += f'c {"surfaces":^76.76}\n'
627627
source += DELIMITER
628628

629629
source += '\n'.join(card.to_mcnp() for card in self.surfaces.values())
@@ -632,7 +632,7 @@ def to_mcnp(self, makeFancy: bool = True) -> str:
632632
if self.data_geometry:
633633
if makeFancy:
634634
source += DELIMITER
635-
source += f'c {'geometry data':^76.76}\n'
635+
source += f'c {"geometry data":^76.76}\n'
636636
source += DELIMITER
637637

638638
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:
641641
if self.data_material:
642642
if makeFancy:
643643
source += DELIMITER
644-
source += f'c {'material data':^76.76}\n'
644+
source += f'c {"material data":^76.76}\n'
645645
source += DELIMITER
646646

647647
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:
650650
if self.data_physics:
651651
if makeFancy:
652652
source += DELIMITER
653-
source += f'c {'physics data':^76.76}\n'
653+
source += f'c {"physics data":^76.76}\n'
654654
source += DELIMITER
655655

656656
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:
659659
if self.data_source:
660660
if makeFancy:
661661
source += DELIMITER
662-
source += f'c {'source data':^76.76}\n'
662+
source += f'c {"source data":^76.76}\n'
663663
source += DELIMITER
664664

665665
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:
668668
if self.data_tally:
669669
if makeFancy:
670670
source += DELIMITER
671-
source += f'c {'tally data':^76.76}\n'
671+
source += f'c {"tally data":^76.76}\n'
672672
source += DELIMITER
673673

674674
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:
677677
if self.data_variance:
678678
if makeFancy:
679679
source += DELIMITER
680-
source += f'c {'variance data':^76.76}\n'
680+
source += f'c {"variance data":^76.76}\n'
681681
source += DELIMITER
682682

683683
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:
686686
if self.data_micellaneous:
687687
if makeFancy:
688688
source += DELIMITER
689-
source += f'c {'micellaneous data':^76.76}\n'
689+
source += f'c {"micellaneous data":^76.76}\n'
690690
source += DELIMITER
691691

692692
source += '\n'.join(card.to_mcnp() for card in (self.data_micellaneous).values())

0 commit comments

Comments
 (0)