Skip to content

Commit f2352c1

Browse files
committed
Merge branch 'master' into release
2 parents be5d9d7 + 0f31aeb commit f2352c1

File tree

6 files changed

+665
-425
lines changed

6 files changed

+665
-425
lines changed

.github/workflows/build.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ jobs:
3232
run: |
3333
python3 -m pip install --upgrade pip setuptools wheel flake8 pyinstaller==6.10.0
3434
python3 -m pip install -r win-req.txt
35-
- name: Lint with flake8
36-
run: |
37-
# stop the build if there are Python syntax errors or undefined names
38-
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
35+
# - name: Lint with flake8
36+
# run: |
37+
# # stop the build if there are Python syntax errors or undefined names
38+
# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
3939
- name: Run pyinstaller
4040
run: |
4141
pyinstaller main.spec

settings.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ slicing:
8787
fan_speed: 95
8888
fill_density: 20
8989
filling_type: Triangles
90+
minimum_fill_area: 0.2
9091
filter_tolerance: 0.01
9192
flat_5d: 0
9293
ftetwild_cmd: ./lib/FloatTetwild_bin.exe -i sett.slicing.stl_file -o lib/goosli_middle.msh
@@ -96,7 +97,7 @@ slicing:
9697
lids_depth: 3
9798
bottoms_depth: 3
9899
line_width: 0.4
99-
magic_epsilon: 40
100+
magic_epsilon: 15
100101
material_shrinkage: 0.0
101102
flow_rate: 100
102103
pressure_advance_on: true
@@ -112,14 +113,14 @@ slicing:
112113
random_layer_start: false
113114
is_wall_outside_in: true
114115
planes_contact_with_nozzle: ""
115-
print_speed: 50
116-
print_speed_layer1: 50
117-
print_speed_wall: 50
116+
print_speed: 60
117+
print_speed_layer1: 30
118+
print_speed_wall: 60
118119
print_time: 0
119-
retract_compensation_amount: 3.0
120-
retraction_distance: 3.0
120+
retract_compensation_amount: 1.9
121+
retraction_distance: 2.0
121122
retraction_on: true
122-
retraction_speed: 50
123+
retraction_speed: 30
123124
rotationx: 0.0
124125
rotationy: -0.0
125126
rotationz: 0.0

src/controller.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -381,8 +381,8 @@ def download_planes(self):
381381
if file_ext == ".TXT":
382382
try:
383383
self.load_planes_from_file(filename)
384-
except:
385-
showErrorDialog("Error during reading planes file")
384+
except Exception as e:
385+
showErrorDialog("Error during reading planes file: " + str(e))
386386
else:
387387
showErrorDialog("This file format isn't supported:" + file_ext)
388388
except IOError as e:
@@ -411,10 +411,16 @@ def load_figure_settings(self):
411411
)
412412
)
413413

414+
if isinstance(sett().figures[idx], dict):
415+
sett().figures[idx] = settings.Settings(sett().figures[idx])
416+
414417
if not hasattr(sett().figures[idx], "settings"):
415418
setattr(sett().figures[idx], "settings", settings.Settings({}))
416419

417-
self.model.figures_setts.append(sett().figures[idx].settings)
420+
try:
421+
self.model.figures_setts.append(sett().figures[idx].settings)
422+
except Exception as e:
423+
showErrorDialog("Error accessing settings: " + str(e))
418424

419425
def load_planes_from_file(self, filename):
420426
self.load_planes(read_planes(filename))

src/figure_editor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def emmit_value(state: int):
161161

162162
# part regarding additional settings per figure
163163
self.__additional_settings_widget = (
164-
SettingsWidget(settings_provider=settings_provider)
164+
SettingsWidget(settings_provider=settings_provider, use_grouping=False)
165165
.from_settings(settings_provider())
166166
.with_delete()
167167
)

src/locales.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ class Locale:
99
ExtruderTemp = "Extruder temperature, °C:"
1010
BedTemp = "Bed temperature, °C:"
1111
FillDensity = "Fill density, %:"
12+
MinimumFillArea = "Minimum fill area, mm²:"
1213
WallThickness = "Wall thickness:"
1314
NumberWallLines = "Number of wall lines:"
1415
BottomThickness = "Bottom thickness:"
@@ -158,6 +159,12 @@ class Locale:
158159
AutoFanArea = "Auto fan max area, mm²:"
159160
AutoFanSpeed = "Auto fan speed:"
160161

162+
GroupNames = {
163+
"model": "Model Settings",
164+
"material": "Material Settings",
165+
"supports": "Supports Settings",
166+
}
167+
161168
def __init__(self, **entries):
162169
self.__dict__.update(entries)
163170

@@ -172,6 +179,7 @@ def __init__(self, **entries):
172179
ExtruderTemp="Температура сопла, °C:",
173180
BedTemp="Температура стола, °C:",
174181
FillDensity="Плотность заполнения, %:",
182+
MinimumFillArea="Минимальная площадь заполнения, мм²:",
175183
WallThickness="Толщина стенки:",
176184
NumberWallLines="Количество проходов стенки:",
177185
BottomThickness="Толщина дна:",
@@ -319,6 +327,11 @@ def __init__(self, **entries):
319327
AutoFanEnabled="Включить автоматическое управление обдувом",
320328
AutoFanArea="Максимальная площадь для автоматического обдува, мм²:",
321329
AutoFanSpeed="Скорость автоматического обдува:",
330+
GroupNames={
331+
"model": "Настройки модели",
332+
"material": "Настройки материала",
333+
"supports": "Настройки поддержек",
334+
},
322335
),
323336
}
324337

0 commit comments

Comments
 (0)