-
Notifications
You must be signed in to change notification settings - Fork 3
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
pre-commit generating incorrect csv example files #285
Comments
The CSV examples and documentation are correct and The CSV format uses Well-Known Text (WKT) to represent geometries, per the examples in the introduction to the CSV format documentation, the description of
So in the CSV example files, Support for WKT was added in Flatten Tool version 0.22 which is pinned in Let me know if you're still running into problems. |
hmm, my flattentool version is 0.24.1. I followed all the instructions in https://ofds-standard-development-handbook.readthedocs.io/en/latest/technical/build.html for creating the dev environment. Using
I assume because my version of Ubuntu uses python 3.8, so I tried again using When I ran
From looking up the flatten-tool changelog I can see that that's about the WKT you're talking about. Incidently there's nothing in the flattentool documentation about how to install these optional geo dependencies but that's an issue for a different repo! When I run
so that doesn't work. I manually installed flatten-tool==0.22 and now it works and generates the correct csv example so I'll close this issue and make myself a note to always do this in the future. |
Good spot. Building the docs requires Python 3.9 or greater. I've added a note to the development handbook. You should build from |
See 8d6bf03
.manage.py pre-commit
was run and it changed the filesexamples/csv/nodes.csv
andexamples/csv/spans.csv
. The files had until then been incorrect:nodes.csv
has a columnnodes/0/location
but it should havenodes/0/location/type
andnodes/0/location/coordinates
. This error is in thetemplate/nodes.csv
as wellspans.csv
hasspans/0/route
but it should havespans/0/route/type
andspans/0/route/coordinates
. Again this error is in thetemplate/spans.csv
as wellThe test is flagging the change as wrong due to a gitdiff but what
manage.py pre-commit
has done is corrected the files, it's unclear why my localmanage.py
has corrected these but the github auto version is generating the old wrong versions and so the gitdiff?The documentation https://open-fibre-data-standard.readthedocs.io/en/latest/reference/publication_formats/csv.html#nodes is also incorrect when referencing
location
androute
.The text was updated successfully, but these errors were encountered: