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

CSV of scenarioviewer data #65

Closed
mrspeel opened this issue Jul 12, 2019 · 4 comments
Closed

CSV of scenarioviewer data #65

mrspeel opened this issue Jul 12, 2019 · 4 comments
Labels
enhancement New feature or request

Comments

@mrspeel
Copy link

mrspeel commented Jul 12, 2019

Can a CSV file be created of the data displayed in the scenarioviewer? Perhaps automatically created in /outputs/ folder when the multirun model runs are competed.
ie. one row for each scenario, one column for each viewer output distribution metric.

@dflynn-volpe dflynn-volpe added the enhancement New feature or request label Jul 16, 2019
@jrawbits
Copy link
Collaborator

Implementing this change will modify the VEScenario module. Note that VEScenario includes the whole HTML/Javascript apparatus for the sample viewer (and consequently, the one that is present in the root VisionEval folder is a snapshot).

There's an opportunity to do some things to the HTML (treating the baseline code as a modifiable template) to improve responsiveness and configurability of the models.

@gregorbj
Copy link
Contributor

gregorbj commented Sep 4, 2019

Since the scenario viewer runs in a webpage, the HTML/Javascript standards prohibit web apps from saving files. This is important for security purposes, otherwise malicious web apps could do a lot more harm than they otherwise would do. What the user can do is just highlight and copy the cells in the filtered table and then paste into a spreadsheet. Longer term, to implement a saving mechanism I can think of the following options:

  1. Implement the viewer as a web service to which the user uploads their scenario data, uses the viewer interface, and then downloads the filtered scenario data.
  2. Implement the viewer as a native application that doesn't run through the web browser. There are several options for doing this such as building as a Shiny application, Electron application, React Native application, or Flutter application.

@jrawbits
Copy link
Collaborator

jrawbits commented Sep 5, 2019

The goal is not to have the scenario viewer application save the data, but rather to generate it in parallel the JSON parts of the Scenario Viewer (so in addition to dumping a JSON file with the data for the viewer, it dumps a .csv file with the raw data). That should be pretty painless.

In the medium-to-long term, I'd like to develop a layered architecture for accessing data so that it is easy for someone to drop the results into a new output format. I'd also like to revisit the HTML viewer with the intent of making it easier for a user to customize for their own purposes.

@dflynn-volpe
Copy link
Collaborator

Simple solution closed by PR #77

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

No branches or pull requests

4 participants