Skip to content

Commit 15aa414

Browse files
committed
read loopbio files and draw skeletons
1 parent 8d8f836 commit 15aa414

14 files changed

Lines changed: 410 additions & 230 deletions

tierpsy/features/tierpsy_features/smooth.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from scipy.signal import savgol_filter
1010

1111

12-
def _h_resample_curve(curve, resampling_N=49, widths=None):
12+
def _h_resample_curve(curve, resampling_N=49, widths=None, interp_kind = 'linear'):
1313
'''Resample curve to have resampling_N equidistant segments
1414
I give width as an optional parameter since I want to use the
1515
same interpolation as with the skeletons
@@ -30,8 +30,8 @@ def _h_resample_curve(curve, resampling_N=49, widths=None):
3030
if len(lengths) < 2 or len(curve) < 2:
3131
return None, None, None
3232

33-
fx = interp1d(lengths, curve[:, 0])
34-
fy = interp1d(lengths, curve[:, 1])
33+
fx = interp1d(lengths, curve[:, 0], kind = interp_kind)
34+
fy = interp1d(lengths, curve[:, 1], kind = interp_kind)
3535

3636
subLengths = np.linspace(0 + np.finfo(float).eps, tot_length, resampling_N)
3737

tierpsy/gui/AnalysisProgress_ui.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22

33
# Form implementation generated from reading ui file 'AnalysisProgress.ui'
44
#
5-
# Created by: PyQt5 UI code generator 5.9.2
5+
# Created by: PyQt5 UI code generator 5.12.3
66
#
77
# WARNING! All changes made in this file will be lost!
88

9+
910
from PyQt5 import QtCore, QtGui, QtWidgets
1011

12+
1113
class Ui_AnalysisProgress(object):
1214
def setupUi(self, AnalysisProgress):
1315
AnalysisProgress.setObjectName("AnalysisProgress")
@@ -33,4 +35,3 @@ def setupUi(self, AnalysisProgress):
3335
def retranslateUi(self, AnalysisProgress):
3436
_translate = QtCore.QCoreApplication.translate
3537
AnalysisProgress.setWindowTitle(_translate("AnalysisProgress", "Analysis Progress"))
36-

tierpsy/gui/BatchProcessing_ui.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22

33
# Form implementation generated from reading ui file 'BatchProcessing.ui'
44
#
5-
# Created by: PyQt5 UI code generator 5.9.2
5+
# Created by: PyQt5 UI code generator 5.12.3
66
#
77
# WARNING! All changes made in this file will be lost!
88

9+
910
from PyQt5 import QtCore, QtGui, QtWidgets
1011

12+
1113
class Ui_BatchProcessing(object):
1214
def setupUi(self, BatchProcessing):
1315
BatchProcessing.setObjectName("BatchProcessing")
@@ -199,4 +201,3 @@ def retranslateUi(self, BatchProcessing):
199201
self.p_unmet_requirements.setText(_translate("BatchProcessing", "Print Unmet Requirements"))
200202
self.p_only_summary.setText(_translate("BatchProcessing", "Only Display Progress Summary"))
201203
self.pushButton_start.setText(_translate("BatchProcessing", "START"))
202-

tierpsy/gui/GetMaskParams_ui.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22

33
# Form implementation generated from reading ui file 'GetMaskParams.ui'
44
#
5-
# Created by: PyQt5 UI code generator 5.9.2
5+
# Created by: PyQt5 UI code generator 5.12.3
66
#
77
# WARNING! All changes made in this file will be lost!
88

9+
910
from PyQt5 import QtCore, QtGui, QtWidgets
1011

12+
1113
class Ui_GetMaskParams(object):
1214
def setupUi(self, GetMaskParams):
1315
GetMaskParams.setObjectName("GetMaskParams")
@@ -452,4 +454,3 @@ def retranslateUi(self, GetMaskParams):
452454
self.pushButton_paramFile.setText(_translate("GetMaskParams", "Parameters File"))
453455
self.pushButton_next.setText(_translate("GetMaskParams", "Next Chunk"))
454456
self.pushButton_play.setText(_translate("GetMaskParams", "Play"))
455-

0 commit comments

Comments
 (0)