-
Notifications
You must be signed in to change notification settings - Fork 19
User Interface Design
The VE User Interface includes the model runner and scenario viewer/visualizer.
- Transferring the existing RPAT GUI (see below) is scoped, but this is probably not the best choice for the long term VE project since it uses technology that is unlikely to be maintained by the VE community into the future.
- I suggest we look into client-side web applications like R flexdashboard and maybe shiny (see below) since VE is an R-based framework.
- We want to avoid desktop application issues such as admin rights, installers, etc.
- We want it to be modular - the runner and visualizer are separate but they can cooperate
- Should we merge the GUI and the Scenario Viewer into one solution? Hopefully yes.
- It should reads various VE settings and config files (such as the INP, GET, SET lists) to figure out what is in the model setup
- It should reads the HDF5 output datastore
- It should have a backend settings file so we can write a script to automate runs
- It will display the modules to be called by the models and their current status as the model runs
- Who will administer the GUI/Visualizer? Who will develop and support it? Probably modelers, not software developers.
- Client-side JavaScript such as ABMVIZ and RPAT Dashboard
- These are served by GitHub and read CSV files for data
- Potential issue with reading VE's HDF5 datastore since HDF5 libraries are native. Update: This library is the only HDF5 JavaScript library and it requires Node.js, which is basically a JavaScript web server, which is not easy to setup and maintain. This likely prevents us from a client-side JavaScript-based solution.
- Client-side flexdashboard R package such as the PART model dashboard
- Brian ran into memory problems running it on his 4GB laptop
- Server- and/or desktop-based such as the FSDM GUI which uses R shiny and the existing RPAT GUI which uses CherryPy
- These are not very lightweight since they require running a web server, installing R, Python, and dependent libraries, which often requires user admin rights.
- Update: R shiny is fairly easy to install and update and therefore makes for a reasonable technology for the VE UI.
- Decide on technology -> the team agreed to look into R flexdashboard / shiny-based options
- Prototype a GUI/visualizer for running and visualizing the VE household and employment simulation models
The VE UI lives here and is implemented with R shiny.
- Avoid desktop application issues such as admin rights, installers, etc. This requirement is satisfied by using R shiny, R commands to download and install required R software, and including clear instructions in the various READMEs in the repo.
- Modular - the runner and visualizer are separate but they can cooperate. VE models do not require the UI in order to be run. In order to run a VE model from the UI, the user simply selects a model run script. Cooperation is handled through the requirement to display module status (see below).
- Reads the VE settings files (geo.csv, model_parameters.json, run_parameters.json) and lets the user edit the files from the UI. See #60
- Reads any CSV input files in the inputs folder and lets the user edit the files from the UI. See #61
- GUI and Scenario Viewer are one solution. By using shiny, we will be able to implement the UI for running models and the scenario viewer (visualizer) for viewing the results of multiple model runs.
- Reads HDF5 output datastores from multiple runs in order to visualizer results across scenarios. The user can select multiple HDF5 output datastores in the UI. See #62
- Update UI with running module status. After selecting a VE model run script, the UI displays the VE modules to be run. Once the model is running, it highlights which modules have been run, which module is currently running, and what modules still need to be run. See #63
- Copy a scenario. After selecting a run model script, the complete scenario folder setup is copied to a new folder named by the user. See #64
In order for the UI and a VE model to cooperate about the module run state, the following change will be made to the visioneval framework. The ModelState list will be kept in the Global namespace at all times so the UI and the model run script can share it. The ModelState list now includes the results of the parseModelScript
function call in the initializeModel
function, which parses the model script and creates a table of module calls in the order they are called. The runModule
function is updated to set the status of each module in the module table as the model runs. Example valid status values are: "planned", "running", "complete". This shared data structure is used to update the UI with the status of the running modules. See #65
The existing RPAT Viewer Pilot is going to be integrated into the VE GUI. It is implemented in JavaScript and can likely be integrated into the existing RShiny VEGUI without being significantly re-written. The scenario viewer currently takes as input a CSV file of performance measures by scenario. This will need to be created ahead of running the viewer.
ODOT and others have written scripts to automate the generation of many scenarios (by varying inputs within a specified range). This will need to be added in a later effort since support for multiple scenario generation by varying inputs will need to be added to the visioneval framework first and then exposed in the UI. The current project doesn't have the budget and/or time for this right now.
Therefore, the current tasks for integrating the scenario viewer into the VEGUI are:
- Add a new menu item on the left for the Scenario Viewer
- Add the ability to select a folder for VEGUI to recursively search for VE HDF5 output files. See #96
- Add the ability to select the performance measure R script that reads the VE HDF5 output file and produces the performance measures for each scenario. See #96 and #98
- Integrate the RPAT Viewer Pilot into the existing VEGUI RShiny application and read the performance measures output file created above. See #97
- Getting Started
- VisionEval Models
- VERPAT Tutorial
- VERSPM Tutorial
- VE-RSPM Training
- Developer Orientation
- Goals and Objectives
- Working Together
- Automated Testing
- Contribution Review Criteria
- Modules and Packages
- Development Roadmap
- Documentation Plan
- Multiple Scenarios