Skip to content

Commit 381053c

Browse files
committed
reduce print to one line
1 parent 5ce07d6 commit 381053c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/diffpy/srmise/baselines/nanospherical.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,6 @@ def getmodule(self):
247247
for tup in zip(r, val, *outjac):
248248
for t in tup:
249249
if t is None:
250-
formatted_t = f"{None}"
251-
print(formatted_t.ljust(10))
250+
print(f"{None}".ljust(10))
252251
else:
253-
formatted_t = f"{t:.3g}".ljust(10)
254-
print(formatted_t)
252+
print(f"{t:.3g}".ljust(10))

0 commit comments

Comments
 (0)