Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
Signed-off-by: Jess Frazelle <[email protected]>
  • Loading branch information
jessfraz committed Jan 7, 2024
1 parent d77b672 commit b68848f
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@ vendor
node_modules
my_env
venv
.DS_Store
.mypy_cache
.ruff_cache
3 changes: 3 additions & 0 deletions samples/convert_file/convert_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
if isinstance(fc.outputs, Unset):
raise Exception("Expected outputs to be set")

if fc.outputs is None:
raise Exception("Expected outputs to be set")

outputs: Dict[str, Base64Data] = fc.outputs

if len(outputs) != 1:
Expand Down
2 changes: 1 addition & 1 deletion samples/file_center_of_mass/file_center_of_mass.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

partInfo = {
"title": "output.json",
"center_of_mass": fm.center_of_mass,
"center_of_mass": fm.center_of_mass.model_dump(),
}

# LITTERBOX-START-NON-EDITABLE-SECTION
Expand Down
3 changes: 3 additions & 0 deletions tutorials/conversion_obj_step/conversion_obj_step.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@
if isinstance(fc.outputs, Unset):
raise Exception("Expected outputs to be set")

if fc.outputs is None:
raise Exception("Expected outputs to be set")

outputs: Dict[str, Base64Data] = fc.outputs

if len(outputs) != 1:
Expand Down
3 changes: 3 additions & 0 deletions tutorials/conversion_obj_stl/conversion_obj_stl.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
if isinstance(fc.outputs, Unset):
raise Exception("Expected outputs to be set")

if fc.outputs is None:
raise Exception("Expected outputs to be set")

outputs: Dict[str, Base64Data] = fc.outputs

if len(outputs) != 1:
Expand Down
3 changes: 3 additions & 0 deletions tutorials/getting_started/getting_started.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@
if isinstance(fc.outputs, Unset):
raise Exception("Expected outputs to be set")

if fc.outputs is None:
raise Exception("Expected outputs to be set")

outputs: Dict[str, Base64Data] = fc.outputs

if len(outputs) != 1:
Expand Down

0 comments on commit b68848f

Please sign in to comment.