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

Robustify the coloring #890

Merged
merged 2 commits into from
Feb 6, 2024
Merged

Conversation

EmmaRenauld
Copy link
Contributor

Quick description

In some cases, the hidden _data is not ordered correctly. Ex:

new_order = np.flip(np.arange(len(sft)))
sft = sft[new_order]

The sft.data_per_point[key]._data is not always updated!

Accessing the data directly instead.

! Note: There are many other _data usage in that file. I didn't test them all.

It also made me notice that the test name was not correct.
...

Type of change

Check the relevant options.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Provide data, screenshots, command line to test (if relevant)

...

Checklist

  • My code follows the style guidelines of this project (run autopep8)
  • I added relevant citations to scripts, modules and functions docstrings and descriptions
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I moved all functions from the script file (except the argparser and main) to scilpy modules
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

@EmmaRenauld EmmaRenauld requested a review from frheault February 2, 2024 21:01
@arnaudbore arnaudbore self-requested a review February 2, 2024 21:31
@arnaudbore
Copy link
Contributor

Build passed ! Good Job 🍻 !

Copy link
Contributor

@arnaudbore arnaudbore left a comment

Choose a reason for hiding this comment

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

GTG

@arnaudbore arnaudbore merged commit 5dcf990 into scilus:master Feb 6, 2024
5 checks passed
@EmmaRenauld EmmaRenauld deleted the robustify_coloring branch February 20, 2024 19:23
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