Skip to content

Commit

Permalink
a couple more f string convertions
Browse files Browse the repository at this point in the history
  • Loading branch information
shimwell committed Jun 2, 2024
1 parent 205e006 commit 45c0bbb
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions jade/utilitiesgui.py
Original file line number Diff line number Diff line change
Expand Up @@ -811,13 +811,7 @@ def print_XS_EXFOR(session):
bookXS[j][MT] = bookXS[j]["dataT"].reactions[i]
# Don't print if MT is not present in library
except KeyError:
s = (
"Channel MT"
+ str(i)
+ " "
+ "not present in "
+ bookXS[j]["name"]
)
s = f"Channel MT{i} not present in {bookXS[j]['name']}"
print(s)
continue

Expand Down Expand Up @@ -957,7 +951,7 @@ def print_XS_EXFOR(session):
)
plt.savefig(
os.path.join(
session.path_uti, isotope_name + "_" + MT + "_" + "XS" + ".png"
session.path_uti, f"{isotope_name}_{MT}_XS.png"
)
)
print(" Cross Section printed")

0 comments on commit 45c0bbb

Please sign in to comment.