Skip to content

Commit

Permalink
f-strings outside core
Browse files Browse the repository at this point in the history
  • Loading branch information
amorfinv committed May 19, 2022
1 parent e54336c commit 3e4be48
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion check.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
print("[FAIL]")

if qt:
print("[QT {}]" .format(QT_VERSION_STR))
print(f"[QT {QT_VERSION_STR}]")
print("Checking for pyopengl ", end=' ')
try:
import OpenGL
Expand Down
6 changes: 3 additions & 3 deletions plugins/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def update(self):
names = np.array(left_del + left_intraf)[mask]

for name, eff in zip(names, sectoreff):
self.feff.write('{}, {}, {}\n'.format(sim.simt, name, eff))
self.feff.write(f'{sim.simt}, {name}, {eff}\n')
sendeff = True

# print('{} aircraft left sector {}, distance flown (acid:dist):'.format(len(left), sector))
Expand All @@ -166,8 +166,8 @@ def update(self):
else:
self.sectorconv[idx] = 0

self.fconv.write('{}, {}\n'.format(sim.simt, self.sectorconv[idx]))
self.fsd.write('{}, {}\n'.format(sim.simt, self.sectorsd[idx]))
self.fconv.write(f'{sim.simt}, {self.sectorconv[idx]}\n')
self.fsd.write('{sim.simt}, {self.sectorsd[idx]}\n')
if sendeff:
self.effplot.send()

Expand Down

0 comments on commit 3e4be48

Please sign in to comment.