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 Jan 28, 2024
1 parent 1e1150d commit 07c37a2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions CenterlineDisassembly/CenterlineDisassembly.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,8 @@ def processCenterlineIds(self, inputCenterline: slicer.vtkMRMLModelNode):

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

def processGroupIds(self, inputCenterline: slicer.vtkMRMLModelNode, bifurcations):
Expand Down Expand Up @@ -369,7 +370,8 @@ def processGroupIds(self, inputCenterline: slicer.vtkMRMLModelNode, bifurcations

self.centerlines = None
stopTime = time.time()
logging.info(f"Processing completed in {stopTime-startTime:.2f} seconds")
durationValue = '%.2f' % (stopTime-startTime)
logging.info(_("Processing completed in {duration} seconds").format(duration=durationValue))
return groupIdsPolyDatas
#
# CenterlineDisassemblyTest
Expand Down
3 changes: 2 additions & 1 deletion CenterlineDisassembly/Resources/UI/CenterlineDisassembly.ui
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<bool>false</bool>
</property>
<property name="SlicerParameterName" stdset="0">
<string>inputCenterline</string>
<string notr="true">inputCenterline</string>
</property>
</widget>
</item>
Expand Down Expand Up @@ -104,6 +104,7 @@
<class>qMRMLNodeComboBox</class>
<extends>QWidget</extends>
<header>qMRMLNodeComboBox.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>qMRMLWidget</class>
Expand Down

0 comments on commit 07c37a2

Please sign in to comment.