Simulation-Decomposition / simdec-python

Sensitivity analysis using simulation decomposition
https://simdec.readthedocs.io
BSD 3-Clause "New" or "Revised" License
21 stars 0 forks source link

Download results #5

Closed gnopik closed 10 months ago

gnopik commented 10 months ago

Let's have a button to download numeric results from the dashboard. Would be great if the csv file contained:

  1. sensitivity indices - FOE, SOE, SI
  2. scenario table (legend)
  3. input states boundaries
tupui commented 10 months ago

For my reference: https://panel.holoviz.org/reference/widgets/FileDownload.html

@gnopik do you want a single csv? If yes I am not sure about the column names there.

gnopik commented 10 months ago

Good question. Perhaps it would make more sense as separate files:

  1. Scenario table
  2. States
  3. Sensitivity indices. And perhaps sensitivity indices is also wise to break into three: 3.1. First-order effects 3.2. Second-order effects 3.3. Combined sensitivity indices

@tupui, does sit make sense?

And then we have five different files. Should they be in an archive?

tupui commented 10 months ago

There is a central question to answer first to me. The format.

If we are flexible, we can go with more modern format like parquet files (see this for instance https://pandas.pydata.org/pandas-docs/stable/user_guide/io.html#parquet) or JSON.

This way we can be very "expressive".

gnopik commented 10 months ago

@tupui, the csv download works well!
In the first SI table, there are two (almost duplicate) columns of numeric data, would it make sense to have just the second one? Otherwise the structure is great!

image

tupui commented 10 months ago

Sure I can 👍😅 While I am at it, I will remove the index and extra 0.

tupui commented 10 months ago

Fixed in https://github.com/Simulation-Decomposition/simdec-python/commit/315c6270cc28225714b693f9a5a001ee98dcd581