Skip to content

Commit

Permalink
fix formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandip117 committed Aug 20, 2024
1 parent 8f55ccf commit db61ef4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions markimg/markimg.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,12 +486,12 @@ def run(self, options):

d_femur = {}
# Print specific details about the image
rightFemurInfo = 'Right femur'.rjust(16) + f': {str(d_lengths['Right femur'])} {unit}'
rightFemurInfo = 'Right femur'.rjust(16) + f": {str(d_lengths['Right femur'])} {unit}"
d_femur['Right femur'] = str(d_lengths['Right femur']) + f' {unit}'
x_pos = x_pos + line_gap
plt.text(x_pos, y_pos, rightFemurInfo, color='white', fontsize=options.textSize, rotation=90)

leftFemurInfo = 'Left femur'.rjust(16) + f': {str(d_lengths['Left femur'])} {unit}'
leftFemurInfo = 'Left femur'.rjust(16) + f": {str(d_lengths['Left femur'])} {unit}"
d_femur['Left femur'] = str(d_lengths['Left femur']) + f' {unit}'
x_pos = x_pos + line_gap
plt.text(x_pos, y_pos, leftFemurInfo, color='white', fontsize=options.textSize, rotation=90)
Expand All @@ -509,12 +509,12 @@ def run(self, options):
plt.text(x_pos, y_pos, '', color='white', fontsize=options.textSize, rotation=90)

d_tibia = {}
rightTibiaInfo = 'Right tibia'.rjust(16) + f': {str(d_lengths['Right tibia'])} {unit}'
rightTibiaInfo = 'Right tibia'.rjust(16) + f": {str(d_lengths['Right tibia'])} {unit}"
d_tibia['Right tibia'] = str(d_lengths['Right tibia']) + f' {unit}'
x_pos = x_pos + line_gap
plt.text(x_pos, y_pos, rightTibiaInfo, color='white', fontsize=options.textSize, rotation=90)

leftTibiaInfo = 'Left tibia'.rjust(16) + f': {str(d_lengths['Left tibia'])} {unit}'
leftTibiaInfo = 'Left tibia'.rjust(16) + f": {str(d_lengths['Left tibia'])} {unit}"
d_tibia['Left tibia'] = str(d_lengths['Left tibia']) + f' {unit}'
x_pos = x_pos + line_gap
plt.text(x_pos, y_pos, leftTibiaInfo, color='white', fontsize=options.textSize, rotation=90)
Expand All @@ -532,13 +532,13 @@ def run(self, options):

d_total = {}
totalRightInfo = 'Total right'.rjust(16) + \
f': {str(self.getSum(d_lengths['Right femur'], d_lengths['Right tibia']))} {unit}'
f": {str(self.getSum(d_lengths['Right femur'], d_lengths['Right tibia']))} {unit}"
d_total['Total right'] = str(self.getSum(d_lengths['Right femur'], d_lengths['Right tibia'])) + f' {unit}'
x_pos = x_pos + line_gap
plt.text(x_pos, y_pos, totalRightInfo, color='white', fontsize=options.textSize, rotation=90)

totalLeftInfo = 'Total left'.rjust(16) + \
f': {str(self.getSum(d_lengths['Left femur'], d_lengths['Left tibia']))} {unit}'
f": {str(self.getSum(d_lengths['Left femur'], d_lengths['Left tibia']))} {unit}"
d_total['Total left'] = str(self.getSum(d_lengths['Left femur'], d_lengths['Left tibia'])) + f' {unit}'
x_pos = x_pos + line_gap
plt.text(x_pos, y_pos, totalLeftInfo, color='white', fontsize=options.textSize, rotation=90)
Expand Down

0 comments on commit db61ef4

Please sign in to comment.