Skip to content

Commit 0446aa3

Browse files
committed
implemented v0 of the .goo file format
1 parent 52f63ee commit 0446aa3

4 files changed

Lines changed: 729 additions & 6 deletions

File tree

OpenSLAice.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
{
1212
"cell_type": "code",
13-
"execution_count": null,
13+
"execution_count": 1,
1414
"id": "afc55f24",
1515
"metadata": {},
1616
"outputs": [],
@@ -97,7 +97,7 @@
9797
"rot_mixer = \"./examples/stls/mixer_rotated.stl\"\n",
9898
"rot_elisa = \"./examples/stls/elisa_rotated.stl\"\n",
9999
"\n",
100-
"printer = PrinterRegistry.get(\"Anycubic Mono4 Ultra\")\n",
100+
"printer = PrinterRegistry.get(\"Anycubic Mono4 Ultra\") # \"Elegoo Mars 5 Ultra\" also implemented with the .goo file but never tested on hardware\n",
101101
"resin = ResinRegistry.get(\"Anycubic Standard Clear\")\n",
102102
"\n",
103103
"mf_sla_slicer = Slicer(printer=printer, resin=resin)\n",
@@ -117,7 +117,7 @@
117117
],
118118
"metadata": {
119119
"kernelspec": {
120-
"display_name": ".venv",
120+
"display_name": ".venv (3.13.7)",
121121
"language": "python",
122122
"name": "python3"
123123
},
@@ -131,7 +131,7 @@
131131
"name": "python",
132132
"nbconvert_exporter": "python",
133133
"pygments_lexer": "ipython3",
134-
"version": "3.13.5"
134+
"version": "3.13.7"
135135
}
136136
},
137137
"nbformat": 4,

src/slicer/core/slicer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ def save(self, file_name: str, save_path: str) -> bool:
374374
"""
375375
print(f"layer heights: {self.get_layer_heights()}")
376376
print(f"Saving file {file_name} to {save_path}")
377-
file_type_class = FileTypeRegistry.get("pm4u") # Get the file type class from the registry
377+
file_type_class = FileTypeRegistry.get(self.printer.export_file_type) # Get the file type class from the registry#
378378
file_type_object = file_type_class(
379379
file_name, self.printer, self.resin,
380380
self.layers_image, self.intersection_levels,

src/slicer/file_types/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
from . import pm4u
1+
from . import pm4u
2+
from . import goo

0 commit comments

Comments
 (0)