-
Notifications
You must be signed in to change notification settings - Fork 3
Add functionality to read files instead of raw strings #35
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
Conversation
Add `detect_encoding` to be called in `ags_to_dfs` Add `read_ags_source` to be called in `ags_to_dfs` ( Update `ags3_to_dfs` for same Update `ags4_to_dfs` for same Add docstring to `coerce_string`
`test_detect_encoding` was also testing strings containing ags data (which is not needed), causing github workflows to fail.
|
Thanks for this amazing PR, Konner! |
Update docstrings to remove relic args Update docstrings for typos
|
Awesome, I think I'm done with the review. Now I need to redo the automated test on the Kai Tak Hong Kong example marimo notebook a bit, then we can see if that notebook needs any changing due to the new way of handling files that you implemented, and then this PR can be merged. |
|
Hi @konnerhorton, we've updated the test that runs the Kai Tak, HK example marimo notebook in the |
|
Done, looks like the automated tests passed. |
|
Oke, then still something isn't going quite right with the tests, because the notebook shouldn't be able to run anymore, because previously the notebook was performing the AGS 3 data to dataframes operation on a string, and now that shouldn't be possible anymore. Nonetheless, I'll merge this PR and have a look at what is going on here exactly in a different PR myself. Thanks a million for the fantastic work @konnerhorton! |
|
Ah, I think that the problem is that I'm still running the marimo notebook with |
Fixes issue #6 by adding to
bedrock_ge.ags.readread_ags_sourceto read filepath or file-like objects (returns a context manager streamdetect_encodingto infer encoding from object (user can provide encoding)ags_to_dfsto read the sourceAdd test for
detect_encodingand ags3 sample data.