Urban-Analytics-Technology-Platform / od2net

https://od2net.org
Apache License 2.0
31 stars 9 forks source link

R / Python integration #28

Open dabreegster opened 1 year ago

dabreegster commented 1 year ago

Most users will be using one of the two, so figure out how to nicely integrate

Robinlovelace commented 11 months ago

Happy to help with this one!

dabreegster commented 11 months ago

Cool! I guess as a first step, how much integration is actually useful? The process of using od2net is two parts -- generate input files with a specific form, run a command with very few arguments, and do something with the results (for most interactive questions, the goal is to make the web app do it well). So maybe we don't need much -- just an equivalent example of producing valid input from R?

Robinlovelace commented 11 months ago

Pre-processing valid input files sounds like a good first step and is exactly what the R interface to odjitter() does before passing the computation to Rust via a system command. We can be a bit more sophisticated than this but as a prototype could be pretty quick to implement.