Skip to content

Commit 42d89f2

Browse files
authored
Merge pull request #21198 from GregValiant/Annealing
Annealing
2 parents 8c1c500 + 27a72a9 commit 42d89f2

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

plugins/PostProcessingPlugin/scripts/AnnealingOrDrying.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def getSettingDataString(self):
9191
"description": "Hold the bed temp at the 'Bed Start Out Temperature' for this amount of time (in decimal hours). When this time expires then the Annealing cool down will start. This is also the 'Drying Time' used when 'Drying Filament'.",
9292
"type": "float",
9393
"default_value": 0.0,
94-
"unit": "Decimal Hrs ",
94+
"unit": "Hrs ",
9595
"enabled": "enable_script and cycle_type == 'anneal_cycle'"
9696
},
9797
"dry_time":
@@ -100,7 +100,7 @@ def getSettingDataString(self):
100100
"description": "Hold the bed temp at the 'Bed Start Out Temperature' for this amount of time (in decimal hours). When this time expires the bed will shut off.",
101101
"type": "float",
102102
"default_value": 4.0,
103-
"unit": "Decimal Hrs ",
103+
"unit": "Hrs ",
104104
"enabled": "enable_script and cycle_type == 'dry_cycle'"
105105
},
106106
"pause_cmd":
@@ -117,7 +117,7 @@ def getSettingDataString(self):
117117
"description": "Enter the temperature to start at. This is typically the bed temperature during the print but can be changed here. This is also the temperature used when drying filament.",
118118
"type": "int",
119119
"value": 30,
120-
"unit": "Degrees ",
120+
"unit": "°C/F ",
121121
"minimum_value": 30,
122122
"maximum_value": 110,
123123
"maximum_value_warning": 100,
@@ -129,7 +129,7 @@ def getSettingDataString(self):
129129
"description": "Enter the lowest temperature to control the cool down. This is the shut-off temperature for the build plate and (when applicable) the Heated Chamber. The minimum value is 30",
130130
"type": "int",
131131
"default_value": 30,
132-
"unit": "Degrees ",
132+
"unit": "°C/F ",
133133
"minimum_value": 30,
134134
"enabled": "enable_script and cycle_type == 'anneal_cycle'"
135135
},
@@ -139,7 +139,7 @@ def getSettingDataString(self):
139139
"description": "Enter the temperature for the Build Volume (Heated Chamber). This is typically the temperature during the print but can be changed here.",
140140
"type": "int",
141141
"value": 24,
142-
"unit": "Degrees ",
142+
"unit": "°C/F ",
143143
"minimum_value": 0,
144144
"maximum_value": 90,
145145
"maximum_value_warning": 75,
@@ -170,7 +170,7 @@ def getSettingDataString(self):
170170
"description": "The total amount of time (in decimal hours) to control the cool down. The build plate temperature will be dropped in 3° increments across this time span. 'Cool Down Time' starts at the end of the 'Hold Time' if you entered one.",
171171
"type": "float",
172172
"default_value": 1.0,
173-
"unit": "Decimal Hrs ",
173+
"unit": "Hrs ",
174174
"minimum_value_warning": 0.25,
175175
"enabled": "enable_script and cycle_type == 'anneal_cycle'"
176176
},
@@ -203,7 +203,7 @@ def getSettingDataString(self):
203203
"label": "Beep Duration",
204204
"description": "The length of the buzzer sound. Units are in milliseconds so 1000ms = 1 second.",
205205
"type": "int",
206-
"unit": "milliseconds ",
206+
"unit": "msec ",
207207
"default_value": 1000,
208208
"enabled": "beep_when_done and enable_script"
209209
},
@@ -471,9 +471,9 @@ def _anneal_print(
471471

472472
def _dry_filament_only(
473473
self,
474+
drydata: str,
474475
bed_temperature: int,
475476
chamber_temp: int,
476-
drydata: str,
477477
heated_chamber: bool,
478478
heating_zone: str,
479479
max_y: str,
@@ -562,10 +562,10 @@ def _dry_filament_only(
562562
back_txt = lines[index].split(";")[1]
563563
lines[index] = front_txt + str(" " * (30 - len(front_txt))) +";" + back_txt
564564
drydata[1] = "\n".join(lines) + "\n"
565-
dry_txt = "; Drying time ...................... " + str(self.getSettingValueByKey("dry_time")) + " hrs\n"
565+
dry_txt = "; Drying time ............... " + str(self.getSettingValueByKey("dry_time")) + " hrs\n"
566566
dry_txt += "; Drying temperature ........ " + str(bed_temperature) + \n"
567567
if heated_chamber and heating_zone == "bed_chamber":
568-
dry_txt += "; Chamber temperature ... " + str(chamber_temp) + \n"
568+
dry_txt += "; Chamber temperature ....... " + str(chamber_temp) + \n"
569569
Message(title = "[Dry Filament]", text = dry_txt).show()
570570
drydata[0] = "; <<< This is a filament drying file only. There is no actual print. >>>\n;\n" + dry_txt + ";\n"
571571
return drydata

0 commit comments

Comments
 (0)