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

Visualization failure with no first move Z #8

Open
danfitz7 opened this issue Jul 11, 2014 · 2 comments
Open

Visualization failure with no first move Z #8

danfitz7 opened this issue Jul 11, 2014 · 2 comments
Labels

Comments

@danfitz7
Copy link
Collaborator

Sometimes the rendered g code view will not have any lines when the Z coordinate of the first move is unspecified.
See Gist: https://gist.github.com/danfitz7/196dbe75051ea3c34dcc

See z coordinate on fourth-to-last line.

@danfitz7 danfitz7 added the bug label Jul 11, 2014
@sjkelly
Copy link
Collaborator

sjkelly commented Jul 11, 2014

https://github.com/jminardi/mecode/blob/master/mecode/main.py#L788-L791 ?

We append a 'z' without it definitely being defined.

@jminardi
Copy link
Owner

self.current_position is a defaultdict, which means if you try to read a key that doesn't exists a default value will be returned to the caller and stored under that key.

https://github.com/jminardi/mecode/blob/master/mecode/main.py#L136

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants