-
-
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
[FIX] Paint Data: Save and load labels #2259
Conversation
Orange/widgets/data/owpaintdata.py
Outdated
@@ -778,6 +778,7 @@ class OWPaintData(OWWidget): | |||
density = Setting(7) | |||
#: current data array (shape=(N, 3)) as presented on the output | |||
data = Setting(None, schema_only=True) | |||
labels = Setting(None, schema_only=True) |
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.
Why not Setting(["C1", "C2"], schema_only=True)?
Codecov Report
@@ Coverage Diff @@
## master #2259 +/- ##
=========================================
Coverage ? 72.47%
=========================================
Files ? 319
Lines ? 55130
Branches ? 0
=========================================
Hits ? 39958
Misses ? 15172
Partials ? 0 |
Orange/widgets/data/owpaintdata.py
Outdated
|
||
|
||
def _i(name, icon_path="icons/paintdata", | ||
widg_path=os.path.dirname(os.path.abspath(__file__))): | ||
def _ic(name, icon_path="icons/paintdata", |
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.
_i was not a very good name and neither is _ic. what is wrong with _icon?
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.
Fixed.
Works perfectly. |
Issue
No extra labels are saved when class has more than two values.
Description of changes
Includes