JADE-V-V / JADE

JADE, a novel nuclear data libraries V&V tool
GNU General Public License v3.0
23 stars 8 forks source link

f strings instead of string addition for compact readable code #297

Closed shimwell closed 4 months ago

shimwell commented 4 months ago

Description

I've noticed the use of + to combine strings together in many places in the code so I wanted to make an example of how we can do this withf strings instead. In this case I think the f string version of code is a little nicer to read than the addition version. I've also made use of +=

Fixes # (issue)

nothing

Additional dependencies introduced.

None

Type of change

Please select what type of change this is.

Other changes

Testing

Sorry I've checked the output is the same locally but not added tests for this small change

Checklist: