Skip to content

Commit

Permalink
Remove f-string for 2.7 compat.
Browse files Browse the repository at this point in the history
  • Loading branch information
jadball authored Jan 16, 2024
1 parent 866a259 commit 498f90d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ImageD11/stress.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ def __init__(self,


def __str__(self):
return f"EpsSigSolver:\n phase name: {self.phase_name}\n reference unitcell: {self.unitcell}\n symmetry:" +\
f"{self.symmetry}\n unit:{self.stress_unit}\n Stiffness:\n {self.Cij}\n n ubis: {len(self.UBIs)}"
return ("EpsSigSolver:\n phase name: {phase_name}\n reference unitcell: {unitcell}\n symmetry:" +\
"{symmetry}\n unit:{stress_unit}\n Stiffness:\n {Cij}\n n ubis: {nUBIs)}").format(self)

# Load / save / update functions for parameters (from former eps_sig_solver.py)
########################################
Expand Down

0 comments on commit 498f90d

Please sign in to comment.