OutlierVentures / QTM-Interface

GNU General Public License v3.0
28 stars 18 forks source link

Plot Simulation Results w/ Streamlit #40

Closed achimstruve closed 1 year ago

achimstruve commented 1 year ago

Create the plot implementation of the retrieved simulation data after we solved issue #37.

Let us start by implementing all plots that are already being done by the spreadsheet model.

BlockBoy32 commented 1 year ago

Initial time plots made, some observations:

@achimstruve we can chat about it more on our next call. I made a plot_all() function that does jus that as of now. Not sure if there is another more efficient way to display it on these interfaces. It is not a strong suit of mine nor a huge point of interest.

BlockBoy32 commented 1 year ago

I made a new table in our DB for sys_param so we can use that data for some of our pie plots.

BlockBoy32 commented 1 year ago
achimstruve commented 1 year ago

I just revamped the whole UI as follows:

These are some more to-do's apart from the things you flagged in the post before:

I will continue on these last two bits.

achimstruve commented 1 year ago

Today I solved the point Create mapping between input parameter and result databases for fast toggling between already done simulation results.

achimstruve commented 1 year ago

The following input parts are still missing for the Streamlit frontend.

The challenging part is to build it in a way that it abstracts the complexity away from the user. This requires some common sense and creativity in designing the inputs while still maintaining compatibility to the underlying model and original parameter set definition. Please refer to the already existing implementations for more tangible examples of what I mean by this.

Currently I am working on the User Adoption inputs. It would be great if someone could pick up one or two of the other input sections. Please post it down below if you want to commit to one of those.

BlockBoy32 commented 1 year ago

I can take a look at the utility modules, I might get time this week but a better expectation would be early next week.

achimstruve commented 1 year ago

Reopened this as it is not finished yet. @BlockBoy32

BlockBoy32 commented 1 year ago

https://github.com/OutlierVentures/QTM-Interface/assets/99607108/1a4f8c84-96b0-4516-ada2-9651aaac6cb1

i think this is the direction I am going to head in

achimstruve commented 1 year ago

I finished the User Adoption and Business Assumptions inputs. The only thing missing now is the utilities.

It would be great you can finalize it this week @BlockBoy32.

If you can't push your current state and I'll finish it later this week.

BlockBoy32 commented 1 year ago

I will put some work on it and push the current state today/tomorrow

BlockBoy32 commented 1 year ago

Hey actually I will not be able to get to it by the end of the week. Let me know if you would like to wait for me or not.

achimstruve commented 1 year ago

Could you push the work you did so far? I can continue it this week. cc.: @BlockBoy32

BlockBoy32 commented 1 year ago

I pushed it

achimstruve commented 1 year ago

Okay thanks! I picked it up and rebuilt the whole utility section.

The first iteration of the UI should be finished now.