Skip to content

Commit

Permalink
Improve handling of translation. [11]
Browse files Browse the repository at this point in the history
  • Loading branch information
chir-set committed Feb 19, 2024
1 parent a128e8d commit 7971c95
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
9 changes: 6 additions & 3 deletions CenterlineDisassembly/CenterlineDisassembly.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,8 @@ def createCenterlineCurve(self, centerlinePolyData, curveNode):
curveNode.SetName(curveName)

stopTime = time.time()
logging.info(f"Processing curve creation completed in {stopTime-startTime:.2f} seconds")
durationValue = '%.2f' % (stopTime-startTime)
logging.info(_("Processing curve creation completed in {duration} seconds").format(duration=durationValue))

def processCenterlineIds(self):

Expand Down Expand Up @@ -493,7 +494,8 @@ def processCenterlineIds(self):
centerlinePolyDatas.append(appendPolyData.GetOutput())

stopTime = time.time()
logging.info(f"Processing centerline ids completed in {stopTime-startTime:.2f} seconds")
durationValue = '%.2f' % (stopTime-startTime)
logging.info(_("Processing centerline ids completed in {duration} seconds").format(duration=durationValue))
return centerlinePolyDatas

def processGroupIds(self, bifurcations):
Expand Down Expand Up @@ -535,7 +537,8 @@ def processGroupIds(self, bifurcations):
groupIdsPolyDatas.append(unitCellPolyData)

stopTime = time.time()
logging.info(f"Processing group ids completed in {stopTime-startTime:.2f} seconds")
durationValue = '%.2f' % (stopTime-startTime)
logging.info(_("Processing group ids completed in {duration} seconds").format(duration=durationValue))
return groupIdsPolyDatas
#
# CenterlineDisassemblyTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ Upon curve creation, the visibility of the names can be specified via the menu.<
<class>qMRMLNodeComboBox</class>
<extends>QWidget</extends>
<header>qMRMLNodeComboBox.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>qMRMLWidget</class>
Expand Down

0 comments on commit 7971c95

Please sign in to comment.