-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
trackintel write csv function allows writing non-trackintel format csv files #451
Comments
I also think this is a problem, but more of a problem with the way the library is set up. ti.io.write_positionfixes(sp, "test2.csv")
sp.as_positionfixes.to_csv("test2.csv") and in the latter the attributes are checked, which is the preferred way to access this function. |
Hm... its true that this is a problem in the architecture and I don't really see an easy way out. Maybe if there is an easy way to tell the |
We could use |
The check runs |
At the moment it is possible to write a .csv file that does not correspond to trackintel standards with the
write_csv
functions. I think this is a problem because then you can not open the file later using aread_csv
function. Said differently, I think that every file that is written using a trackintelwrite_csv
function should be readable using a trackintelread_csv
function and this is not the case at the moment if thewrite_csv
function is called without the accessor (e.g.,ti.io.write_staypoints_csv
).I think the problem is that the dataframe is not checked before writing and an easy solution would be to include a call of the accessor before writing the dataframe in order to validate it.
Here is some sample code:
This produces the following error:
The text was updated successfully, but these errors were encountered: