-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[ENH] Discretize: Simplify interface, add nicer binning #5919
Conversation
Hm, or even: |
I don't like the fact that the default setting has a variable type icon, which is somehow renamed to D. I think it is misleading. There's should be no icon, imo. I like the redesign though. Perhaps the second one is better? |
@ajdapretnar, I agree that the icon is misleading. But without any icon, the setting looks like a weird label. I think this looks OK? |
I like the star. I just would avoid visually similar icons to those we already have - so the star works perfectly. |
Now for the fun part.
These were simple questions. On Friday, we'll talk about handling different selections of variables from the same data set. |
c36cabe
to
94c1bda
Compare
Does anybody know a decent way to migrate a non-context setting into a context setting? Default method (which is applied to all variables without specific setting) used to be a non-context setting. Now it is a context setting - as it should be, and also the implementation of the widget is such that this would be difficult to change. Yet, Orange migrates non-context and context settings separately; the method for migrating one of them, doesn't see others. |
@janezd, I think migrate settings sees contexts too (check the dict it is getting). |
Huh, thanks! I was looking at a wrong moment (in migration of default settings, which do not include contexts!) and concluded that they are somehow temporarily removed. I was already considering all kinds of hacks. Thanks! Works like charm. |
2a7bad7
to
ccbbe0a
Compare
Codecov Report
@@ Coverage Diff @@
## master #5919 +/- ##
==========================================
+ Coverage 86.28% 86.31% +0.02%
==========================================
Files 315 315
Lines 66899 67067 +168
==========================================
+ Hits 57725 57890 +165
- Misses 9174 9177 +3 |
c30e823
to
a465ca4
Compare
@ajdapretnar, can I ask you to finish documentation? I have written the text (committed) and made screenshots (attached to this comment). Screenshots need to be stamped, saved in proper format and properly linked in the text. Thanks! |
Will do! |
texts = set() | ||
for key in varkeys: | ||
dvar = self.discretized_vars.get(key) | ||
fmt = self.data.domain[key[0]].repr_val |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are at least two ways this can crash:
self.data
is None
AttributeError: 'NoneType' object has no attribute 'domain'
Reproduce: Add Discretize widget, open and click CCkey
is DefaultKey/None (see L744)
TypeError: 'NoneType' object is not subscriptable
Reproduce: Connect some data to Discretize widget, click CC
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
86b10c0 should now fix it. The button should be disabled when the user selects "Default settings", and Default settings should be selected on "Set data" (which selects it when there is no data).
621cf7a
to
68fdce4
Compare
68fdce4
to
4d61c1b
Compare
@ajdapretnar, I don't see it here, I'm asking just to be sure: have you by any chance already updated the documentation and I force pushed over it? If so -- I'm really sorry for this negligence. Please write down the hash of your commit, pull my changes and add your commit by cherry picking it. If you haven't, it's OK. |
I would like to add a question or a wish here: Why is the number of bins for spinboxes limited to 10? With fixed width (100?) and custom (limited by the length of the input text?) the number is much higher. I think 10 bins is a bit too little. At least in my cases. |
@ajdapretnar can you backup these files, then pull my branch, cherry pick your commit and push? Again, backup these files first! (Otherwise, if you have those files, you can just recreate the commit instead of cherry picking it.) @lanzagar, here's a puzzle for you. @ajdapretnar pushed this commit into my branch. I didn't pull it, but did some rebasing on my side and force-pushed, therefore removing her commit. I cannot cherry pick it, because I never got this commit and I don't know where to get it from -- fetching @ajdapretnar's fork doesn't do anything (it's not there, of course), nor can I get it from origin (it is not in any branch). Github, however, shows the commit, it just says it doesn't belong to any branch. Is there a way for me to get such a branchless, remoteless, forkless commit? |
I added her commit to you branch and pushed to your repo, so I either |
How did you get her commit? You fixed it -- thanks. |
I don't know exactly what the trouble was for you, but I could cherry-pick the commit using the hash (after a standard pull from biolab's orange3 repo) so I just added it to you branch and pushed. |
@janezd The macos failed tests seem not to be related to the PR (segfault and user warning not triggered on owfile). But ubuntu reports this, which does seem related:
Perhaps it's a dependency issue as the test says "Oldest dependencies"? |
Issue
Resolves #5867.
To do:
Description of changes
Includes