Skip to content

Fix wrong color ordering.#57

Open
justushelo wants to merge 7 commits into
Simulation-Decomposition:mainfrom
justushelo:heterogeneity-index
Open

Fix wrong color ordering.#57
justushelo wants to merge 7 commits into
Simulation-Decomposition:mainfrom
justushelo:heterogeneity-index

Conversation

@justushelo
Copy link
Copy Markdown
Contributor

  • Fix color ordering with Python workflow and dashboard.
  • Add tests to ensure correct ordering of color and shades.
  • Update structural_reliability.ipynb with correct colors.

justushelo added 6 commits May 9, 2026 08:32
- Add heterogeneity indices function.
- Add functionality for printing indices and legend. sensitivity_indices.py edited to get var_names for printing.
- Added guardrails for output parameter in decomposition.py
- Added tests for printing legend.
- Initialize decomposition in dashboard with 0.8*sum(si). Other variables still can be chosen after this.
- Updated docs to print correct second-order effects.
Closes Simulation-Decomposition#46, Closes Simulation-Decomposition#47
- Remove decomposition guardrail.
- Use one print for print_indices.
- Add typing info to visualization.py
- Specify decomposition in visualization.py
- Add Ipython into pyproject.toml and add guardrail for import.
- Add stacklevel=2 into warnings.
- Make a function for plotting heterogeneity indices.
- Work with ax instead of plt.
- Delete unnecessary +.
- Add logging instead of print in heterogeneity_indices.py.
- Set import order correct.
Closes Simulation-Decomposition#46, Closes Simulation-Decomposition#47.
- Combine if/elif structure in visualization.py.
- Add more descriptive ipython dependency into pyproject.toml.
- Add test for two_visualization_output if decomposition is missing.
- Correct import order.
Closes Simulation-Decomposition#46, Closes Simulation-Decomposition#47
- Fix two_output_visulalization order.
- Edit heterogeneity_indices plot title to include heterogeneity indice value.
- Fix heterogeneity_indices test to fit title logic.
- Fix color ordering with Python workflow and dashboard.
- Add tests to ensure correct ordering of color and shades.
- Update structural_reliability.ipynb with correct colors.
@netlify
Copy link
Copy Markdown

netlify Bot commented Jun 5, 2026

Deploy Preview for simdec-io ready!

Name Link
🔨 Latest commit 362d2b0
🔍 Latest deploy log https://app.netlify.com/projects/simdec-io/deploys/6a24606be215050008cef74f
😎 Deploy Preview https://deploy-preview-57--simdec-io.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Member

@tupui tupui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The diff is puzzling as I thought I already reviewed this but ok I see Mariia validated the outcome so let's get this in.

@tupui
Copy link
Copy Markdown
Member

tupui commented Jun 5, 2026

Oh I see we have a merge conflicts. Pls merge main into your branch locally

Comment thread panel/simdec_app.py
return np.asarray(si).flatten()


def explained_variance_80(sensitivity_indices_table):
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So no 80% anymore? The function's naming is not proper anymore then.

Comment thread panel/simdec_app.py
states=res.states,
bins=res.bins,
palette=palette,
palette=palette[::-1],
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you not inverting twice like this? The output of palette is inverted no?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants