Skip to content

Commit

Permalink
PLS: Deprecate widget
Browse files Browse the repository at this point in the history
  • Loading branch information
VesnaT committed Feb 19, 2024
1 parent ff7c581 commit ca4a456
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion conda/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ requirements:
run:
- python >=3.8
- numpy >=1.20.0
- orange3 >=3.34.0
- orange3 >=3.37.0
- orange-canvas-core >=0.1.28
- orange-widget-base >=4.19.0
- scipy >=1.9.0
Expand Down
3 changes: 3 additions & 0 deletions orangecontrib/spectroscopy/widgets/owpls.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,14 @@ class Outputs(OWBaseLearner.Outputs):

class Warning(OWBaseLearner.Warning):
sparse_data = Msg('Sparse input data: default preprocessing is to scale it.')
deprecated = Msg('The PLS widget is deprecated and will be removed in the future.\n'
'You can use a PLS widget in the core Orange instead.')

n_components = Setting(2)
max_iter = Setting(500)

def add_main_layout(self):
self.Warning.deprecated()

self.optimization_box = gui.vBox(
self.controlArea, "Optimization Parameters")
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def include_documentation(local_dir, install_dir):
'setuptools>=36.3', # same as for Orange 3.28
'pip>=9.0', # same as for Orange 3.28
'numpy>=1.20.0',
'Orange3>=3.34.0',
'Orange3>=3.37.0',
'orange-canvas-core>=0.1.28',
'orange-widget-base>=4.19.0',
'scipy>=1.9.0',
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ setenv =
deps =
{env:PYQT_PYPI_NAME:PyQt5}=={env:PYQT_PYPI_VERSION:5.15.*}
{env:WEBENGINE_PYPI_NAME:PyQtWebEngine}=={env:WEBENGINE_PYPI_VERSION:5.15.*}
oldest: orange3==3.34.0
oldest: orange3==3.37.0
oldest: orange-canvas-core==0.1.28
oldest: orange-widget-base==4.19.0
oldest: scikit-learn~=1.0.1
Expand Down

0 comments on commit ca4a456

Please sign in to comment.