Skip to content

Commit 75022b6

Browse files
authored
Merge pull request #4 from fragmuffin/develop
v0.1.2
2 parents 24e92a8 + eb52cd0 commit 75022b6

16 files changed

Lines changed: 110 additions & 21 deletions

File tree

_config.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

deployment/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,11 @@ to make sure it's sane
178178

179179
# Deployment in Git
180180

181-
merge deployed branch to `master`
181+
merge deployed branch to `master`, then...
182182

183183
```
184+
git checkout master
185+
git pull
184186
git tag ${version} -m "<change description>"
185187
git push --tags origin master
186188
```

dist/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Change History
2+
3+
## 0.1.2
4+
5+
Changes to accommodate implementation of [grbl-stream](https://github.com/fragmuffin/grbl-stream)
6+
7+
### Improvements
8+
9+
- added `NullMachine`, `NullState`, and `NullMode` (not assuming any machine state)
10+
- `Block` length is the number of gcodes + 1 if modal parameters exists
11+
12+
### Bugfixes
13+
14+
- `%` enclosed lines are considered to be _macros_ when parsing
15+
- added axes `ABCXYZ` as valid parameters for `G10` (eg: `G10 L20 X0 Y0 Z0`)

dist/pygcode-0.1.1.tar.gz

-39 KB
Binary file not shown.

dist/pygcode-0.1.2.tar.gz

39.4 KB
Binary file not shown.

media/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@
44
Screenshots of arc linearizing methods for the `pygcode-norm` script.
55

66
credit to _nraynaud_ for [this awesome online gcode interpreter](https://nraynaud.github.io/webgcode/)
7+
8+
## `grbl-stream-*.png`
9+
10+
Screenshots of the `grbl-stream` script at work

scripts/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# GCode files (dropped into this folder during development)
2+
*.gcode
3+
*.ngc
4+
*.g

scripts/pygcode-norm

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ omit_redundant_modes = utils.omit_redundant_modes
203203
if args.full:
204204
omit_redundant_modes = lambda gcode_iter: gcode_iter # bypass
205205

206-
def write(gcodes, modal_params=tuple(), comment=None):
206+
def write(gcodes, modal_params=tuple(), comment=None, macro=None):
207207
"""
208208
Write to output, while enforcing the flags:
209209
args.singles
@@ -234,6 +234,8 @@ def write(gcodes, modal_params=tuple(), comment=None):
234234
line_list.append(block_str)
235235
if comment:
236236
line_list.append(str(comment))
237+
if macro:
238+
line_list.append(str(macro))
237239
line_str = ' '.join(line_list)
238240
if line_str or not args.rm_blanks:
239241
print(line_str)
@@ -309,7 +311,7 @@ for line_str in args.infile.readlines():
309311

310312
else:
311313
if args.full:
312-
write(effective_gcodes, comment=line.comment)
314+
write(effective_gcodes, comment=line.comment, macro=line.macro)
313315
else:
314-
write(line.block.gcodes, modal_params=line.block.modal_params, comment=line.comment)
316+
write(line.block.gcodes, modal_params=line.block.modal_params, comment=line.comment, macro=line.macro)
315317
machine.process_block(line.block)

src/pygcode.egg-info/PKG-INFO

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Metadata-Version: 1.1
22
Name: pygcode
3-
Version: 0.1.1
3+
Version: 0.1.2
44
Summary: Basic g-code parser, interpreter, and encoder library.
55
Home-page: https://github.com/fragmuffin/pygcode
66
Author: Peter Boin

0 commit comments

Comments
 (0)