Skip to content

Commit b8e310c

Browse files
fix(doc): Remove superfluous trailing commas in example configs
Signed-off-by: Steffen Vogel <steffen.vogel@opal-rt.com>
1 parent fc38caa commit b8e310c

72 files changed

Lines changed: 599 additions & 541 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

clients/matlab/villas.conf

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,28 @@
33

44
nodes = {
55
signal = {
6-
type = "signal",
6+
type = "signal"
77
signal = "mixed"
88
values = 5
99
rate = 100
10-
},
10+
}
1111
matlab = {
12-
type = "socket",
13-
layer = "udp",
12+
type = "socket"
13+
layer = "udp"
1414
format = {
15-
type = "raw",
15+
type = "raw"
1616
bits = 32
1717
endianess = "big"
1818
}
1919

2020
in = {
2121
address = "*:12001"
22-
},
22+
}
2323
out = {
2424
address = "134.61.142.128:12000"
2525

2626
signals = {
27-
count = 5,
27+
count = 5
2828
type = "float"
2929
}
3030
}

etc/eric-lab.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ nodes = {
6464

6565
paths = (
6666
{
67-
in = "socket2",
67+
in = "socket2"
6868
out = "ws"
6969
}
7070
)

etc/examples/api.conf

Lines changed: 35 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -12,33 +12,33 @@ nodes = {
1212
in = {
1313
signals = (
1414
{
15-
name = "sig1_in",
16-
type = "float",
17-
unit = "V",
18-
description = "Signal 1",
19-
rate = 100,
20-
readable = true,
21-
writable = false,
15+
name = "sig1_in"
16+
type = "float"
17+
unit = "V"
18+
description = "Signal 1"
19+
rate = 100
20+
readable = true
21+
writable = false
2222
payload = "samples"
2323
},
2424
{
25-
name = "sig2_in",
26-
type = "float",
27-
unit = "A",
28-
description = "Signal 1",
29-
rate = 100,
30-
readable = true,
31-
writable = false,
25+
name = "sig2_in"
26+
type = "float"
27+
unit = "A"
28+
description = "Signal 1"
29+
rate = 100
30+
readable = true
31+
writable = false
3232
payload = "samples"
3333
},
3434
{
35-
name = "sig3_in",
36-
type = "float",
37-
unit = "A",
38-
description = "Signal 1",
39-
rate = 100,
40-
readable = true,
41-
writable = false,
35+
name = "sig3_in"
36+
type = "float"
37+
unit = "A"
38+
description = "Signal 1"
39+
rate = 100
40+
readable = true
41+
writable = false
4242
payload = "samples"
4343
}
4444
)
@@ -49,24 +49,24 @@ nodes = {
4949
# Output signals have no name, type and unit settings as those are implicitly
5050
# derived from the signals which are routed to this node
5151
{
52-
description = "Signal 1",
53-
rate = 100,
54-
readable = true,
55-
writable = false,
52+
description = "Signal 1"
53+
rate = 100
54+
readable = true
55+
writable = false
5656
payload = "samples"
5757
},
5858
{
59-
description = "Signal 1",
60-
rate = 100,
61-
readable = true,
62-
writable = false,
59+
description = "Signal 1"
60+
rate = 100
61+
readable = true
62+
writable = false
6363
payload = "samples"
6464
},
6565
{
66-
description = "Signal 1",
67-
rate = 100,
68-
readable = true,
69-
writable = false,
66+
description = "Signal 1"
67+
rate = 100
68+
readable = true
69+
writable = false
7070
payload = "samples"
7171
}
7272
)
@@ -86,7 +86,8 @@ paths = (
8686
{
8787
in = [
8888
"api_node"
89-
],
89+
]
90+
9091
hooks = (
9192
"print"
9293
)

etc/examples/global.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ logging = {
3737

3838
http = {
3939
# Do not listen on port if true
40-
enabled = true,
40+
enabled = true
4141

4242
# Port for HTTP connections
4343
port = 80

etc/examples/hooks/ip-dft-pmu.conf

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,26 @@ paths = (
1010

1111
hooks = (
1212
{
13-
type = "pmu",
13+
type = "pmu"
1414

1515
signals = (
1616
"sine"
1717
)
1818

1919
# Sample rate of the input signal
20-
sample_rate = 1000,
20+
sample_rate = 1000
2121

2222
# Number of phasors calculated per second
23-
dft_rate = 10,
23+
dft_rate = 10
2424

2525
# Yhe range around the nominal_freq in with the estimation is done
26-
estimation_range = 10,
26+
estimation_range = 10
2727

28-
# Yhe nominal grid frequnecy
29-
nominal_freq = 50,
28+
# The nominal grid frequency
29+
nominal_freq = 50
3030

31-
# Yhe number of power line cylces stored in the buffer
32-
number_plc = 10.,
31+
# The number of power line cycles stored in the buffer
32+
number_plc = 10.0
3333

3434
# One of: rad, degree
3535
angle_unit = "rad"

etc/examples/hooks/ma.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ paths = (
1010

1111
hooks = (
1212
{
13-
type = "ma",
13+
type = "ma"
1414

1515
window_size = 1000
1616

etc/examples/hooks/pmu.conf

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,23 @@ paths = (
1010

1111
hooks = (
1212
{
13-
type = "pmu",
13+
type = "pmu"
1414

1515
signals = (
1616
"sine"
1717
)
1818

1919
# Sample rate of the input signal
20-
sample_rate = 1000,
20+
sample_rate = 1000
2121

2222
# Number of phasors calculated per second
23-
dft_rate = 10,
23+
dft_rate = 10
2424

25-
# The nominal grid frequnecy
26-
nominal_freq = 50,
25+
# The nominal grid frequency
26+
nominal_freq = 50
2727

28-
# The number of power line cylces stored in the buffer
29-
number_plc = 10.,
28+
# The number of power line cycles stored in the buffer
29+
number_plc = 10.0
3030

3131
# One of: rad, degree
3232
angle_unit = "rad"

etc/examples/hooks/pmu_dft.conf

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,41 +10,41 @@ paths = (
1010

1111
hooks = (
1212
{
13-
type = "pmu_dft",
13+
type = "pmu_dft"
1414

1515
signals = (
1616
"sine"
1717
)
1818

1919
# Sample rate of the input signal
20-
sample_rate = 1000,
20+
sample_rate = 1000
2121

2222
# Number of phasors calculated per second
23-
dft_rate = 10,
23+
dft_rate = 10
2424

2525
# Lowest frequency bin
26-
start_frequency = 49.7,
26+
start_frequency = 49.7
2727

2828
# Highest frequency bin
29-
end_frequency = 50.3,
29+
end_frequency = 50.3
3030

3131
# Frequency bin resolution
32-
frequency_resolution = 0.1,
32+
frequency_resolution = 0.1
3333

3434
# A factor with which the window will be increased
35-
window_size_factor = 1,
35+
window_size_factor = 1
3636

3737
# One of: flattop, hamming, hann
38-
window_type = "hamming",
38+
window_type = "hamming"
3939

4040
# One of: signal_repeat, zero
41-
padding_type = "zero",
41+
padding_type = "zero"
4242

4343
# One of: quadratic
44-
frequency_estimate_type = "quadratic",
44+
frequency_estimate_type = "quadratic"
4545

4646
# Signal index of the PPS signal
47-
pps_index = 0,
47+
pps_index = 0
4848

4949
# One of: rad, degree
5050
angle_unit = "rad"

etc/examples/hooks/power.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ paths = (
1010

1111
hooks = (
1212
{
13-
type = "power",
13+
type = "power"
1414
angle_unit = "degree"
1515
window_size = 1000
1616
timestamp_align = "center"

etc/examples/hooks/print.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ paths = (
1010

1111
hooks = (
1212
{
13-
type = "print",
13+
type = "print"
1414

1515
output = "print_output_file.log"
1616
format = "villas.human"

0 commit comments

Comments
 (0)