You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. I am trying to use ALMA toolbox. When I'm trying to use 'Automatic Kinematic Analysis' and push 'start parameter extraction', 3 errors occur randomly. The error codes are below. I am not sure whether these errors occur beacuse of my file format or values, so I attach my deeplabcut files that I used as test sample. M444_mod3.csv M444_mod4.csv M444_mod5.csv
Traceback (most recent call last):
File "C:\Users\timothy\alma-master\Panels\AnalyzeStride.py", line 694, in ExtractParameters
parameters, pd_dataframe_coords, is_stance, bodyparts = KinematicsFunctions.extract_parameters(self.frame_rate, self.df, self.cutoff_f, 'toe',
File "C:\Users\timothy\alma-master\Functions\KinematicsFunctions.py", line 737, in extract_parameters
pairwise_dtw_res_x_5 = pairwise_dtw(toe_xs)
File "C:\Users\timothy\alma-master\Functions\KinematicsFunctions.py", line 194, in pairwise_dtw
distance, _ = fastdtw.fastdtw(iterable[i], iterable[j], dist=euclidean)
File "C:\Users\timothy\anaconda3\envs\ALMA\lib\site-packages\fastdtw\fastdtw.py", line 53, in fastdtw
return __fastdtw(x, y, radius, dist)
File "C:\Users\timothy\anaconda3\envs\ALMA\lib\site-packages\fastdtw\fastdtw.py", line 73, in __fastdtw
__fastdtw(x_shrinked, y_shrinked, radius=radius, dist=dist)
File "C:\Users\timothy\anaconda3\envs\ALMA\lib\site-packages\fastdtw\fastdtw.py", line 73, in __fastdtw
__fastdtw(x_shrinked, y_shrinked, radius=radius, dist=dist)
File "C:\Users\timothy\anaconda3\envs\ALMA\lib\site-packages\fastdtw\fastdtw.py", line 73, in __fastdtw
__fastdtw(x_shrinked, y_shrinked, radius=radius, dist=dist)
File "C:\Users\timothy\anaconda3\envs\ALMA\lib\site-packages\fastdtw\fastdtw.py", line 68, in __fastdtw
return dtw(x, y, dist=dist)
File "C:\Users\timothy\anaconda3\envs\ALMA\lib\site-packages\fastdtw\fastdtw.py", line 130, in dtw
return __dtw(x, y, None, dist)
File "C:\Users\timothy\anaconda3\envs\ALMA\lib\site-packages\fastdtw\fastdtw.py", line 141, in __dtw
dt = dist(x[i-1], y[j-1])
File "C:\Users\timothy\anaconda3\envs\ALMA\lib\site-packages\scipy\spatial\distance.py", line 536, in euclidean
return minkowski(u, v, p=2, w=w)
File "C:\Users\timothy\anaconda3\envs\ALMA\lib\site-packages\scipy\spatial\distance.py", line 479, in minkowski
u = _validate_vector(u)
File "C:\Users\timothy\anaconda3\envs\ALMA\lib\site-packages\scipy\spatial\distance.py", line 318, in _validate_vector
raise ValueError("Input vector should be 1-D.")
ValueError: Input vector should be 1-D.
0 NaN
1 0.291959
2 NaN
3 NaN
4 NaN
5 0.325325
6 0.367034
7 NaN
8 0.375375
9 NaN
Name: cycle duration (s), dtype: float64
Traceback (most recent call last):
File "C:\Users\timothy\alma-master\Panels\AnalyzeStride.py", line 707, in ExtractParameters
KinematicsFunctions.make_parameters_output(os.path.join(os.path.dirname(self.output_path), f'continuous_strides_parameters_{self.filename}.csv'), parameters_truncated)
File "C:\Users\timothy\alma-master\Functions\KinematicsFunctions.py", line 201, in make_parameters_output
parameters.to_csv(pathname)
File "C:\Users\timothy\anaconda3\envs\ALMA\lib\site-packages\pandas\core\generic.py", line 3902, in to_csv
return DataFrameRenderer(formatter).to_csv(
File "C:\Users\timothy\anaconda3\envs\ALMA\lib\site-packages\pandas\io\formats\format.py", line 1152, in to_csv
csv_formatter.save()
File "C:\Users\timothy\anaconda3\envs\ALMA\lib\site-packages\pandas\io\formats\csvs.py", line 247, in save
with get_handle(
File "C:\Users\timothy\anaconda3\envs\ALMA\lib\site-packages\pandas\io\common.py", line 739, in get_handle
check_parent_directory(str(handle))
File "C:\Users\timothy\anaconda3\envs\ALMA\lib\site-packages\pandas\io\common.py", line 604, in check_parent_directory
raise OSError(rf"Cannot save file into a non-existent directory: '{parent}'")
OSError: Cannot save file into a non-existent directory: 'D:\Disk\M444\alma_test\continuous_strides_parameters_D:\Disk\M444\alma_test'
0 NaN
1 NaN
2 0.158492
3 NaN
4 NaN
5 NaN
6 NaN
7 NaN
8 0.191859
9 NaN
10 NaN
11 NaN
Name: cycle duration (s), dtype: float64
Traceback (most recent call last):
File "C:\Users\timothy\alma-master\Panels\AnalyzeStride.py", line 707, in ExtractParameters
KinematicsFunctions.make_parameters_output(os.path.join(os.path.dirname(self.output_path), f'continuous_strides_parameters_{self.filename}.csv'), parameters_truncated)
File "C:\Users\timothy\alma-master\Functions\KinematicsFunctions.py", line 201, in make_parameters_output
parameters.to_csv(pathname)
AttributeError: 'NoneType' object has no attribute 'to_csv'
The text was updated successfully, but these errors were encountered:
Hello. I am trying to use ALMA toolbox. When I'm trying to use 'Automatic Kinematic Analysis' and push 'start parameter extraction', 3 errors occur randomly. The error codes are below. I am not sure whether these errors occur beacuse of my file format or values, so I attach my deeplabcut files that I used as test sample.
M444_mod3.csv
M444_mod4.csv
M444_mod5.csv
The text was updated successfully, but these errors were encountered: