Skip to content
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

More robust parsing of the HTML table output given by InaSAFE #10

Open
vdeparday opened this issue Sep 30, 2013 · 0 comments
Open

More robust parsing of the HTML table output given by InaSAFE #10

vdeparday opened this issue Sep 30, 2013 · 0 comments

Comments

@vdeparday
Copy link
Contributor

Since the html table given by InaSAFE is variable depending on the impact function and on the extent of the calculation, the wrong data can be parsed and return to the UI.
Waiting for the next InaSAFE version and a json output, a more robust parsing of the html should be done, maybe using a python parsing library like pyparsing or beautifulsoup.

Here is code snippet in question: https://github.com/inasafe/safe-geonode/blob/master/safe_geonode/static/safe/js/safe.js#L173-L176

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant