Skip to content

Commit 3ead5b4

Browse files
committed
pymcnp: fixed compile issues 4
1 parent 2448570 commit 3ead5b4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/pymcnp/inp/card_surface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,5 +105,5 @@ def to_mcnp(self):
105105
"""
106106

107107
return _parser.postprocess_continuation_line(
108-
f'{self.prefix or ''}{self.number} {self.transform or ''} {self.option}'
108+
f'{self.prefix or ""}{self.number} {self.transform or ""} {self.option}'
109109
)

src/pymcnp/utils/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ def to_mcnp(self) -> str:
713713
return f'{self.z:03}{self.a:03}'
714714

715715

716-
class Particle(_object.McnpElement_, enum.StrEnum):
716+
class Particle(_object.McnpElement_, enum.Enum):
717717
"""
718718
Represents MCNP particle designators.
719719
"""

0 commit comments

Comments
 (0)