Skip to content

Commit d0847fc

Browse files
committed
pymcnp: fixed compile issues
1 parent b5ddfdb commit d0847fc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/example_box.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ def get_inp(RADIUS_AIR, RADIUS_SHIELD, RADIUS_LEAD):
3535
"""[1:-1]
3636

3737

38-
print(get_inp(60, 15, 1).to_mcnp())
38+
print(get_inp(60, 15, 1))

src/pymcnp/utils/_object.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def modify(self, **modifications):
4545
subattributes = attribute.split('.')
4646

4747
for i, _ in enumerate(subattributes[1:]):
48-
modifier = eval(f'self.{'.'.join(subattributes[:-1-i])}').modify(
48+
modifier = eval(f'self.{".".join(subattributes[:-1-i])}').modify(
4949
**{subattributes[-1 - i]: modifier}
5050
)
5151

0 commit comments

Comments
 (0)