- made sure that if the OR-TOOLS package is not installed then the options in the Preferences for the related optimizations are disabled
This commit is contained in:
@@ -12,6 +12,7 @@ CHANGELOG for FlatCAM beta
|
|||||||
- fixed another issue when using Python 3.10, in GUI elements
|
- fixed another issue when using Python 3.10, in GUI elements
|
||||||
- fixed the Rtree optimization when drilling with no toolchange such that all drill points are used
|
- fixed the Rtree optimization when drilling with no toolchange such that all drill points are used
|
||||||
- fixed the CNCJob object Tools Table when drilling with no toolchange: now only one tool is displayed
|
- fixed the CNCJob object Tools Table when drilling with no toolchange: now only one tool is displayed
|
||||||
|
- made sure that if the OR-TOOLS package is not installed then the options in the Preferences for the related optimizations are disabled
|
||||||
|
|
||||||
19.11.2021
|
19.11.2021
|
||||||
|
|
||||||
|
|||||||
@@ -123,14 +123,14 @@ class RadioSetDefaults(RadioSet):
|
|||||||
* 'label': Shown in the UI
|
* 'label': Shown in the UI
|
||||||
* 'value': The value returned is selected
|
* 'value': The value returned is selected
|
||||||
|
|
||||||
:param choices: List of choices. See description.
|
:param choices: List of choices. See description.
|
||||||
:param orientation: 'horizontal' (default) of 'vertical'.
|
:param orientation: 'horizontal' (default) of 'vertical'.
|
||||||
:param parent: Qt parent widget.
|
:param parent: Qt parent widget.
|
||||||
:type choices: list
|
:type choices: list
|
||||||
:param dictionary:
|
:param dictionary:
|
||||||
:type dictionary: "dict"
|
:type dictionary: "dict"
|
||||||
:param key_spec:
|
:param key_spec:
|
||||||
:type key_spec: 'str'
|
:type key_spec: 'str'
|
||||||
"""
|
"""
|
||||||
|
|
||||||
super(RadioSetDefaults, self).__init__(choices=choices, orientation=orientation, compact=compact, parent=parent)
|
super(RadioSetDefaults, self).__init__(choices=choices, orientation=orientation, compact=compact, parent=parent)
|
||||||
|
|||||||
@@ -346,6 +346,13 @@ class ExcellonGenPrefGroupUI(OptionsGroupUI):
|
|||||||
self.optimization_time_label.setDisabled(True)
|
self.optimization_time_label.setDisabled(True)
|
||||||
self.optimization_time_entry.setDisabled(True)
|
self.optimization_time_entry.setDisabled(True)
|
||||||
|
|
||||||
|
try:
|
||||||
|
import ortools
|
||||||
|
except ModuleNotFoundError:
|
||||||
|
self.excellon_optimization_radio.setOptionsDisabled([_('MetaHeuristic'), _('Basic')], True)
|
||||||
|
self.optimization_time_label.setDisabled(True)
|
||||||
|
self.optimization_time_entry.setDisabled(True)
|
||||||
|
|
||||||
# Setting plot colors signals
|
# Setting plot colors signals
|
||||||
self.line_color_entry.editingFinished.connect(self.on_line_color_entry)
|
self.line_color_entry.editingFinished.connect(self.on_line_color_entry)
|
||||||
self.fill_color_entry.editingFinished.connect(self.on_fill_color_entry)
|
self.fill_color_entry.editingFinished.connect(self.on_fill_color_entry)
|
||||||
|
|||||||
@@ -171,6 +171,13 @@ class GeometryGenPrefGroupUI(OptionsGroupUI):
|
|||||||
self.optimization_time_label.setDisabled(True)
|
self.optimization_time_label.setDisabled(True)
|
||||||
self.optimization_time_entry.setDisabled(True)
|
self.optimization_time_entry.setDisabled(True)
|
||||||
|
|
||||||
|
try:
|
||||||
|
import ortools
|
||||||
|
except ModuleNotFoundError:
|
||||||
|
self.opt_algorithm_radio.setOptionsDisabled([_('MetaHeuristic'), _('Basic')], True)
|
||||||
|
self.optimization_time_label.setDisabled(True)
|
||||||
|
self.optimization_time_entry.setDisabled(True)
|
||||||
|
|
||||||
self.opt_algorithm_radio.activated_custom.connect(self.optimization_selection)
|
self.opt_algorithm_radio.activated_custom.connect(self.optimization_selection)
|
||||||
|
|
||||||
# Setting plot colors signals
|
# Setting plot colors signals
|
||||||
|
|||||||
@@ -4,16 +4,21 @@
|
|||||||
# Usage: pip3 install -r requirements.txt
|
# Usage: pip3 install -r requirements.txt
|
||||||
|
|
||||||
numpy>=1.16
|
numpy>=1.16
|
||||||
matplotlib>=3.4.5
|
|
||||||
cycler>=0.10
|
cycler>=0.10
|
||||||
python-dateutil>=2.1
|
python-dateutil>=2.1
|
||||||
kiwisolver>=1.1
|
kiwisolver>=1.1
|
||||||
|
matplotlib>=3.5.0
|
||||||
six
|
six
|
||||||
setuptools
|
setuptools
|
||||||
dill
|
dill
|
||||||
rtree
|
rtree
|
||||||
pyopengl
|
pyopengl
|
||||||
|
|
||||||
|
# ###############################
|
||||||
|
# OR-TOOLS package is now optional
|
||||||
ortools>=7.0
|
ortools>=7.0
|
||||||
|
# ###############################
|
||||||
|
|
||||||
svg.path>=4.0
|
svg.path>=4.0
|
||||||
simplejson
|
simplejson
|
||||||
shapely>=1.7.1
|
shapely>=1.7.1
|
||||||
@@ -30,5 +35,4 @@ pikepdf>=2.0
|
|||||||
pyqt6>=6.1.0
|
pyqt6>=6.1.0
|
||||||
vispy>=0.9.0
|
vispy>=0.9.0
|
||||||
rasterio
|
rasterio
|
||||||
foronoi>=1.0.3
|
foronoi>=1.0.3
|
||||||
networkx
|
|
||||||
@@ -18,6 +18,7 @@ sudo apt-get install -y \
|
|||||||
python3-tk
|
python3-tk
|
||||||
|
|
||||||
|
|
||||||
|
# ################################
|
||||||
# Python packages
|
# Python packages
|
||||||
|
|
||||||
sudo -H python3 -m pip install --upgrade \
|
sudo -H python3 -m pip install --upgrade \
|
||||||
@@ -35,7 +36,6 @@ sudo -H python3 -m pip install --upgrade \
|
|||||||
pyopengl \
|
pyopengl \
|
||||||
setuptools \
|
setuptools \
|
||||||
svg.path \
|
svg.path \
|
||||||
ortools \
|
|
||||||
freetype-py \
|
freetype-py \
|
||||||
fontTools \
|
fontTools \
|
||||||
rasterio \
|
rasterio \
|
||||||
@@ -48,4 +48,6 @@ sudo -H python3 -m pip install --upgrade \
|
|||||||
pyserial \
|
pyserial \
|
||||||
pikepdf \
|
pikepdf \
|
||||||
foronoi \
|
foronoi \
|
||||||
networkx
|
ortools
|
||||||
|
# OR-TOOLS package is now optional
|
||||||
|
# ################################
|
||||||
|
|||||||
Reference in New Issue
Block a user