Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pcb_clearance list error #118

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bosd
Copy link

@bosd bosd commented Jul 17, 2023

Before this pr, setting "plate_pcb_clear": true resulted in:

ValueError: Cannot cut type '<class 'list'>'

screw_insert_all_shapes()
Traceback (most recent call last):
File "/app/src/dactyl_manuform.py", line 4361, in
run()
File "/app/src/dactyl_manuform.py", line 4314, in run
mod_r, tmb_r = model_side(side="right")
File "/app/src/dactyl_manuform.py", line 4104, in model_side
shape = difference(shape, [plate_pcb_cutouts(side=side)])
File "/app/src/helpers_cadquery.py", line 89, in difference
shape = shape.cut(item)
File "/opt/conda/envs/myenv/lib/python3.10/site-packages/cadquery/cq.py", line 3360, in cut
raise ValueError("Cannot cut type '{}'".format(type(toCut)))
ValueError: Cannot cut type '<class 'list'>'

Before this pr, setting plate_pcb_clear: true resulted in:

ValueError: Cannot cut type '<class 'list'>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant