question about checkDataValidity #549
Unanswered
thevelvetunderground
asked this question in
Q&A
Replies: 2 comments 1 reply
-
|
It shows no data so it can't calculate distances. Could you provide the data so we can check why they had been all removed? |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
As the code clearly shows, by default the data row For now you should just set the data valid by |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I follow the tutorials like this:
data.checkDataValidity()
print(data["valid"])
data.removeInvalid()
print(data)
print("Rx:",data["Rx"],"Tx:",data["Tx"])
sx = pg.x(data)
data["dist"] = np.abs(sx[data["Rx"]] - sx[data["Tx"]])
print(data["dist"])
But it seems clear all the data index:

Is this a bug or I overlookde some code?
Beta Was this translation helpful? Give feedback.
All reactions