bguillouet / traj-dist

A python package for computing distance between 2D trajectories.
MIT License
311 stars 80 forks source link

tdist.sowd_grid is error. ValueError: Buffer dtype mismatch, expected 'long' but got 'long long' #15

Open JvqingLiu opened 3 years ago

JvqingLiu commented 3 years ago

import numpy as np import traj_dist.distance as tdist

a=np.array([(116.750,40.632),(116.760,40.642),(116.770,40.652)]) b=np.array([(116.751,40.632),(116.761,40.642),(116.771,40.652)])

print(tdist.sowd_grid(a,b,"spherical",False))

15

ValueError: Buffer dtype mismatch, expected 'long' but got 'long long'

I think it's a C long problem, please help me, thanks a lot! @bguillouet @djjavo

glsaltfish commented 3 years ago

+1, wait for a answer.

Onedean commented 3 years ago

+1, wait for a answer. I would appreciate it if someone could help me. @bguillouet @djjavo

ghasemikasra39 commented 3 years ago

same issue

daydayup-makezero commented 2 years ago

Has anyone solved this problem?can you give us some suggestions?