Skip to content

Commit 2cd3173

Browse files
authored
Fix booleans in toml (#23)
"True" was used/documented instead of true, which is the proper way to set a boolean in TOML
1 parent 074ac37 commit 2cd3173

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ G4 P0.5\n"""
6767
document_end = """M5
6868
G00 X0.0000 Y0.0000
6969
M2"""
70-
invert_y = "True"
70+
invert_y = true
7171
```
7272

7373
You can use the following options inside a profile. You only need to provide the options where you need to change the default. If you want a newline character in an option, you can either use escape sequences (`\n`) or you use TOML multi line strings wrapped in `""""`.
@@ -229,7 +229,7 @@ default_profile = "gcode"
229229
```
230230

231231
## Coordinate System
232-
`Vpype-Gcode` uses the standard coordinate system of vpype which uses the SVG spec' system. The origin point is located in the upper-left hand corner. Positive y values are towards the bottom. If you wish to change the coordinate system you should use `invert_y` and `invert_x` equals `"True"` in your profile. This will mirror the work horizontally or vertically within the same euclidean space. For example the native Coordinate system of gcode is origin point in the bottom left. This requires that for gcode profiles be marked as `invert_y`.
232+
`Vpype-Gcode` uses the standard coordinate system of vpype which uses the SVG spec' system. The origin point is located in the upper-left hand corner. Positive y values are towards the bottom. If you wish to change the coordinate system you should use `invert_y` and `invert_x` equals `true` in your profile. This will mirror the work horizontally or vertically within the same euclidean space. For example the native Coordinate system of gcode is origin point in the bottom left. This requires that for gcode profiles be marked as `invert_y`.
233233

234234
```toml
235235
[gwrite.gcode]
@@ -238,7 +238,7 @@ segment_first = "G00 X{x:.4f} Y{y:.4f}\n"
238238
segment = "G01 X{x:.4f} Y{y:.4f}\n"
239239
document_end = "M2\n"
240240
unit = "in"
241-
invert_y = "True"
241+
invert_y = true
242242
info= "This gcode profile is correctly inverted across the y-axis"
243243
```
244244

vpype_gcode/bundled_configs.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ segment_first = "G00 X{x:.4f} Y{y:.4f}\n"
55
segment = "G01 X{x:.4f} Y{y:.4f}\n"
66
document_end = "M2\n"
77
unit = "in"
8-
invert_y = "True"
8+
invert_y = true
99
info= "This gcode profile is correctly inverted across the y-axis"
1010

1111
[gwrite.gcodemm]
@@ -14,7 +14,7 @@ segment_first = "G00 X{x:.4f} Y{y:.4f}\n"
1414
segment = "G01 X{x:.4f} Y{y:.4f}\n"
1515
document_end = "M2\n"
1616
unit = "mm"
17-
invert_y = "True"
17+
invert_y = true
1818
info= "This gcode profile is correctly inverted across the y-axis"
1919

2020
[gwrite.gcode_relative]
@@ -23,7 +23,7 @@ segment_first = "G00 X{dx:.4f} Y{dy:.4f}\n"
2323
segment = "G01 X{dx:.4f} Y{dy:.4f}\n"
2424
document_end = "M2\n"
2525
unit = "in"
26-
invert_y = "True"
26+
invert_y = true
2727
info= "This gcode profile is correctly inverted across the y-axis"
2828

2929
[gwrite.csv]
@@ -66,7 +66,7 @@ document_end = ";SP0;IN\n"
6666
scale_x = 40
6767
scale_y = 40
6868
unit = "mm"
69-
invert_y = "True"
69+
invert_y = true
7070
info = """Output HPGL relative co-ordinates NB. This will not take care of page margins etc within the machine.
7171
7272
Ensure that the svg layout is landscape.
@@ -82,7 +82,7 @@ document_end = "F0\n"
8282
scale_x = 10
8383
scale_y = 10
8484
unit = "mm"
85-
invert_y = "True"
85+
invert_y = true
8686
info = """Will output relative coordinates.
8787
8888
Make sure your input layout matches the paper loaded.
@@ -99,7 +99,7 @@ document_end = "F0\n"
9999
scale_x = 10
100100
scale_y = 10
101101
unit = "mm"
102-
invert_y = "True"
102+
invert_y = true
103103
info = """Make sure your input layout matches the paper loaded.
104104
i.e. landscape svg when landscape paper in the machine
105105

0 commit comments

Comments
 (0)