NREL / routee-compass

The RouteE-Compass energy-aware routing engine
https://nrel.github.io/routee-compass/
BSD 3-Clause "New" or "Revised" License
9 stars 4 forks source link

Create a parser for multi query files #236

Open jhoshiko opened 1 month ago

jhoshiko commented 1 month ago

While tackling issue #209 (addressed in pr #228), we realized that it would be nice to create a parser for reading in queries from a multi query file. This pr is functional, but if a bracket is missing from a single query, the file pointer will keep reading lines and eventually crash unable to resolve the bad query. Ideally, this parser would catch this error before the crash and return a meaningful error. This will also allow us to verify the integrity of a query file before attempting to run the queries with a CompassApp.

zenon18 commented 1 month ago

Also once this is done, an example on how to use run_in_batches should be in the query_notebook that will be create in #212