Skip to content

Commit 5c048fc

Browse files
committed
README. Updated examples
1 parent 70d4536 commit 5c048fc

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ Node 1 contains the following code:
3535

3636
```ruby
3737
0.step(6 * Math::PI, 0.01) do |x|
38-
$outContainer << Cells.new.double(x).
39-
double(Math.sin(x)).
40-
double(Math.sin(x + Math::PI/3))
38+
$out_data_0 << Cells.new.double(x).
39+
double(Math.sin(x)).
40+
double(Math.sin(x + Math::PI/3))
4141
end
4242
```
4343

@@ -46,17 +46,17 @@ Node 2 contains the following code:
4646
```ruby
4747
$outContainer.rowKey = 100000 # generate table keys from this number
4848
0.step(6 * Math::PI, 0.01) do |x|
49-
$outContainer << Cells.new.double(x).
50-
double(Math.cos(x)).
51-
double(Math.cos(0.3 * x))
49+
$out_data_0 << Cells.new.double(x).
50+
double(Math.cos(x)).
51+
double(Math.cos(0.3 * x))
5252
end
5353
```
5454

5555
Node 3 contains the following code:
5656

5757
```ruby
58-
$inData0.each do |row|
59-
$outContainer << (row << Cells.new.double(row.y1.to_f-row.y2.to_f))
58+
$in_data_0.each do |row|
59+
$out_data_0 << (row << Cells.new.double(row.y1.to_f-row.y2.to_f))
6060

6161
# alternative
6262
# $outContainer << (row << Cells.new.double(row[1].to_f-row[2].to_f))
@@ -66,12 +66,12 @@ end
6666
Node 4 contains the following code:
6767

6868
```ruby
69-
$inData0.each do |row|
70-
$outContainer0 << row
71-
end
72-
$inData1.each do |row|
73-
$outContainer1 << row
74-
end
69+
(0..1).each do |i|
70+
out = $output_datatable_arr[i]
71+
$input_datatable_arr[i].each do |row|
72+
out << row
73+
end
74+
end
7575
```
7676

7777
Node 6 contains the following code:

0 commit comments

Comments
 (0)