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

fix: Fix bug in save label colors between sessions #610

Merged
merged 2 commits into from
May 2, 2022

Conversation

Czaki
Copy link
Collaborator

@Czaki Czaki commented May 2, 2022

No description provided.

@Czaki Czaki added this to the v0.14.2 milestone May 2, 2022
@sourcery-ai
Copy link
Contributor

sourcery-ai bot commented May 2, 2022

Sourcery Code Quality Report

✅  Merging this PR will increase code quality in the affected files by 0.02%.

Quality metrics Before After Change
Complexity 2.07 ⭐ 2.07 ⭐ 0.00
Method Length 43.29 ⭐ 43.44 ⭐ 0.15 👎
Working memory 5.86 ⭐ 5.86 ⭐ 0.00
Quality 80.18% 80.20% 0.02% 👍
Other metrics Before After Change
Lines 1099 1113 14
Changed files Quality Before Quality After Quality Change
package/PartSeg/common_gui/colormap_creator.py 76.26% ⭐ 76.16% ⭐ -0.10% 👎
package/PartSegCore/utils.py 81.99% ⭐ 81.95% ⭐ -0.04% 👎
package/tests/test_PartSegCore/test_utils.py 84.02% ⭐ 84.16% ⭐ 0.14% 👍

Here are some functions in these files that still need a tune-up:

File Function Complexity Length Working Memory Quality Recommendation
package/PartSeg/common_gui/colormap_creator.py ColormapList.refresh 8 ⭐ 204 😞 13 😞 45.06% 😞 Try splitting into smaller methods. Extract out complex expressions
package/PartSeg/common_gui/colormap_creator.py ChannelPreview.__init__ 5 ⭐ 252 ⛔ 12 😞 46.58% 😞 Try splitting into smaller methods. Extract out complex expressions
package/PartSeg/common_gui/colormap_creator.py ColormapCreator.__init__ 0 ⭐ 181 😞 11 😞 58.05% 🙂 Try splitting into smaller methods. Extract out complex expressions
package/PartSegCore/utils.py numpy_repr 2 ⭐ 46 ⭐ 12 😞 71.50% 🙂 Extract out complex expressions
package/tests/test_PartSegCore/test_utils.py TestProfileDict.test_update 0 ⭐ 140 😞 6 ⭐ 73.09% 🙂 Try splitting into smaller methods

Legend and Explanation

The emojis denote the absolute quality of the code:

  • ⭐ excellent
  • 🙂 good
  • 😞 poor
  • ⛔ very poor

The 👍 and 👎 indicate whether the quality has improved or gotten worse with this pull request.


Please see our documentation here for details on how these metrics are calculated.

We are actively working on this report - lots more documentation and extra metrics to come!

Help us improve this quality report!

@deprecated-napari-hub-preview-bot

Preview page for your plugin is ready here:
https://preview.napari-hub.org/4DNucleome/PartSeg/610

@Czaki Czaki merged commit 1528ab2 into develop May 2, 2022
@Czaki Czaki deleted the bugfix/color_creation branch May 2, 2022 13:00
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.

1 participant