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

Fixed EF & Process contribution tables not switching scenarios #1237

Merged

Conversation

mrvisscher
Copy link
Collaborator

@mrvisscher mrvisscher commented Feb 19, 2024

Fixes a bug where the EF Contributions and Process contributions result tabs do not update their tables and graphs when selecting another scenario. This PR fixes this by passing the scenario index as kwarg when updating the table.

Demo

contribution-tables-fix

Checklist

  • Keep pull requests small so they can be easily reviewed.
  • Update the documentation, please follow the numpy style guide.
  • Update tests.
  • Categorize the PR by setting a good title and adding one of the labels:
    bug, feature, ui, change, documentation, breaking, ci
    as they show up in the changelog.
  • Link this PR to related issues by using closing keywords.
  • Add a milestone to the PR for the intended release.
  • Request a review from another developer.

@mrvisscher mrvisscher added the bug Issues/PRs related to bugs label Feb 19, 2024
@mrvisscher mrvisscher added this to the 2.9.7 milestone Feb 19, 2024
@coveralls
Copy link

coveralls commented Feb 19, 2024

Coverage Status

coverage: 50.652% (-0.04%) from 50.688%
when pulling 3b59d7a on mrvisscher:contribution-tables-fix
into 0955df9 on LCA-ActivityBrowser:master.

Copy link
Member

@marc-vdm marc-vdm left a comment

Choose a reason for hiding this comment

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

LGTM

aggregator = self.combobox_menu.agg.currentText()

# catch uninitiated scenario combobox
if scenario < 0: scenario = 0
Copy link
Member

Choose a reason for hiding this comment

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

In the future, please only use single-line ifs for returning from a function.

@mrvisscher mrvisscher merged commit ffa5ad8 into LCA-ActivityBrowser:master Feb 19, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues/PRs related to bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants