toji 2.22.0 → 2.27.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/example/calendar.ipynb +41 -49
  4. data/example/calendar.yaml +6 -6
  5. data/example/calendar_file.ipynb +34 -42
  6. data/example/example_core.rb +80 -46
  7. data/example/kake_ingredient.rb +2 -1
  8. data/example/koji_ingredient.rb +2 -1
  9. data/example/koji_progress.ipynb +14 -23
  10. data/example/koji_progress.rb +1 -1
  11. data/example/koji_progress.yaml +13 -16
  12. data/example/koji_progress_multi.ipynb +16 -25
  13. data/example/moromi_progress.ipynb +22 -31
  14. data/example/moromi_progress.rb +1 -1
  15. data/example/moromi_progress.yaml +25 -25
  16. data/example/moto_progress.ipynb +13 -22
  17. data/example/recipe.rb +1 -1
  18. data/lib/toji.rb +11 -1
  19. data/lib/toji/calendar/date_column.rb +2 -2
  20. data/lib/toji/ingredient/kake.rb +1 -1
  21. data/lib/toji/ingredient/koji.rb +1 -1
  22. data/lib/toji/ingredient/rice.rb +2 -1
  23. data/lib/toji/processing/soaked_rice.rb +1 -1
  24. data/lib/toji/product.rb +1 -1
  25. data/lib/toji/product/schedule_factory.rb +2 -2
  26. data/lib/toji/progress/base_progress.rb +1 -1
  27. data/lib/toji/progress/base_state.rb +33 -1
  28. data/lib/toji/progress/graph/progress_note.rb +1 -1
  29. data/lib/toji/progress/koji_progress.rb +1 -1
  30. data/lib/toji/progress/koji_state.rb +0 -16
  31. data/lib/toji/progress/moromi_progress.rb +1 -1
  32. data/lib/toji/progress/moromi_state.rb +2 -16
  33. data/lib/toji/progress/moto_progress.rb +1 -1
  34. data/lib/toji/progress/moto_state.rb +2 -15
  35. data/lib/toji/psychrometry_to_relative_humidity.rb +24 -0
  36. data/lib/toji/recipe.rb +132 -14
  37. data/lib/toji/recipe/step.rb +31 -12
  38. data/lib/toji/swvp.rb +12 -0
  39. data/lib/toji/swvp/base.rb +8 -0
  40. data/lib/toji/swvp/sonntag.rb +23 -0
  41. data/lib/toji/swvp/tetens.rb +17 -0
  42. data/lib/toji/swvp/wagner.rb +25 -0
  43. data/lib/toji/utils.rb +4 -6
  44. data/lib/toji/version.rb +1 -1
  45. data/toji.gemspec +2 -2
  46. metadata +11 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 494121b64259737e8f8e942f688db54c630a5ae468d9a5530ad5e98b91d99ddb
4
- data.tar.gz: 10585215b677950ecaebb9e4eccb7fa19fa0803e6e915c6d5d2dd2e1f0d1191d
3
+ metadata.gz: 453b31c828544fff48101dfcce3af029716f60942dd65ace4479986b9eba3e1e
4
+ data.tar.gz: f4bc7eb3e5d629af1eaa108cd5b265141c35706438bc70d696d6589c7101b37d
5
5
  SHA512:
6
- metadata.gz: 3b6b8d00a2f0b5f4494c07ab5c9eefb496db64eb1096e323c7d2f232ad32279a74da24c646b48ea0057ab3ac3a9bb3ec9548b9b66a1b995b2f4317d8471e9a23
7
- data.tar.gz: 5dc4965df7dd65c8f3dafc41af8a884c557cb029875aa3694e9ff011402ac7614368c96aa9d55e592ae7fc0f52ba8a591152f414ad60dbd14d0d48de775868e8
6
+ metadata.gz: 06f8999490f170a9d473a960a6c488a91c4ad96444ee2af8ee522f533b1eff3b497c3ef05e168b6d1cbd90e2750cdc539e04b72142c002cecddffcda70aaf6fa
7
+ data.tar.gz: fe4df8232b25e245e488b3d39608b40559703ad2028cdf4dd13bdf838cc3bb423f86842a1b9c6664bf1ecd23c5ff508a2e08390003265f805a732259abb2200c
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Toji
2
2
 
3
- Management tools for brewing japanese sake.
3
+ Data models for brewing japanese sake.
4
4
 
5
5
  - 仕込み配合表の生成。
6
6
  - 仕込み日程表の生成。
@@ -2,7 +2,7 @@
2
2
  "cells": [
3
3
  {
4
4
  "cell_type": "code",
5
- "execution_count": 1,
5
+ "execution_count": 2,
6
6
  "metadata": {
7
7
  "scrolled": false
8
8
  },
@@ -23,25 +23,25 @@
23
23
  " </script>\n",
24
24
  "\n",
25
25
  "\n",
26
- "<div id=\"eccbaa77-f4e7-4eb2-a499-cf007981d21e\" style=\"height: 100%; width: 100%;\"></div>\n",
26
+ "<div id=\"917fe72c-4f4f-4147-aa51-10fd04d20cc9\" style=\"height: 100%; width: 100%;\"></div>\n",
27
27
  "\n",
28
28
  "<script>\n",
29
29
  " require(['plotly'], function(Plotly) { \n",
30
30
  "Plotly.newPlot(\n",
31
- " 'eccbaa77-f4e7-4eb2-a499-cf007981d21e',\n",
31
+ " '917fe72c-4f4f-4147-aa51-10fd04d20cc9',\n",
32
32
  " [{\"type\":\"table\",\"header\":{\"values\":[\"\",\"Step0\",\"Step1\",\"Step2\",\"Step3\",\"Step4\",\"total\"]},\"cells\":{\"values\":[[\"RiceTotal\",\"Kake\",\"Koji\",\"Alcohol\",\"Water\",\"LacticAcid\"],[35.0,\"\",35,\"\",123,0.8],[65.0,65,\"\",\"\",\"\",\"\"],[200.0,150,50,\"\",200,\"\"],[300.0,245,55,\"\",400,\"\"],[\"\",\"\",\"\",\"\",128,\"\"],[600.0,460,140,\"\",851,0.8]]}}],\n",
33
33
  " {\"height\":350},\n",
34
34
  " {\"linkText\":\"Export to plot.ly\",\"showLink\":true}\n",
35
35
  ")\n",
36
36
  "\n",
37
37
  "window.addEventListener('resize', function() {\n",
38
- " Plotly.Plots.resize(document.getElementById('eccbaa77-f4e7-4eb2-a499-cf007981d21e'))\n",
38
+ " Plotly.Plots.resize(document.getElementById('917fe72c-4f4f-4147-aa51-10fd04d20cc9'))\n",
39
39
  "})\n",
40
40
  " }) \n",
41
41
  "</script>"
42
42
  ],
43
43
  "text/plain": [
44
- "#<Plotly::Offline::HTML:0x00007f979c215940 @id=\"eccbaa77-f4e7-4eb2-a499-cf007981d21e\", @data=[{:type=>:table, :header=>{:values=>[\"\", :Step0, :Step1, :Step2, :Step3, :Step4, :total]}, :cells=>{:values=>[[\"RiceTotal\", \"Kake\", \"Koji\", \"Alcohol\", \"Water\", \"LacticAcid\"], [35.0, \"\", 35, \"\", 123, 0.8], [65.0, 65, \"\", \"\", \"\", \"\"], [200.0, 150, 50, \"\", 200, \"\"], [300.0, 245, 55, \"\", 400, \"\"], [\"\", \"\", \"\", \"\", 128, \"\"], [600.0, 460, 140, \"\", 851, 0.8]]}}], @layout={:height=>350}, @config={:linkText=>\"Export to plot.ly\", :showLink=>true}, @embedded=true>"
44
+ "#<Plotly::Offline::HTML:0x00007fcd562c56c0 @id=\"917fe72c-4f4f-4147-aa51-10fd04d20cc9\", @data=[{:type=>:table, :header=>{:values=>[\"\", :Step0, :Step1, :Step2, :Step3, :Step4, :total]}, :cells=>{:values=>[[\"RiceTotal\", \"Kake\", \"Koji\", \"Alcohol\", \"Water\", \"LacticAcid\"], [35.0, \"\", 35, \"\", 123, 0.8], [65.0, 65, \"\", \"\", \"\", \"\"], [200.0, 150, 50, \"\", 200, \"\"], [300.0, 245, 55, \"\", 400, \"\"], [\"\", \"\", \"\", \"\", 128, \"\"], [600.0, 460, 140, \"\", 851, 0.8]]}}], @layout={:height=>350}, @config={:linkText=>\"Export to plot.ly\", :showLink=>true}, @embedded=true>"
45
45
  ]
46
46
  },
47
47
  "metadata": {},
@@ -63,25 +63,25 @@
63
63
  " </script>\n",
64
64
  "\n",
65
65
  "\n",
66
- "<div id=\"1c4174d5-21ad-485d-8754-b5e0b9e823f1\" style=\"height: 100%; width: 100%;\"></div>\n",
66
+ "<div id=\"78bf2931-a9d9-4671-bf09-66e0bc0973d2\" style=\"height: 100%; width: 100%;\"></div>\n",
67
67
  "\n",
68
68
  "<script>\n",
69
69
  " require(['plotly'], function(Plotly) { \n",
70
70
  "Plotly.newPlot(\n",
71
- " '1c4174d5-21ad-485d-8754-b5e0b9e823f1',\n",
71
+ " '78bf2931-a9d9-4671-bf09-66e0bc0973d2',\n",
72
72
  " [{\"type\":\"table\",\"header\":{\"values\":[\"\",\"Step0\",\"Step1\",\"Step2\",\"Step3\",\"Step4\",\"total\"]},\"cells\":{\"values\":[[\"RiceTotal\",\"Kake\",\"Koji\",\"Alcohol\",\"Water\",\"LacticAcid\"],[32.0,\"\",32,\"\",112,0.733],[60.0,60,\"\",\"\",\"\",\"\"],[184.0,138,46,\"\",183,\"\"],[275.0,225,50,\"\",367,\"\"],[\"\",\"\",\"\",\"\",117,\"\"],[551.0,423,128,\"\",779,0.733]]}}],\n",
73
73
  " {\"height\":350},\n",
74
74
  " {\"linkText\":\"Export to plot.ly\",\"showLink\":true}\n",
75
75
  ")\n",
76
76
  "\n",
77
77
  "window.addEventListener('resize', function() {\n",
78
- " Plotly.Plots.resize(document.getElementById('1c4174d5-21ad-485d-8754-b5e0b9e823f1'))\n",
78
+ " Plotly.Plots.resize(document.getElementById('78bf2931-a9d9-4671-bf09-66e0bc0973d2'))\n",
79
79
  "})\n",
80
80
  " }) \n",
81
81
  "</script>"
82
82
  ],
83
83
  "text/plain": [
84
- "#<Plotly::Offline::HTML:0x00007f979c2a7110 @id=\"1c4174d5-21ad-485d-8754-b5e0b9e823f1\", @data=[{:type=>:table, :header=>{:values=>[\"\", :Step0, :Step1, :Step2, :Step3, :Step4, :total]}, :cells=>{:values=>[[\"RiceTotal\", \"Kake\", \"Koji\", \"Alcohol\", \"Water\", \"LacticAcid\"], [32.0, \"\", 32, \"\", 112, 0.733], [60.0, 60, \"\", \"\", \"\", \"\"], [184.0, 138, 46, \"\", 183, \"\"], [275.0, 225, 50, \"\", 367, \"\"], [\"\", \"\", \"\", \"\", 117, \"\"], [551.0, 423, 128, \"\", 779, 0.733]]}}], @layout={:height=>350}, @config={:linkText=>\"Export to plot.ly\", :showLink=>true}, @embedded=true>"
84
+ "#<Plotly::Offline::HTML:0x00007fcd562de148 @id=\"78bf2931-a9d9-4671-bf09-66e0bc0973d2\", @data=[{:type=>:table, :header=>{:values=>[\"\", :Step0, :Step1, :Step2, :Step3, :Step4, :total]}, :cells=>{:values=>[[\"RiceTotal\", \"Kake\", \"Koji\", \"Alcohol\", \"Water\", \"LacticAcid\"], [32.0, \"\", 32, \"\", 112, 0.733], [60.0, 60, \"\", \"\", \"\", \"\"], [184.0, 138, 46, \"\", 183, \"\"], [275.0, 225, 50, \"\", 367, \"\"], [\"\", \"\", \"\", \"\", 117, \"\"], [551.0, 423, 128, \"\", 779, 0.733]]}}], @layout={:height=>350}, @config={:linkText=>\"Export to plot.ly\", :showLink=>true}, @embedded=true>"
85
85
  ]
86
86
  },
87
87
  "metadata": {},
@@ -103,25 +103,25 @@
103
103
  " </script>\n",
104
104
  "\n",
105
105
  "\n",
106
- "<div id=\"069322ba-1253-409e-8e82-b27486430708\" style=\"height: 100%; width: 100%;\"></div>\n",
106
+ "<div id=\"2227001f-bfe1-489a-89fd-27f98d69358b\" style=\"height: 100%; width: 100%;\"></div>\n",
107
107
  "\n",
108
108
  "<script>\n",
109
109
  " require(['plotly'], function(Plotly) { \n",
110
110
  "Plotly.newPlot(\n",
111
- " '069322ba-1253-409e-8e82-b27486430708',\n",
111
+ " '2227001f-bfe1-489a-89fd-27f98d69358b',\n",
112
112
  " [{\"type\":\"table\",\"header\":{\"values\":[\"\",\"Step0\",\"Step1\",\"Step2\",\"Step3\",\"Step4\",\"total\"]},\"cells\":{\"values\":[[\"RiceTotal\",\"Kake\",\"Koji\",\"Alcohol\",\"Water\",\"LacticAcid\"],[63.0,42,21,\"\",77,0.524],[143.0,98,45,\"\",122,\"\"],[254.0,190,64,\"\",302,\"\"],[440.0,366,74,\"\",599,\"\"],[\"\",\"\",\"\",405,\"\",\"\"],[900.0,696,204,405,1100,0.524]]}}],\n",
113
113
  " {\"height\":350},\n",
114
114
  " {\"linkText\":\"Export to plot.ly\",\"showLink\":true}\n",
115
115
  ")\n",
116
116
  "\n",
117
117
  "window.addEventListener('resize', function() {\n",
118
- " Plotly.Plots.resize(document.getElementById('069322ba-1253-409e-8e82-b27486430708'))\n",
118
+ " Plotly.Plots.resize(document.getElementById('2227001f-bfe1-489a-89fd-27f98d69358b'))\n",
119
119
  "})\n",
120
120
  " }) \n",
121
121
  "</script>"
122
122
  ],
123
123
  "text/plain": [
124
- "#<Plotly::Offline::HTML:0x00007f97981fcc28 @id=\"069322ba-1253-409e-8e82-b27486430708\", @data=[{:type=>:table, :header=>{:values=>[\"\", :Step0, :Step1, :Step2, :Step3, :Step4, :total]}, :cells=>{:values=>[[\"RiceTotal\", \"Kake\", \"Koji\", \"Alcohol\", \"Water\", \"LacticAcid\"], [63.0, 42, 21, \"\", 77, 0.524], [143.0, 98, 45, \"\", 122, \"\"], [254.0, 190, 64, \"\", 302, \"\"], [440.0, 366, 74, \"\", 599, \"\"], [\"\", \"\", \"\", 405, \"\", \"\"], [900.0, 696, 204, 405, 1100, 0.524]]}}], @layout={:height=>350}, @config={:linkText=>\"Export to plot.ly\", :showLink=>true}, @embedded=true>"
124
+ "#<Plotly::Offline::HTML:0x00007fcd562f50c8 @id=\"2227001f-bfe1-489a-89fd-27f98d69358b\", @data=[{:type=>:table, :header=>{:values=>[\"\", :Step0, :Step1, :Step2, :Step3, :Step4, :total]}, :cells=>{:values=>[[\"RiceTotal\", \"Kake\", \"Koji\", \"Alcohol\", \"Water\", \"LacticAcid\"], [63.0, 42, 21, \"\", 77, 0.524], [143.0, 98, 45, \"\", 122, \"\"], [254.0, 190, 64, \"\", 302, \"\"], [440.0, 366, 74, \"\", 599, \"\"], [\"\", \"\", \"\", 405, \"\", \"\"], [900.0, 696, 204, 405, 1100, 0.524]]}}], @layout={:height=>350}, @config={:linkText=>\"Export to plot.ly\", :showLink=>true}, @embedded=true>"
125
125
  ]
126
126
  },
127
127
  "metadata": {},
@@ -143,25 +143,25 @@
143
143
  " </script>\n",
144
144
  "\n",
145
145
  "\n",
146
- "<div id=\"6e89e3a2-c849-45d9-a17c-59ed42ed47b4\" style=\"height: 100%; width: 100%;\"></div>\n",
146
+ "<div id=\"439dd525-fb87-4077-8153-7262c609d433\" style=\"height: 100%; width: 100%;\"></div>\n",
147
147
  "\n",
148
148
  "<script>\n",
149
149
  " require(['plotly'], function(Plotly) { \n",
150
150
  "Plotly.newPlot(\n",
151
- " '6e89e3a2-c849-45d9-a17c-59ed42ed47b4',\n",
151
+ " '439dd525-fb87-4077-8153-7262c609d433',\n",
152
152
  " [{\"type\":\"table\",\"header\":{\"values\":[\"\",\"Step0\",\"Step1\",\"Step2\",\"Step3\",\"Step4\",\"total\"]},\"cells\":{\"values\":[[\"RiceTotal\",\"Kake\",\"Koji\",\"Alcohol\",\"Water\",\"LacticAcid\"],[59.0,41,18,\"\",63,0.432],[126.0,90,36,\"\",117,\"\"],[248.0,194,54,\"\",297,\"\"],[396.0,324,72,\"\",567,\"\"],[72.0,72,\"\",\"\",108,\"\"],[901.0,721,180,\"\",1152,0.432]]}}],\n",
153
153
  " {\"height\":350},\n",
154
154
  " {\"linkText\":\"Export to plot.ly\",\"showLink\":true}\n",
155
155
  ")\n",
156
156
  "\n",
157
157
  "window.addEventListener('resize', function() {\n",
158
- " Plotly.Plots.resize(document.getElementById('6e89e3a2-c849-45d9-a17c-59ed42ed47b4'))\n",
158
+ " Plotly.Plots.resize(document.getElementById('439dd525-fb87-4077-8153-7262c609d433'))\n",
159
159
  "})\n",
160
160
  " }) \n",
161
161
  "</script>"
162
162
  ],
163
163
  "text/plain": [
164
- "#<Plotly::Offline::HTML:0x00007f979822c0e0 @id=\"6e89e3a2-c849-45d9-a17c-59ed42ed47b4\", @data=[{:type=>:table, :header=>{:values=>[\"\", :Step0, :Step1, :Step2, :Step3, :Step4, :total]}, :cells=>{:values=>[[\"RiceTotal\", \"Kake\", \"Koji\", \"Alcohol\", \"Water\", \"LacticAcid\"], [59.0, 41, 18, \"\", 63, 0.432], [126.0, 90, 36, \"\", 117, \"\"], [248.0, 194, 54, \"\", 297, \"\"], [396.0, 324, 72, \"\", 567, \"\"], [72.0, 72, \"\", \"\", 108, \"\"], [901.0, 721, 180, \"\", 1152, 0.432]]}}], @layout={:height=>350}, @config={:linkText=>\"Export to plot.ly\", :showLink=>true}, @embedded=true>"
164
+ "#<Plotly::Offline::HTML:0x00007fcd5630c700 @id=\"439dd525-fb87-4077-8153-7262c609d433\", @data=[{:type=>:table, :header=>{:values=>[\"\", :Step0, :Step1, :Step2, :Step3, :Step4, :total]}, :cells=>{:values=>[[\"RiceTotal\", \"Kake\", \"Koji\", \"Alcohol\", \"Water\", \"LacticAcid\"], [59.0, 41, 18, \"\", 63, 0.432], [126.0, 90, 36, \"\", 117, \"\"], [248.0, 194, 54, \"\", 297, \"\"], [396.0, 324, 72, \"\", 567, \"\"], [72.0, 72, \"\", \"\", 108, \"\"], [901.0, 721, 180, \"\", 1152, 0.432]]}}], @layout={:height=>350}, @config={:linkText=>\"Export to plot.ly\", :showLink=>true}, @embedded=true>"
165
165
  ]
166
166
  },
167
167
  "metadata": {},
@@ -183,25 +183,25 @@
183
183
  " </script>\n",
184
184
  "\n",
185
185
  "\n",
186
- "<div id=\"fa9e55ba-6e6e-4b34-9d5e-f21905e1349a\" style=\"height: 100%; width: 100%;\"></div>\n",
186
+ "<div id=\"408dd026-4d8a-4f92-bcb7-60857abe90d2\" style=\"height: 100%; width: 100%;\"></div>\n",
187
187
  "\n",
188
188
  "<script>\n",
189
189
  " require(['plotly'], function(Plotly) { \n",
190
190
  "Plotly.newPlot(\n",
191
- " 'fa9e55ba-6e6e-4b34-9d5e-f21905e1349a',\n",
191
+ " '408dd026-4d8a-4f92-bcb7-60857abe90d2',\n",
192
192
  " [{\"type\":\"table\",\"header\":{\"values\":[\"\",\"Step0\",\"Step1\",\"Step2\",\"Step3\",\"Step4\",\"total\"]},\"cells\":{\"values\":[[\"RiceTotal\",\"Kake\",\"Koji\",\"Alcohol\",\"Water\",\"LacticAcid\"],[63.0,42,21,\"\",77,0.524],[143.0,98,45,\"\",122,\"\"],[254.0,190,64,\"\",302,\"\"],[440.0,366,74,\"\",599,\"\"],[\"\",\"\",\"\",405,\"\",\"\"],[900.0,696,204,405,1100,0.524]]}}],\n",
193
193
  " {\"height\":350},\n",
194
194
  " {\"linkText\":\"Export to plot.ly\",\"showLink\":true}\n",
195
195
  ")\n",
196
196
  "\n",
197
197
  "window.addEventListener('resize', function() {\n",
198
- " Plotly.Plots.resize(document.getElementById('fa9e55ba-6e6e-4b34-9d5e-f21905e1349a'))\n",
198
+ " Plotly.Plots.resize(document.getElementById('408dd026-4d8a-4f92-bcb7-60857abe90d2'))\n",
199
199
  "})\n",
200
200
  " }) \n",
201
201
  "</script>"
202
202
  ],
203
203
  "text/plain": [
204
- "#<Plotly::Offline::HTML:0x00007f9798239948 @id=\"fa9e55ba-6e6e-4b34-9d5e-f21905e1349a\", @data=[{:type=>:table, :header=>{:values=>[\"\", :Step0, :Step1, :Step2, :Step3, :Step4, :total]}, :cells=>{:values=>[[\"RiceTotal\", \"Kake\", \"Koji\", \"Alcohol\", \"Water\", \"LacticAcid\"], [63.0, 42, 21, \"\", 77, 0.524], [143.0, 98, 45, \"\", 122, \"\"], [254.0, 190, 64, \"\", 302, \"\"], [440.0, 366, 74, \"\", 599, \"\"], [\"\", \"\", \"\", 405, \"\", \"\"], [900.0, 696, 204, 405, 1100, 0.524]]}}], @layout={:height=>350}, @config={:linkText=>\"Export to plot.ly\", :showLink=>true}, @embedded=true>"
204
+ "#<Plotly::Offline::HTML:0x00007fcd5632fd90 @id=\"408dd026-4d8a-4f92-bcb7-60857abe90d2\", @data=[{:type=>:table, :header=>{:values=>[\"\", :Step0, :Step1, :Step2, :Step3, :Step4, :total]}, :cells=>{:values=>[[\"RiceTotal\", \"Kake\", \"Koji\", \"Alcohol\", \"Water\", \"LacticAcid\"], [63.0, 42, 21, \"\", 77, 0.524], [143.0, 98, 45, \"\", 122, \"\"], [254.0, 190, 64, \"\", 302, \"\"], [440.0, 366, 74, \"\", 599, \"\"], [\"\", \"\", \"\", 405, \"\", \"\"], [900.0, 696, 204, 405, 1100, 0.524]]}}], @layout={:height=>350}, @config={:linkText=>\"Export to plot.ly\", :showLink=>true}, @embedded=true>"
205
205
  ]
206
206
  },
207
207
  "metadata": {},
@@ -223,25 +223,25 @@
223
223
  " </script>\n",
224
224
  "\n",
225
225
  "\n",
226
- "<div id=\"339a48df-1190-4848-898b-8664031b9df8\" style=\"height: 100%; width: 100%;\"></div>\n",
226
+ "<div id=\"f2938a25-3ebe-4dfc-8500-ad8feeb6e051\" style=\"height: 100%; width: 100%;\"></div>\n",
227
227
  "\n",
228
228
  "<script>\n",
229
229
  " require(['plotly'], function(Plotly) { \n",
230
230
  "Plotly.newPlot(\n",
231
- " '339a48df-1190-4848-898b-8664031b9df8',\n",
231
+ " 'f2938a25-3ebe-4dfc-8500-ad8feeb6e051',\n",
232
232
  " [{\"type\":\"table\",\"header\":{\"values\":[\"\",\"Step0\",\"Step1\",\"Step2\",\"Step3\",\"Step4\",\"total\"]},\"cells\":{\"values\":[[\"RiceTotal\",\"Kake\",\"Koji\",\"Alcohol\",\"Water\",\"LacticAcid\"],[59.0,41,18,\"\",63,0.432],[126.0,90,36,\"\",117,\"\"],[248.0,194,54,\"\",297,\"\"],[396.0,324,72,\"\",567,\"\"],[72.0,72,\"\",\"\",108,\"\"],[901.0,721,180,\"\",1152,0.432]]}}],\n",
233
233
  " {\"height\":350},\n",
234
234
  " {\"linkText\":\"Export to plot.ly\",\"showLink\":true}\n",
235
235
  ")\n",
236
236
  "\n",
237
237
  "window.addEventListener('resize', function() {\n",
238
- " Plotly.Plots.resize(document.getElementById('339a48df-1190-4848-898b-8664031b9df8'))\n",
238
+ " Plotly.Plots.resize(document.getElementById('f2938a25-3ebe-4dfc-8500-ad8feeb6e051'))\n",
239
239
  "})\n",
240
240
  " }) \n",
241
241
  "</script>"
242
242
  ],
243
243
  "text/plain": [
244
- "#<Plotly::Offline::HTML:0x00007f979828a2f8 @id=\"339a48df-1190-4848-898b-8664031b9df8\", @data=[{:type=>:table, :header=>{:values=>[\"\", :Step0, :Step1, :Step2, :Step3, :Step4, :total]}, :cells=>{:values=>[[\"RiceTotal\", \"Kake\", \"Koji\", \"Alcohol\", \"Water\", \"LacticAcid\"], [59.0, 41, 18, \"\", 63, 0.432], [126.0, 90, 36, \"\", 117, \"\"], [248.0, 194, 54, \"\", 297, \"\"], [396.0, 324, 72, \"\", 567, \"\"], [72.0, 72, \"\", \"\", 108, \"\"], [901.0, 721, 180, \"\", 1152, 0.432]]}}], @layout={:height=>350}, @config={:linkText=>\"Export to plot.ly\", :showLink=>true}, @embedded=true>"
244
+ "#<Plotly::Offline::HTML:0x00007fcd5633e9f8 @id=\"f2938a25-3ebe-4dfc-8500-ad8feeb6e051\", @data=[{:type=>:table, :header=>{:values=>[\"\", :Step0, :Step1, :Step2, :Step3, :Step4, :total]}, :cells=>{:values=>[[\"RiceTotal\", \"Kake\", \"Koji\", \"Alcohol\", \"Water\", \"LacticAcid\"], [59.0, 41, 18, \"\", 63, 0.432], [126.0, 90, 36, \"\", 117, \"\"], [248.0, 194, 54, \"\", 297, \"\"], [396.0, 324, 72, \"\", 567, \"\"], [72.0, 72, \"\", \"\", 108, \"\"], [901.0, 721, 180, \"\", 1152, 0.432]]}}], @layout={:height=>350}, @config={:linkText=>\"Export to plot.ly\", :showLink=>true}, @embedded=true>"
245
245
  ]
246
246
  },
247
247
  "metadata": {},
@@ -256,39 +256,29 @@
256
256
  " </script>\n",
257
257
  "\n",
258
258
  "\n",
259
- "<div id=\"992f4328-21b2-467f-af9c-4ae959dcd6f6\" style=\"height: 100%; width: 100%;\"></div>\n",
259
+ "<div id=\"021b5cdb-ac99-450f-bce6-4fdc6ab6d528\" style=\"height: 100%; width: 100%;\"></div>\n",
260
260
  "\n",
261
261
  "<script>\n",
262
262
  " require(['plotly'], function(Plotly) { \n",
263
263
  "Plotly.newPlot(\n",
264
- " '992f4328-21b2-467f-af9c-4ae959dcd6f6',\n",
265
- " [{\"type\":\"table\",\"header\":{\"values\":[\"date\",\"moto_koji\",\"moromi_koji\",\"moto\",\"soe\",\"naka\",\"tome\",\"yodan\"]},\"cells\":{\"values\":[[\"02/20\",\"02/21\",\"02/22\",\"02/23\",\"02/24\",\"02/25\",\"02/26\",\"02/27\",\"02/28\",\"02/29\",\"03/01\",\"03/02\",\"03/03\",\"03/04\",\"03/05\",\"03/06\",\"03/07\",\"03/08\",\"03/09\",\"03/10\",\"03/11\",\"03/12\",\"03/13\",\"03/14\",\"03/15\",\"03/16\",\"03/17\",\"03/18\",\"03/19\",\"03/20\",\"03/21\",\"03/22\",\"03/23\",\"03/24\",\"03/25\",\"03/26\",\"03/27\",\"03/28\",\"03/29\",\"03/30\",\"03/31\",\"04/01\",\"04/02\",\"04/03\",\"04/04\",\"04/05\",\"04/06\",\"04/07\",\"04/08\",\"04/09\",\"04/10\",\"04/11\",\"04/12\",\"04/13\",\"04/14\"],[\"仕3: 21\\u003cbr\\u003e仕4: 18\",[],[],[],\"仕1: 140\",\"\",[],\"仕2: 128\\u003cbr\\u003e仕5: 21\\u003cbr\\u003e仕6: 18\",[],[],[],\"\",\"\",\"\",\"\",[],\"\",\"\",[],[],\"\",\"\",\"\",\"\",[],[],[],\"\",[],\"\",\"\",[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],\"\",[],[],[],[],[],[],\"\"],[\"\",[],[],[],\"\",\"\",[],\"\",[],[],[],\"\",\"\",\"\",\"仕3: 183\\u003cbr\\u003e仕4: 162\",[],\"\",\"\",[],[],\"\",\"仕5: 183\\u003cbr\\u003e仕6: 162\",\"\",\"\",[],[],[],\"\",[],\"\",\"\",[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],\"\",[],[],[],[],[],[],\"\"],[\"\",[],[],[],\"\",\"仕3: 42\\u003cbr\\u003e仕4: 41\",[],\"\",[],[],[],\"\",\"仕5: 42\\u003cbr\\u003e仕6: 41\",\"\",\"\",[],\"\",\"\",[],[],\"\",\"\",\"\",\"\",[],[],[],\"\",[],\"\",\"\",[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],\"\",[],[],[],[],[],[],\"\"],[\"\",[],[],[],\"\",\"\",[],\"\",[],[],[],\"仕1: 65\",\"\",\"\",\"仕2: 60\",[],\"\",\"\",[],[],\"仕3: 98\\u003cbr\\u003e仕4: 90\",\"\",\"\",\"\",[],[],[],\"仕5: 98\\u003cbr\\u003e仕6: 90\",[],\"\",\"\",[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],\"\",[],[],[],[],[],[],\"\"],[\"\",[],[],[],\"\",\"\",[],\"\",[],[],[],\"\",\"\",\"仕1: 150\",\"\",[],\"仕2: 138\",\"\",[],[],\"\",\"\",\"仕3: 190\\u003cbr\\u003e仕4: 518\",\"\",[],[],[],\"\",[],\"仕5: 190\\u003cbr\\u003e仕6: 518\",\"\",[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],\"\",[],[],[],[],[],[],\"\"],[\"\",[],[],[],\"\",\"\",[],\"\",[],[],[],\"\",\"\",\"\",\"仕1: 245\",[],\"\",\"仕2: 225\",[],[],\"\",\"\",\"\",\"仕3: 366\",[],[],[],\"\",[],\"\",\"仕5: 366\",[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],\"\",[],[],[],[],[],[],\"\"],[\"\",[],[],[],\"\",\"\",[],\"\",[],[],[],\"\",\"\",\"\",\"\",[],\"\",\"\",[],[],\"\",\"\",\"\",\"\",[],[],[],\"\",[],\"\",\"\",[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],\"仕4: 72\",[],[],[],[],[],[],\"仕6: 72\"]]}}],\n",
264
+ " '021b5cdb-ac99-450f-bce6-4fdc6ab6d528',\n",
265
+ " [{\"type\":\"table\",\"header\":{\"values\":[\"date\",\"moto_koji\",\"moromi_koji\",\"moto\",\"soe\",\"naka\",\"tome\",\"yodan\"]},\"cells\":{\"values\":[[\"02/20\",\"02/21\",\"02/22\",\"02/23\",\"02/24\",\"02/25\",\"02/26\",\"02/27\",\"02/28\",\"02/29\",\"03/01\",\"03/02\",\"03/03\",\"03/04\",\"03/05\",\"03/06\",\"03/07\",\"03/08\",\"03/09\",\"03/10\",\"03/11\",\"03/12\",\"03/13\",\"03/14\",\"03/15\",\"03/16\",\"03/17\",\"03/18\",\"03/19\",\"03/20\",\"03/21\",\"03/22\",\"03/23\",\"03/24\",\"03/25\",\"03/26\",\"03/27\",\"03/28\",\"03/29\",\"03/30\",\"03/31\",\"04/01\",\"04/02\",\"04/03\",\"04/04\",\"04/05\",\"04/06\",\"04/07\",\"04/08\",\"04/09\",\"04/10\",\"04/11\",\"04/12\",\"04/13\",\"04/14\",\"04/15\"],[\"仕3: 21\\u003cbr\\u003e仕4: 18\",[],[],[],\"仕1: 140\",\"\",[],\"仕2: 128\\u003cbr\\u003e仕5: 21\\u003cbr\\u003e仕6: 18\",[],[],[],\"\",\"\",\"\",\"\",[],\"\",\"\",[],[],\"\",\"\",\"\",\"\",[],[],[],\"\",[],\"\",\"\",[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],\"\",[],[],[],[],[],[],\"\"],[\"\",[],[],[],\"\",\"\",[],\"\",[],[],[],\"\",\"\",\"\",\"仕3: 183\\u003cbr\\u003e仕4: 162\",[],\"\",\"\",[],[],\"\",\"仕5: 183\\u003cbr\\u003e仕6: 162\",\"\",\"\",[],[],[],\"\",[],\"\",\"\",[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],\"\",[],[],[],[],[],[],\"\"],[\"\",[],[],[],\"\",\"仕3: 42\\u003cbr\\u003e仕4: 41\",[],\"\",[],[],[],\"\",\"仕5: 42\\u003cbr\\u003e仕6: 41\",\"\",\"\",[],\"\",\"\",[],[],\"\",\"\",\"\",\"\",[],[],[],\"\",[],\"\",\"\",[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],\"\",[],[],[],[],[],[],\"\"],[\"\",[],[],[],\"\",\"\",[],\"\",[],[],[],\"仕1: 65\",\"\",\"\",\"仕2: 60\",[],\"\",\"\",[],[],\"仕3: 98\\u003cbr\\u003e仕4: 90\",\"\",\"\",\"\",[],[],[],\"仕5: 98\\u003cbr\\u003e仕6: 90\",[],\"\",\"\",[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],\"\",[],[],[],[],[],[],\"\"],[\"\",[],[],[],\"\",\"\",[],\"\",[],[],[],\"\",\"\",\"仕1: 150\",\"\",[],\"仕2: 138\",\"\",[],[],\"\",\"\",\"仕3: 190\\u003cbr\\u003e仕4: 194\",\"\",[],[],[],\"\",[],\"仕5: 190\\u003cbr\\u003e仕6: 194\",\"\",[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],\"\",[],[],[],[],[],[],\"\"],[\"\",[],[],[],\"\",\"\",[],\"\",[],[],[],\"\",\"\",\"\",\"仕1: 245\",[],\"\",\"仕2: 225\",[],[],\"\",\"\",\"\",\"仕3: 366\\u003cbr\\u003e仕4: 324\",[],[],[],\"\",[],\"\",\"仕5: 366\\u003cbr\\u003e仕6: 324\",[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],\"\",[],[],[],[],[],[],\"\"],[\"\",[],[],[],\"\",\"\",[],\"\",[],[],[],\"\",\"\",\"\",\"\",[],\"\",\"\",[],[],\"\",\"\",\"\",\"\",[],[],[],\"\",[],\"\",\"\",[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],\"仕4: 72\",[],[],[],[],[],[],\"仕6: 72\"]]}}],\n",
266
266
  " {\"height\":1000},\n",
267
267
  " {\"linkText\":\"Export to plot.ly\",\"showLink\":true}\n",
268
268
  ")\n",
269
269
  "\n",
270
270
  "window.addEventListener('resize', function() {\n",
271
- " Plotly.Plots.resize(document.getElementById('992f4328-21b2-467f-af9c-4ae959dcd6f6'))\n",
271
+ " Plotly.Plots.resize(document.getElementById('021b5cdb-ac99-450f-bce6-4fdc6ab6d528'))\n",
272
272
  "})\n",
273
273
  " }) \n",
274
274
  "</script>"
275
275
  ],
276
276
  "text/plain": [
277
- "#<Plotly::Offline::HTML:0x00007f9798437d80 @id=\"992f4328-21b2-467f-af9c-4ae959dcd6f6\", @data=[{:type=>:table, :header=>{:values=>[:date, :moto_koji, :moromi_koji, :moto, :soe, :naka, :tome, :yodan]}, :cells=>{:values=>[[\"02/20\", \"02/21\", \"02/22\", \"02/23\", \"02/24\", \"02/25\", \"02/26\", \"02/27\", \"02/28\", \"02/29\", \"03/01\", \"03/02\", \"03/03\", \"03/04\", \"03/05\", \"03/06\", \"03/07\", \"03/08\", \"03/09\", \"03/10\", \"03/11\", \"03/12\", \"03/13\", \"03/14\", \"03/15\", \"03/16\", \"03/17\", \"03/18\", \"03/19\", \"03/20\", \"03/21\", \"03/22\", \"03/23\", \"03/24\", \"03/25\", \"03/26\", \"03/27\", \"03/28\", \"03/29\", \"03/30\", \"03/31\", \"04/01\", \"04/02\", \"04/03\", \"04/04\", \"04/05\", \"04/06\", \"04/07\", \"04/08\", \"04/09\", \"04/10\", \"04/11\", \"04/12\", \"04/13\", \"04/14\"], [\"仕3: 21<br>仕4: 18\", [], [], [], \"仕1: 140\", \"\", [], \"仕2: 128<br>仕5: 21<br>仕6: 18\", [], [], [], \"\", \"\", \"\", \"\", [], \"\", \"\", [], [], \"\", \"\", \"\", \"\", [], [], [], \"\", [], \"\", \"\", [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], \"\", [], [], [], [], [], [], \"\"], [\"\", [], [], [], \"\", \"\", [], \"\", [], [], [], \"\", \"\", \"\", \"仕3: 183<br>仕4: 162\", [], \"\", \"\", [], [], \"\", \"仕5: 183<br>仕6: 162\", \"\", \"\", [], [], [], \"\", [], \"\", \"\", [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], \"\", [], [], [], [], [], [], \"\"], [\"\", [], [], [], \"\", \"仕3: 42<br>仕4: 41\", [], \"\", [], [], [], \"\", \"仕5: 42<br>仕6: 41\", \"\", \"\", [], \"\", \"\", [], [], \"\", \"\", \"\", \"\", [], [], [], \"\", [], \"\", \"\", [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], \"\", [], [], [], [], [], [], \"\"], [\"\", [], [], [], \"\", \"\", [], \"\", [], [], [], \"仕1: 65\", \"\", \"\", \"仕2: 60\", [], \"\", \"\", [], [], \"仕3: 98<br>仕4: 90\", \"\", \"\", \"\", [], [], [], \"仕5: 98<br>仕6: 90\", [], \"\", \"\", [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], \"\", [], [], [], [], [], [], \"\"], [\"\", [], [], [], \"\", \"\", [], \"\", [], [], [], \"\", \"\", \"仕1: 150\", \"\", [], \"仕2: 138\", \"\", [], [], \"\", \"\", \"仕3: 190<br>仕4: 518\", \"\", [], [], [], \"\", [], \"仕5: 190<br>仕6: 518\", \"\", [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], \"\", [], [], [], [], [], [], \"\"], [\"\", [], [], [], \"\", \"\", [], \"\", [], [], [], \"\", \"\", \"\", \"仕1: 245\", [], \"\", \"仕2: 225\", [], [], \"\", \"\", \"\", \"仕3: 366\", [], [], [], \"\", [], \"\", \"仕5: 366\", [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], \"\", [], [], [], [], [], [], \"\"], [\"\", [], [], [], \"\", \"\", [], \"\", [], [], [], \"\", \"\", \"\", \"\", [], \"\", \"\", [], [], \"\", \"\", \"\", \"\", [], [], [], \"\", [], \"\", \"\", [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], \"仕4: 72\", [], [], [], [], [], [], \"仕6: 72\"]]}}], @layout={:height=>1000}, @config={:linkText=>\"Export to plot.ly\", :showLink=>true}, @embedded=true>"
277
+ "#<Plotly::Offline::HTML:0x00007fcd50310d60 @id=\"021b5cdb-ac99-450f-bce6-4fdc6ab6d528\", @data=[{:type=>:table, :header=>{:values=>[:date, :moto_koji, :moromi_koji, :moto, :soe, :naka, :tome, :yodan]}, :cells=>{:values=>[[\"02/20\", \"02/21\", \"02/22\", \"02/23\", \"02/24\", \"02/25\", \"02/26\", \"02/27\", \"02/28\", \"02/29\", \"03/01\", \"03/02\", \"03/03\", \"03/04\", \"03/05\", \"03/06\", \"03/07\", \"03/08\", \"03/09\", \"03/10\", \"03/11\", \"03/12\", \"03/13\", \"03/14\", \"03/15\", \"03/16\", \"03/17\", \"03/18\", \"03/19\", \"03/20\", \"03/21\", \"03/22\", \"03/23\", \"03/24\", \"03/25\", \"03/26\", \"03/27\", \"03/28\", \"03/29\", \"03/30\", \"03/31\", \"04/01\", \"04/02\", \"04/03\", \"04/04\", \"04/05\", \"04/06\", \"04/07\", \"04/08\", \"04/09\", \"04/10\", \"04/11\", \"04/12\", \"04/13\", \"04/14\", \"04/15\"], [\"仕3: 21<br>仕4: 18\", [], [], [], \"仕1: 140\", \"\", [], \"仕2: 128<br>仕5: 21<br>仕6: 18\", [], [], [], \"\", \"\", \"\", \"\", [], \"\", \"\", [], [], \"\", \"\", \"\", \"\", [], [], [], \"\", [], \"\", \"\", [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], \"\", [], [], [], [], [], [], \"\"], [\"\", [], [], [], \"\", \"\", [], \"\", [], [], [], \"\", \"\", \"\", \"仕3: 183<br>仕4: 162\", [], \"\", \"\", [], [], \"\", \"仕5: 183<br>仕6: 162\", \"\", \"\", [], [], [], \"\", [], \"\", \"\", [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], \"\", [], [], [], [], [], [], \"\"], [\"\", [], [], [], \"\", \"仕3: 42<br>仕4: 41\", [], \"\", [], [], [], \"\", \"仕5: 42<br>仕6: 41\", \"\", \"\", [], \"\", \"\", [], [], \"\", \"\", \"\", \"\", [], [], [], \"\", [], \"\", \"\", [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], \"\", [], [], [], [], [], [], \"\"], [\"\", [], [], [], \"\", \"\", [], \"\", [], [], [], \"仕1: 65\", \"\", \"\", \"仕2: 60\", [], \"\", \"\", [], [], \"仕3: 98<br>仕4: 90\", \"\", \"\", \"\", [], [], [], \"仕5: 98<br>仕6: 90\", [], \"\", \"\", [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], \"\", [], [], [], [], [], [], \"\"], [\"\", [], [], [], \"\", \"\", [], \"\", [], [], [], \"\", \"\", \"仕1: 150\", \"\", [], \"仕2: 138\", \"\", [], [], \"\", \"\", \"仕3: 190<br>仕4: 194\", \"\", [], [], [], \"\", [], \"仕5: 190<br>仕6: 194\", \"\", [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], \"\", [], [], [], [], [], [], \"\"], [\"\", [], [], [], \"\", \"\", [], \"\", [], [], [], \"\", \"\", \"\", \"仕1: 245\", [], \"\", \"仕2: 225\", [], [], \"\", \"\", \"\", \"仕3: 366<br>仕4: 324\", [], [], [], \"\", [], \"\", \"仕5: 366<br>仕6: 324\", [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], \"\", [], [], [], [], [], [], \"\"], [\"\", [], [], [], \"\", \"\", [], \"\", [], [], [], \"\", \"\", \"\", \"\", [], \"\", \"\", [], [], \"\", \"\", \"\", \"\", [], [], [], \"\", [], \"\", \"\", [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], \"仕4: 72\", [], [], [], [], [], [], \"仕6: 72\"]]}}], @layout={:height=>1000}, @config={:linkText=>\"Export to plot.ly\", :showLink=>true}, @embedded=true>"
278
278
  ]
279
279
  },
280
280
  "metadata": {},
281
281
  "output_type": "display_data"
282
- },
283
- {
284
- "data": {
285
- "text/plain": [
286
- "#<CZTop::Socket::PUB:0x7f979ae1fee0 last_endpoint=\"tcp://127.0.0.1:62179\">"
287
- ]
288
- },
289
- "execution_count": 1,
290
- "metadata": {},
291
- "output_type": "execute_result"
292
282
  }
293
283
  ],
294
284
  "source": [
@@ -299,44 +289,44 @@
299
289
  "\n",
300
290
  "cal = Toji::Calendar.new\n",
301
291
  ".add(Example::Product.create(\n",
302
- " name: \"仕1\",\n",
292
+ " serial_num: \"仕1\",\n",
303
293
  " description: \"姫野国夫による酒母省略仕込\",\n",
304
294
  " recipe: Example::Recipe::TEMPLATES[:simple_sokujo_himeno].scale_rice_total(600).round(0),\n",
305
295
  " base_date: Time.mktime(2020, 2, 24)\n",
306
296
  "))\n",
307
297
  ".add(Example::Product.create(\n",
308
- " name: \"仕2\",\n",
298
+ " serial_num: \"仕2\",\n",
309
299
  " description: \"姫野国夫による酒母省略仕込\",\n",
310
300
  " recipe: Example::Recipe::TEMPLATES[:simple_sokujo_himeno].scale_rice_total(550).round(0),\n",
311
301
  " base_date: Time.mktime(2020, 2, 27)\n",
312
302
  "))\n",
313
303
  ".add(Example::Product.create(\n",
314
- " name: \"仕3\",\n",
304
+ " serial_num: \"仕3\",\n",
315
305
  " description: \"灘における仕込配合\",\n",
316
306
  " recipe: Example::Recipe::TEMPLATES[:sokujo_nada].scale_rice_total(900).round(0),\n",
317
307
  " base_date: Time.mktime(2020, 2, 20)\n",
318
308
  "))\n",
319
309
  ".add(Example::Product.create(\n",
320
- " name: \"仕4\",\n",
310
+ " serial_num: \"仕4\",\n",
321
311
  " description: \"酒造教本による標準型仕込配合\",\n",
322
312
  " recipe: Example::Recipe::TEMPLATES[:sokujo_textbook].scale_rice_total(900).round(0),\n",
323
313
  " base_date: Time.mktime(2020, 2, 20)\n",
324
314
  "))\n",
325
315
  ".add(Example::Product.create(\n",
326
- " name: \"仕5\",\n",
316
+ " serial_num: \"仕5\",\n",
327
317
  " description: \"灘における仕込配合\",\n",
328
318
  " recipe: Example::Recipe::TEMPLATES[:sokujo_nada].scale_rice_total(900).round(0),\n",
329
319
  " base_date: Time.mktime(2020, 2, 27)\n",
330
320
  "))\n",
331
321
  ".add(Example::Product.create(\n",
332
- " name: \"仕6\",\n",
322
+ " serial_num: \"仕6\",\n",
333
323
  " description: \"酒造教本による標準型仕込配合\",\n",
334
324
  " recipe: Example::Recipe::TEMPLATES[:sokujo_textbook].scale_rice_total(900).round(0),\n",
335
325
  " base_date: Time.mktime(2020, 2, 27)\n",
336
326
  "))\n",
337
327
  "\n",
338
328
  "cal.products.each {|product|\n",
339
- " puts \"%s %s\" % [product.name, product.description]\n",
329
+ " puts \"%s %s\" % [product.serial_num, product.description]\n",
340
330
  " \n",
341
331
  " product.recipe.table.tap {|t|\n",
342
332
  " t.layout.height = 350\n",
@@ -345,7 +335,9 @@
345
335
  "\n",
346
336
  "cal.table.tap {|t|\n",
347
337
  " t.layout.height = 1000\n",
348
- "}.show"
338
+ "}.show\n",
339
+ "\n",
340
+ "nil"
349
341
  ]
350
342
  },
351
343
  {
@@ -366,7 +358,7 @@
366
358
  "file_extension": ".rb",
367
359
  "mimetype": "application/x-ruby",
368
360
  "name": "ruby",
369
- "version": "2.6.3"
361
+ "version": "2.7.2"
370
362
  }
371
363
  },
372
364
  "nbformat": 4,
@@ -1,35 +1,35 @@
1
1
  products:
2
- - name: 仕1
2
+ - serial_num: 仕1
3
3
  description: 姫野国夫による酒母省略仕込
4
4
  recipe: :simple_sokujo_himeno
5
5
  scale_rice_total: 600
6
6
  round: 0
7
7
  base_date: 2020-2-24
8
- - name: 仕2
8
+ - serial_num: 仕2
9
9
  description: 姫野国夫による酒母省略仕込
10
10
  recipe: :simple_sokujo_himeno
11
11
  scale_rice_total: 550
12
12
  round: 0
13
13
  base_date: 2020-2-27
14
- - name: 仕3
14
+ - serial_num: 仕3
15
15
  description: 灘における仕込配合
16
16
  recipe: :sokujo_nada
17
17
  scale_rice_total: 900
18
18
  round: 0
19
19
  base_date: 2020-2-20
20
- - name: 仕4
20
+ - serial_num: 仕4
21
21
  description: 酒造教本による標準型仕込配合
22
22
  recipe: :sokujo_textbook
23
23
  scale_rice_total: 900
24
24
  round: 0
25
25
  base_date: 2020-2-20
26
- - name: 仕5
26
+ - serial_num: 仕5
27
27
  description: 灘における仕込配合
28
28
  recipe: :sokujo_nada
29
29
  scale_rice_total: 900
30
30
  round: 0
31
31
  base_date: 2020-2-27
32
- - name: 仕6
32
+ - serial_num: 仕6
33
33
  description: 酒造教本による標準型仕込配合
34
34
  recipe: :sokujo_textbook
35
35
  scale_rice_total: 900
@@ -2,7 +2,7 @@
2
2
  "cells": [
3
3
  {
4
4
  "cell_type": "code",
5
- "execution_count": 1,
5
+ "execution_count": 2,
6
6
  "metadata": {
7
7
  "scrolled": false
8
8
  },
@@ -23,25 +23,25 @@
23
23
  " </script>\n",
24
24
  "\n",
25
25
  "\n",
26
- "<div id=\"fe40482e-431d-4357-82f0-6c3d470dc5a6\" style=\"height: 100%; width: 100%;\"></div>\n",
26
+ "<div id=\"dce806b5-a4eb-44fb-b999-82a60a4741b5\" style=\"height: 100%; width: 100%;\"></div>\n",
27
27
  "\n",
28
28
  "<script>\n",
29
29
  " require(['plotly'], function(Plotly) { \n",
30
30
  "Plotly.newPlot(\n",
31
- " 'fe40482e-431d-4357-82f0-6c3d470dc5a6',\n",
31
+ " 'dce806b5-a4eb-44fb-b999-82a60a4741b5',\n",
32
32
  " [{\"type\":\"table\",\"header\":{\"values\":[\"\",\"Step0\",\"Step1\",\"Step2\",\"Step3\",\"Step4\",\"total\"]},\"cells\":{\"values\":[[\"RiceTotal\",\"Kake\",\"Koji\",\"Alcohol\",\"Water\",\"LacticAcid\"],[35.0,\"\",35,\"\",123,0.8],[65.0,65,\"\",\"\",\"\",\"\"],[200.0,150,50,\"\",200,\"\"],[300.0,245,55,\"\",400,\"\"],[\"\",\"\",\"\",\"\",128,\"\"],[600.0,460,140,\"\",851,0.8]]}}],\n",
33
33
  " {\"height\":350},\n",
34
34
  " {\"linkText\":\"Export to plot.ly\",\"showLink\":true}\n",
35
35
  ")\n",
36
36
  "\n",
37
37
  "window.addEventListener('resize', function() {\n",
38
- " Plotly.Plots.resize(document.getElementById('fe40482e-431d-4357-82f0-6c3d470dc5a6'))\n",
38
+ " Plotly.Plots.resize(document.getElementById('dce806b5-a4eb-44fb-b999-82a60a4741b5'))\n",
39
39
  "})\n",
40
40
  " }) \n",
41
41
  "</script>"
42
42
  ],
43
43
  "text/plain": [
44
- "#<Plotly::Offline::HTML:0x00007fd82e21d870 @id=\"fe40482e-431d-4357-82f0-6c3d470dc5a6\", @data=[{:type=>:table, :header=>{:values=>[\"\", :Step0, :Step1, :Step2, :Step3, :Step4, :total]}, :cells=>{:values=>[[\"RiceTotal\", \"Kake\", \"Koji\", \"Alcohol\", \"Water\", \"LacticAcid\"], [35.0, \"\", 35, \"\", 123, 0.8], [65.0, 65, \"\", \"\", \"\", \"\"], [200.0, 150, 50, \"\", 200, \"\"], [300.0, 245, 55, \"\", 400, \"\"], [\"\", \"\", \"\", \"\", 128, \"\"], [600.0, 460, 140, \"\", 851, 0.8]]}}], @layout={:height=>350}, @config={:linkText=>\"Export to plot.ly\", :showLink=>true}, @embedded=true>"
44
+ "#<Plotly::Offline::HTML:0x00007fd253aa8368 @id=\"dce806b5-a4eb-44fb-b999-82a60a4741b5\", @data=[{:type=>:table, :header=>{:values=>[\"\", :Step0, :Step1, :Step2, :Step3, :Step4, :total]}, :cells=>{:values=>[[\"RiceTotal\", \"Kake\", \"Koji\", \"Alcohol\", \"Water\", \"LacticAcid\"], [35.0, \"\", 35, \"\", 123, 0.8], [65.0, 65, \"\", \"\", \"\", \"\"], [200.0, 150, 50, \"\", 200, \"\"], [300.0, 245, 55, \"\", 400, \"\"], [\"\", \"\", \"\", \"\", 128, \"\"], [600.0, 460, 140, \"\", 851, 0.8]]}}], @layout={:height=>350}, @config={:linkText=>\"Export to plot.ly\", :showLink=>true}, @embedded=true>"
45
45
  ]
46
46
  },
47
47
  "metadata": {},
@@ -63,25 +63,25 @@
63
63
  " </script>\n",
64
64
  "\n",
65
65
  "\n",
66
- "<div id=\"8d63c434-bcc5-4b95-8e3c-223489e8936b\" style=\"height: 100%; width: 100%;\"></div>\n",
66
+ "<div id=\"4312d8ac-4c2d-435d-8f70-7dfb80c98e38\" style=\"height: 100%; width: 100%;\"></div>\n",
67
67
  "\n",
68
68
  "<script>\n",
69
69
  " require(['plotly'], function(Plotly) { \n",
70
70
  "Plotly.newPlot(\n",
71
- " '8d63c434-bcc5-4b95-8e3c-223489e8936b',\n",
71
+ " '4312d8ac-4c2d-435d-8f70-7dfb80c98e38',\n",
72
72
  " [{\"type\":\"table\",\"header\":{\"values\":[\"\",\"Step0\",\"Step1\",\"Step2\",\"Step3\",\"Step4\",\"total\"]},\"cells\":{\"values\":[[\"RiceTotal\",\"Kake\",\"Koji\",\"Alcohol\",\"Water\",\"LacticAcid\"],[32.0,\"\",32,\"\",112,0.733],[60.0,60,\"\",\"\",\"\",\"\"],[184.0,138,46,\"\",183,\"\"],[275.0,225,50,\"\",367,\"\"],[\"\",\"\",\"\",\"\",117,\"\"],[551.0,423,128,\"\",779,0.733]]}}],\n",
73
73
  " {\"height\":350},\n",
74
74
  " {\"linkText\":\"Export to plot.ly\",\"showLink\":true}\n",
75
75
  ")\n",
76
76
  "\n",
77
77
  "window.addEventListener('resize', function() {\n",
78
- " Plotly.Plots.resize(document.getElementById('8d63c434-bcc5-4b95-8e3c-223489e8936b'))\n",
78
+ " Plotly.Plots.resize(document.getElementById('4312d8ac-4c2d-435d-8f70-7dfb80c98e38'))\n",
79
79
  "})\n",
80
80
  " }) \n",
81
81
  "</script>"
82
82
  ],
83
83
  "text/plain": [
84
- "#<Plotly::Offline::HTML:0x00007fd82e2c4558 @id=\"8d63c434-bcc5-4b95-8e3c-223489e8936b\", @data=[{:type=>:table, :header=>{:values=>[\"\", :Step0, :Step1, :Step2, :Step3, :Step4, :total]}, :cells=>{:values=>[[\"RiceTotal\", \"Kake\", \"Koji\", \"Alcohol\", \"Water\", \"LacticAcid\"], [32.0, \"\", 32, \"\", 112, 0.733], [60.0, 60, \"\", \"\", \"\", \"\"], [184.0, 138, 46, \"\", 183, \"\"], [275.0, 225, 50, \"\", 367, \"\"], [\"\", \"\", \"\", \"\", 117, \"\"], [551.0, 423, 128, \"\", 779, 0.733]]}}], @layout={:height=>350}, @config={:linkText=>\"Export to plot.ly\", :showLink=>true}, @embedded=true>"
84
+ "#<Plotly::Offline::HTML:0x00007fd258151a30 @id=\"4312d8ac-4c2d-435d-8f70-7dfb80c98e38\", @data=[{:type=>:table, :header=>{:values=>[\"\", :Step0, :Step1, :Step2, :Step3, :Step4, :total]}, :cells=>{:values=>[[\"RiceTotal\", \"Kake\", \"Koji\", \"Alcohol\", \"Water\", \"LacticAcid\"], [32.0, \"\", 32, \"\", 112, 0.733], [60.0, 60, \"\", \"\", \"\", \"\"], [184.0, 138, 46, \"\", 183, \"\"], [275.0, 225, 50, \"\", 367, \"\"], [\"\", \"\", \"\", \"\", 117, \"\"], [551.0, 423, 128, \"\", 779, 0.733]]}}], @layout={:height=>350}, @config={:linkText=>\"Export to plot.ly\", :showLink=>true}, @embedded=true>"
85
85
  ]
86
86
  },
87
87
  "metadata": {},
@@ -103,25 +103,25 @@
103
103
  " </script>\n",
104
104
  "\n",
105
105
  "\n",
106
- "<div id=\"7a0b9341-d119-431c-8937-bd5498ac9736\" style=\"height: 100%; width: 100%;\"></div>\n",
106
+ "<div id=\"17303de3-4c5c-457d-98db-5b23941d19c8\" style=\"height: 100%; width: 100%;\"></div>\n",
107
107
  "\n",
108
108
  "<script>\n",
109
109
  " require(['plotly'], function(Plotly) { \n",
110
110
  "Plotly.newPlot(\n",
111
- " '7a0b9341-d119-431c-8937-bd5498ac9736',\n",
111
+ " '17303de3-4c5c-457d-98db-5b23941d19c8',\n",
112
112
  " [{\"type\":\"table\",\"header\":{\"values\":[\"\",\"Step0\",\"Step1\",\"Step2\",\"Step3\",\"Step4\",\"total\"]},\"cells\":{\"values\":[[\"RiceTotal\",\"Kake\",\"Koji\",\"Alcohol\",\"Water\",\"LacticAcid\"],[63.0,42,21,\"\",77,0.524],[143.0,98,45,\"\",122,\"\"],[254.0,190,64,\"\",302,\"\"],[440.0,366,74,\"\",599,\"\"],[\"\",\"\",\"\",405,\"\",\"\"],[900.0,696,204,405,1100,0.524]]}}],\n",
113
113
  " {\"height\":350},\n",
114
114
  " {\"linkText\":\"Export to plot.ly\",\"showLink\":true}\n",
115
115
  ")\n",
116
116
  "\n",
117
117
  "window.addEventListener('resize', function() {\n",
118
- " Plotly.Plots.resize(document.getElementById('7a0b9341-d119-431c-8937-bd5498ac9736'))\n",
118
+ " Plotly.Plots.resize(document.getElementById('17303de3-4c5c-457d-98db-5b23941d19c8'))\n",
119
119
  "})\n",
120
120
  " }) \n",
121
121
  "</script>"
122
122
  ],
123
123
  "text/plain": [
124
- "#<Plotly::Offline::HTML:0x00007fd82e35afa8 @id=\"7a0b9341-d119-431c-8937-bd5498ac9736\", @data=[{:type=>:table, :header=>{:values=>[\"\", :Step0, :Step1, :Step2, :Step3, :Step4, :total]}, :cells=>{:values=>[[\"RiceTotal\", \"Kake\", \"Koji\", \"Alcohol\", \"Water\", \"LacticAcid\"], [63.0, 42, 21, \"\", 77, 0.524], [143.0, 98, 45, \"\", 122, \"\"], [254.0, 190, 64, \"\", 302, \"\"], [440.0, 366, 74, \"\", 599, \"\"], [\"\", \"\", \"\", 405, \"\", \"\"], [900.0, 696, 204, 405, 1100, 0.524]]}}], @layout={:height=>350}, @config={:linkText=>\"Export to plot.ly\", :showLink=>true}, @embedded=true>"
124
+ "#<Plotly::Offline::HTML:0x00007fd258847b50 @id=\"17303de3-4c5c-457d-98db-5b23941d19c8\", @data=[{:type=>:table, :header=>{:values=>[\"\", :Step0, :Step1, :Step2, :Step3, :Step4, :total]}, :cells=>{:values=>[[\"RiceTotal\", \"Kake\", \"Koji\", \"Alcohol\", \"Water\", \"LacticAcid\"], [63.0, 42, 21, \"\", 77, 0.524], [143.0, 98, 45, \"\", 122, \"\"], [254.0, 190, 64, \"\", 302, \"\"], [440.0, 366, 74, \"\", 599, \"\"], [\"\", \"\", \"\", 405, \"\", \"\"], [900.0, 696, 204, 405, 1100, 0.524]]}}], @layout={:height=>350}, @config={:linkText=>\"Export to plot.ly\", :showLink=>true}, @embedded=true>"
125
125
  ]
126
126
  },
127
127
  "metadata": {},
@@ -143,25 +143,25 @@
143
143
  " </script>\n",
144
144
  "\n",
145
145
  "\n",
146
- "<div id=\"2baf692e-79d8-4469-a08d-3eaf9e05a1fd\" style=\"height: 100%; width: 100%;\"></div>\n",
146
+ "<div id=\"7c1f51c6-97c3-4a1d-91c4-95e720549f66\" style=\"height: 100%; width: 100%;\"></div>\n",
147
147
  "\n",
148
148
  "<script>\n",
149
149
  " require(['plotly'], function(Plotly) { \n",
150
150
  "Plotly.newPlot(\n",
151
- " '2baf692e-79d8-4469-a08d-3eaf9e05a1fd',\n",
151
+ " '7c1f51c6-97c3-4a1d-91c4-95e720549f66',\n",
152
152
  " [{\"type\":\"table\",\"header\":{\"values\":[\"\",\"Step0\",\"Step1\",\"Step2\",\"Step3\",\"Step4\",\"total\"]},\"cells\":{\"values\":[[\"RiceTotal\",\"Kake\",\"Koji\",\"Alcohol\",\"Water\",\"LacticAcid\"],[59.0,41,18,\"\",63,0.432],[126.0,90,36,\"\",117,\"\"],[248.0,194,54,\"\",297,\"\"],[396.0,324,72,\"\",567,\"\"],[72.0,72,\"\",\"\",108,\"\"],[901.0,721,180,\"\",1152,0.432]]}}],\n",
153
153
  " {\"height\":350},\n",
154
154
  " {\"linkText\":\"Export to plot.ly\",\"showLink\":true}\n",
155
155
  ")\n",
156
156
  "\n",
157
157
  "window.addEventListener('resize', function() {\n",
158
- " Plotly.Plots.resize(document.getElementById('2baf692e-79d8-4469-a08d-3eaf9e05a1fd'))\n",
158
+ " Plotly.Plots.resize(document.getElementById('7c1f51c6-97c3-4a1d-91c4-95e720549f66'))\n",
159
159
  "})\n",
160
160
  " }) \n",
161
161
  "</script>"
162
162
  ],
163
163
  "text/plain": [
164
- "#<Plotly::Offline::HTML:0x00007fd82e9e04e0 @id=\"2baf692e-79d8-4469-a08d-3eaf9e05a1fd\", @data=[{:type=>:table, :header=>{:values=>[\"\", :Step0, :Step1, :Step2, :Step3, :Step4, :total]}, :cells=>{:values=>[[\"RiceTotal\", \"Kake\", \"Koji\", \"Alcohol\", \"Water\", \"LacticAcid\"], [59.0, 41, 18, \"\", 63, 0.432], [126.0, 90, 36, \"\", 117, \"\"], [248.0, 194, 54, \"\", 297, \"\"], [396.0, 324, 72, \"\", 567, \"\"], [72.0, 72, \"\", \"\", 108, \"\"], [901.0, 721, 180, \"\", 1152, 0.432]]}}], @layout={:height=>350}, @config={:linkText=>\"Export to plot.ly\", :showLink=>true}, @embedded=true>"
164
+ "#<Plotly::Offline::HTML:0x00007fd258160580 @id=\"7c1f51c6-97c3-4a1d-91c4-95e720549f66\", @data=[{:type=>:table, :header=>{:values=>[\"\", :Step0, :Step1, :Step2, :Step3, :Step4, :total]}, :cells=>{:values=>[[\"RiceTotal\", \"Kake\", \"Koji\", \"Alcohol\", \"Water\", \"LacticAcid\"], [59.0, 41, 18, \"\", 63, 0.432], [126.0, 90, 36, \"\", 117, \"\"], [248.0, 194, 54, \"\", 297, \"\"], [396.0, 324, 72, \"\", 567, \"\"], [72.0, 72, \"\", \"\", 108, \"\"], [901.0, 721, 180, \"\", 1152, 0.432]]}}], @layout={:height=>350}, @config={:linkText=>\"Export to plot.ly\", :showLink=>true}, @embedded=true>"
165
165
  ]
166
166
  },
167
167
  "metadata": {},
@@ -183,25 +183,25 @@
183
183
  " </script>\n",
184
184
  "\n",
185
185
  "\n",
186
- "<div id=\"f9787d53-bd0b-4453-9150-54a5643100a6\" style=\"height: 100%; width: 100%;\"></div>\n",
186
+ "<div id=\"9954dc86-89f6-4795-a59d-3b60ac39e290\" style=\"height: 100%; width: 100%;\"></div>\n",
187
187
  "\n",
188
188
  "<script>\n",
189
189
  " require(['plotly'], function(Plotly) { \n",
190
190
  "Plotly.newPlot(\n",
191
- " 'f9787d53-bd0b-4453-9150-54a5643100a6',\n",
191
+ " '9954dc86-89f6-4795-a59d-3b60ac39e290',\n",
192
192
  " [{\"type\":\"table\",\"header\":{\"values\":[\"\",\"Step0\",\"Step1\",\"Step2\",\"Step3\",\"Step4\",\"total\"]},\"cells\":{\"values\":[[\"RiceTotal\",\"Kake\",\"Koji\",\"Alcohol\",\"Water\",\"LacticAcid\"],[63.0,42,21,\"\",77,0.524],[143.0,98,45,\"\",122,\"\"],[254.0,190,64,\"\",302,\"\"],[440.0,366,74,\"\",599,\"\"],[\"\",\"\",\"\",405,\"\",\"\"],[900.0,696,204,405,1100,0.524]]}}],\n",
193
193
  " {\"height\":350},\n",
194
194
  " {\"linkText\":\"Export to plot.ly\",\"showLink\":true}\n",
195
195
  ")\n",
196
196
  "\n",
197
197
  "window.addEventListener('resize', function() {\n",
198
- " Plotly.Plots.resize(document.getElementById('f9787d53-bd0b-4453-9150-54a5643100a6'))\n",
198
+ " Plotly.Plots.resize(document.getElementById('9954dc86-89f6-4795-a59d-3b60ac39e290'))\n",
199
199
  "})\n",
200
200
  " }) \n",
201
201
  "</script>"
202
202
  ],
203
203
  "text/plain": [
204
- "#<Plotly::Offline::HTML:0x00007fd82ea11450 @id=\"f9787d53-bd0b-4453-9150-54a5643100a6\", @data=[{:type=>:table, :header=>{:values=>[\"\", :Step0, :Step1, :Step2, :Step3, :Step4, :total]}, :cells=>{:values=>[[\"RiceTotal\", \"Kake\", \"Koji\", \"Alcohol\", \"Water\", \"LacticAcid\"], [63.0, 42, 21, \"\", 77, 0.524], [143.0, 98, 45, \"\", 122, \"\"], [254.0, 190, 64, \"\", 302, \"\"], [440.0, 366, 74, \"\", 599, \"\"], [\"\", \"\", \"\", 405, \"\", \"\"], [900.0, 696, 204, 405, 1100, 0.524]]}}], @layout={:height=>350}, @config={:linkText=>\"Export to plot.ly\", :showLink=>true}, @embedded=true>"
204
+ "#<Plotly::Offline::HTML:0x00007fd253bc4828 @id=\"9954dc86-89f6-4795-a59d-3b60ac39e290\", @data=[{:type=>:table, :header=>{:values=>[\"\", :Step0, :Step1, :Step2, :Step3, :Step4, :total]}, :cells=>{:values=>[[\"RiceTotal\", \"Kake\", \"Koji\", \"Alcohol\", \"Water\", \"LacticAcid\"], [63.0, 42, 21, \"\", 77, 0.524], [143.0, 98, 45, \"\", 122, \"\"], [254.0, 190, 64, \"\", 302, \"\"], [440.0, 366, 74, \"\", 599, \"\"], [\"\", \"\", \"\", 405, \"\", \"\"], [900.0, 696, 204, 405, 1100, 0.524]]}}], @layout={:height=>350}, @config={:linkText=>\"Export to plot.ly\", :showLink=>true}, @embedded=true>"
205
205
  ]
206
206
  },
207
207
  "metadata": {},
@@ -223,25 +223,25 @@
223
223
  " </script>\n",
224
224
  "\n",
225
225
  "\n",
226
- "<div id=\"6c419d0f-5cdd-4034-a1f5-289fc67c1879\" style=\"height: 100%; width: 100%;\"></div>\n",
226
+ "<div id=\"40f05087-0ff0-4a2e-b105-34a5041e5485\" style=\"height: 100%; width: 100%;\"></div>\n",
227
227
  "\n",
228
228
  "<script>\n",
229
229
  " require(['plotly'], function(Plotly) { \n",
230
230
  "Plotly.newPlot(\n",
231
- " '6c419d0f-5cdd-4034-a1f5-289fc67c1879',\n",
231
+ " '40f05087-0ff0-4a2e-b105-34a5041e5485',\n",
232
232
  " [{\"type\":\"table\",\"header\":{\"values\":[\"\",\"Step0\",\"Step1\",\"Step2\",\"Step3\",\"Step4\",\"total\"]},\"cells\":{\"values\":[[\"RiceTotal\",\"Kake\",\"Koji\",\"Alcohol\",\"Water\",\"LacticAcid\"],[59.0,41,18,\"\",63,0.432],[126.0,90,36,\"\",117,\"\"],[248.0,194,54,\"\",297,\"\"],[396.0,324,72,\"\",567,\"\"],[72.0,72,\"\",\"\",108,\"\"],[901.0,721,180,\"\",1152,0.432]]}}],\n",
233
233
  " {\"height\":350},\n",
234
234
  " {\"linkText\":\"Export to plot.ly\",\"showLink\":true}\n",
235
235
  ")\n",
236
236
  "\n",
237
237
  "window.addEventListener('resize', function() {\n",
238
- " Plotly.Plots.resize(document.getElementById('6c419d0f-5cdd-4034-a1f5-289fc67c1879'))\n",
238
+ " Plotly.Plots.resize(document.getElementById('40f05087-0ff0-4a2e-b105-34a5041e5485'))\n",
239
239
  "})\n",
240
240
  " }) \n",
241
241
  "</script>"
242
242
  ],
243
243
  "text/plain": [
244
- "#<Plotly::Offline::HTML:0x00007fd82ea412e0 @id=\"6c419d0f-5cdd-4034-a1f5-289fc67c1879\", @data=[{:type=>:table, :header=>{:values=>[\"\", :Step0, :Step1, :Step2, :Step3, :Step4, :total]}, :cells=>{:values=>[[\"RiceTotal\", \"Kake\", \"Koji\", \"Alcohol\", \"Water\", \"LacticAcid\"], [59.0, 41, 18, \"\", 63, 0.432], [126.0, 90, 36, \"\", 117, \"\"], [248.0, 194, 54, \"\", 297, \"\"], [396.0, 324, 72, \"\", 567, \"\"], [72.0, 72, \"\", \"\", 108, \"\"], [901.0, 721, 180, \"\", 1152, 0.432]]}}], @layout={:height=>350}, @config={:linkText=>\"Export to plot.ly\", :showLink=>true}, @embedded=true>"
244
+ "#<Plotly::Offline::HTML:0x00007fd258180c90 @id=\"40f05087-0ff0-4a2e-b105-34a5041e5485\", @data=[{:type=>:table, :header=>{:values=>[\"\", :Step0, :Step1, :Step2, :Step3, :Step4, :total]}, :cells=>{:values=>[[\"RiceTotal\", \"Kake\", \"Koji\", \"Alcohol\", \"Water\", \"LacticAcid\"], [59.0, 41, 18, \"\", 63, 0.432], [126.0, 90, 36, \"\", 117, \"\"], [248.0, 194, 54, \"\", 297, \"\"], [396.0, 324, 72, \"\", 567, \"\"], [72.0, 72, \"\", \"\", 108, \"\"], [901.0, 721, 180, \"\", 1152, 0.432]]}}], @layout={:height=>350}, @config={:linkText=>\"Export to plot.ly\", :showLink=>true}, @embedded=true>"
245
245
  ]
246
246
  },
247
247
  "metadata": {},
@@ -256,39 +256,29 @@
256
256
  " </script>\n",
257
257
  "\n",
258
258
  "\n",
259
- "<div id=\"75199038-f6e7-49ee-b63a-83bac1f800b0\" style=\"height: 100%; width: 100%;\"></div>\n",
259
+ "<div id=\"5b973151-4ba6-4a19-b4d4-ee61d29e8bd0\" style=\"height: 100%; width: 100%;\"></div>\n",
260
260
  "\n",
261
261
  "<script>\n",
262
262
  " require(['plotly'], function(Plotly) { \n",
263
263
  "Plotly.newPlot(\n",
264
- " '75199038-f6e7-49ee-b63a-83bac1f800b0',\n",
264
+ " '5b973151-4ba6-4a19-b4d4-ee61d29e8bd0',\n",
265
265
  " [{\"type\":\"table\",\"header\":{\"values\":[\"date\",\"moto_koji\",\"moromi_koji\",\"moto\",\"soe\",\"naka\",\"tome\",\"yodan\"]},\"cells\":{\"values\":[[\"02/20\",\"02/21\",\"02/22\",\"02/23\",\"02/24\",\"02/25\",\"02/26\",\"02/27\",\"02/28\",\"02/29\",\"03/01\",\"03/02\",\"03/03\",\"03/04\",\"03/05\",\"03/06\",\"03/07\",\"03/08\",\"03/09\",\"03/10\",\"03/11\",\"03/12\",\"03/13\",\"03/14\",\"03/15\",\"03/16\",\"03/17\",\"03/18\",\"03/19\",\"03/20\",\"03/21\",\"03/22\",\"03/23\",\"03/24\",\"03/25\",\"03/26\",\"03/27\",\"03/28\",\"03/29\",\"03/30\",\"03/31\",\"04/01\",\"04/02\",\"04/03\",\"04/04\",\"04/05\",\"04/06\",\"04/07\",\"04/08\",\"04/09\",\"04/10\",\"04/11\",\"04/12\",\"04/13\",\"04/14\",\"04/15\"],[\"仕3: 21\\u003cbr\\u003e仕4: 18\",[],[],[],\"仕1: 140\",\"\",[],\"仕2: 128\\u003cbr\\u003e仕5: 21\\u003cbr\\u003e仕6: 18\",[],[],[],\"\",\"\",\"\",\"\",[],\"\",\"\",[],[],\"\",\"\",\"\",\"\",[],[],[],\"\",[],\"\",\"\",[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],\"\",[],[],[],[],[],[],\"\"],[\"\",[],[],[],\"\",\"\",[],\"\",[],[],[],\"\",\"\",\"\",\"仕3: 183\\u003cbr\\u003e仕4: 162\",[],\"\",\"\",[],[],\"\",\"仕5: 183\\u003cbr\\u003e仕6: 162\",\"\",\"\",[],[],[],\"\",[],\"\",\"\",[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],\"\",[],[],[],[],[],[],\"\"],[\"\",[],[],[],\"\",\"仕3: 42\\u003cbr\\u003e仕4: 41\",[],\"\",[],[],[],\"\",\"仕5: 42\\u003cbr\\u003e仕6: 41\",\"\",\"\",[],\"\",\"\",[],[],\"\",\"\",\"\",\"\",[],[],[],\"\",[],\"\",\"\",[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],\"\",[],[],[],[],[],[],\"\"],[\"\",[],[],[],\"\",\"\",[],\"\",[],[],[],\"仕1: 65\",\"\",\"\",\"仕2: 60\",[],\"\",\"\",[],[],\"仕3: 98\\u003cbr\\u003e仕4: 90\",\"\",\"\",\"\",[],[],[],\"仕5: 98\\u003cbr\\u003e仕6: 90\",[],\"\",\"\",[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],\"\",[],[],[],[],[],[],\"\"],[\"\",[],[],[],\"\",\"\",[],\"\",[],[],[],\"\",\"\",\"仕1: 150\",\"\",[],\"仕2: 138\",\"\",[],[],\"\",\"\",\"仕3: 190\\u003cbr\\u003e仕4: 194\",\"\",[],[],[],\"\",[],\"仕5: 190\\u003cbr\\u003e仕6: 194\",\"\",[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],\"\",[],[],[],[],[],[],\"\"],[\"\",[],[],[],\"\",\"\",[],\"\",[],[],[],\"\",\"\",\"\",\"仕1: 245\",[],\"\",\"仕2: 225\",[],[],\"\",\"\",\"\",\"仕3: 366\\u003cbr\\u003e仕4: 324\",[],[],[],\"\",[],\"\",\"仕5: 366\\u003cbr\\u003e仕6: 324\",[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],\"\",[],[],[],[],[],[],\"\"],[\"\",[],[],[],\"\",\"\",[],\"\",[],[],[],\"\",\"\",\"\",\"\",[],\"\",\"\",[],[],\"\",\"\",\"\",\"\",[],[],[],\"\",[],\"\",\"\",[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],\"仕4: 72\",[],[],[],[],[],[],\"仕6: 72\"]]}}],\n",
266
266
  " {\"height\":1000},\n",
267
267
  " {\"linkText\":\"Export to plot.ly\",\"showLink\":true}\n",
268
268
  ")\n",
269
269
  "\n",
270
270
  "window.addEventListener('resize', function() {\n",
271
- " Plotly.Plots.resize(document.getElementById('75199038-f6e7-49ee-b63a-83bac1f800b0'))\n",
271
+ " Plotly.Plots.resize(document.getElementById('5b973151-4ba6-4a19-b4d4-ee61d29e8bd0'))\n",
272
272
  "})\n",
273
273
  " }) \n",
274
274
  "</script>"
275
275
  ],
276
276
  "text/plain": [
277
- "#<Plotly::Offline::HTML:0x00007fd82e4467a0 @id=\"75199038-f6e7-49ee-b63a-83bac1f800b0\", @data=[{:type=>:table, :header=>{:values=>[:date, :moto_koji, :moromi_koji, :moto, :soe, :naka, :tome, :yodan]}, :cells=>{:values=>[[\"02/20\", \"02/21\", \"02/22\", \"02/23\", \"02/24\", \"02/25\", \"02/26\", \"02/27\", \"02/28\", \"02/29\", \"03/01\", \"03/02\", \"03/03\", \"03/04\", \"03/05\", \"03/06\", \"03/07\", \"03/08\", \"03/09\", \"03/10\", \"03/11\", \"03/12\", \"03/13\", \"03/14\", \"03/15\", \"03/16\", \"03/17\", \"03/18\", \"03/19\", \"03/20\", \"03/21\", \"03/22\", \"03/23\", \"03/24\", \"03/25\", \"03/26\", \"03/27\", \"03/28\", \"03/29\", \"03/30\", \"03/31\", \"04/01\", \"04/02\", \"04/03\", \"04/04\", \"04/05\", \"04/06\", \"04/07\", \"04/08\", \"04/09\", \"04/10\", \"04/11\", \"04/12\", \"04/13\", \"04/14\", \"04/15\"], [\"仕3: 21<br>仕4: 18\", [], [], [], \"仕1: 140\", \"\", [], \"仕2: 128<br>仕5: 21<br>仕6: 18\", [], [], [], \"\", \"\", \"\", \"\", [], \"\", \"\", [], [], \"\", \"\", \"\", \"\", [], [], [], \"\", [], \"\", \"\", [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], \"\", [], [], [], [], [], [], \"\"], [\"\", [], [], [], \"\", \"\", [], \"\", [], [], [], \"\", \"\", \"\", \"仕3: 183<br>仕4: 162\", [], \"\", \"\", [], [], \"\", \"仕5: 183<br>仕6: 162\", \"\", \"\", [], [], [], \"\", [], \"\", \"\", [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], \"\", [], [], [], [], [], [], \"\"], [\"\", [], [], [], \"\", \"仕3: 42<br>仕4: 41\", [], \"\", [], [], [], \"\", \"仕5: 42<br>仕6: 41\", \"\", \"\", [], \"\", \"\", [], [], \"\", \"\", \"\", \"\", [], [], [], \"\", [], \"\", \"\", [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], \"\", [], [], [], [], [], [], \"\"], [\"\", [], [], [], \"\", \"\", [], \"\", [], [], [], \"仕1: 65\", \"\", \"\", \"仕2: 60\", [], \"\", \"\", [], [], \"仕3: 98<br>仕4: 90\", \"\", \"\", \"\", [], [], [], \"仕5: 98<br>仕6: 90\", [], \"\", \"\", [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], \"\", [], [], [], [], [], [], \"\"], [\"\", [], [], [], \"\", \"\", [], \"\", [], [], [], \"\", \"\", \"仕1: 150\", \"\", [], \"仕2: 138\", \"\", [], [], \"\", \"\", \"仕3: 190<br>仕4: 194\", \"\", [], [], [], \"\", [], \"仕5: 190<br>仕6: 194\", \"\", [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], \"\", [], [], [], [], [], [], \"\"], [\"\", [], [], [], \"\", \"\", [], \"\", [], [], [], \"\", \"\", \"\", \"仕1: 245\", [], \"\", \"仕2: 225\", [], [], \"\", \"\", \"\", \"仕3: 366<br>仕4: 324\", [], [], [], \"\", [], \"\", \"仕5: 366<br>仕6: 324\", [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], \"\", [], [], [], [], [], [], \"\"], [\"\", [], [], [], \"\", \"\", [], \"\", [], [], [], \"\", \"\", \"\", \"\", [], \"\", \"\", [], [], \"\", \"\", \"\", \"\", [], [], [], \"\", [], \"\", \"\", [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], \"仕4: 72\", [], [], [], [], [], [], \"仕6: 72\"]]}}], @layout={:height=>1000}, @config={:linkText=>\"Export to plot.ly\", :showLink=>true}, @embedded=true>"
277
+ "#<Plotly::Offline::HTML:0x00007fd256abb230 @id=\"5b973151-4ba6-4a19-b4d4-ee61d29e8bd0\", @data=[{:type=>:table, :header=>{:values=>[:date, :moto_koji, :moromi_koji, :moto, :soe, :naka, :tome, :yodan]}, :cells=>{:values=>[[\"02/20\", \"02/21\", \"02/22\", \"02/23\", \"02/24\", \"02/25\", \"02/26\", \"02/27\", \"02/28\", \"02/29\", \"03/01\", \"03/02\", \"03/03\", \"03/04\", \"03/05\", \"03/06\", \"03/07\", \"03/08\", \"03/09\", \"03/10\", \"03/11\", \"03/12\", \"03/13\", \"03/14\", \"03/15\", \"03/16\", \"03/17\", \"03/18\", \"03/19\", \"03/20\", \"03/21\", \"03/22\", \"03/23\", \"03/24\", \"03/25\", \"03/26\", \"03/27\", \"03/28\", \"03/29\", \"03/30\", \"03/31\", \"04/01\", \"04/02\", \"04/03\", \"04/04\", \"04/05\", \"04/06\", \"04/07\", \"04/08\", \"04/09\", \"04/10\", \"04/11\", \"04/12\", \"04/13\", \"04/14\", \"04/15\"], [\"仕3: 21<br>仕4: 18\", [], [], [], \"仕1: 140\", \"\", [], \"仕2: 128<br>仕5: 21<br>仕6: 18\", [], [], [], \"\", \"\", \"\", \"\", [], \"\", \"\", [], [], \"\", \"\", \"\", \"\", [], [], [], \"\", [], \"\", \"\", [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], \"\", [], [], [], [], [], [], \"\"], [\"\", [], [], [], \"\", \"\", [], \"\", [], [], [], \"\", \"\", \"\", \"仕3: 183<br>仕4: 162\", [], \"\", \"\", [], [], \"\", \"仕5: 183<br>仕6: 162\", \"\", \"\", [], [], [], \"\", [], \"\", \"\", [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], \"\", [], [], [], [], [], [], \"\"], [\"\", [], [], [], \"\", \"仕3: 42<br>仕4: 41\", [], \"\", [], [], [], \"\", \"仕5: 42<br>仕6: 41\", \"\", \"\", [], \"\", \"\", [], [], \"\", \"\", \"\", \"\", [], [], [], \"\", [], \"\", \"\", [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], \"\", [], [], [], [], [], [], \"\"], [\"\", [], [], [], \"\", \"\", [], \"\", [], [], [], \"仕1: 65\", \"\", \"\", \"仕2: 60\", [], \"\", \"\", [], [], \"仕3: 98<br>仕4: 90\", \"\", \"\", \"\", [], [], [], \"仕5: 98<br>仕6: 90\", [], \"\", \"\", [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], \"\", [], [], [], [], [], [], \"\"], [\"\", [], [], [], \"\", \"\", [], \"\", [], [], [], \"\", \"\", \"仕1: 150\", \"\", [], \"仕2: 138\", \"\", [], [], \"\", \"\", \"仕3: 190<br>仕4: 194\", \"\", [], [], [], \"\", [], \"仕5: 190<br>仕6: 194\", \"\", [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], \"\", [], [], [], [], [], [], \"\"], [\"\", [], [], [], \"\", \"\", [], \"\", [], [], [], \"\", \"\", \"\", \"仕1: 245\", [], \"\", \"仕2: 225\", [], [], \"\", \"\", \"\", \"仕3: 366<br>仕4: 324\", [], [], [], \"\", [], \"\", \"仕5: 366<br>仕6: 324\", [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], \"\", [], [], [], [], [], [], \"\"], [\"\", [], [], [], \"\", \"\", [], \"\", [], [], [], \"\", \"\", \"\", \"\", [], \"\", \"\", [], [], \"\", \"\", \"\", \"\", [], [], [], \"\", [], \"\", \"\", [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], \"仕4: 72\", [], [], [], [], [], [], \"仕6: 72\"]]}}], @layout={:height=>1000}, @config={:linkText=>\"Export to plot.ly\", :showLink=>true}, @embedded=true>"
278
278
  ]
279
279
  },
280
280
  "metadata": {},
281
281
  "output_type": "display_data"
282
- },
283
- {
284
- "data": {
285
- "text/plain": [
286
- "#<CZTop::Socket::PUB:0x7fd82d63e9f0 last_endpoint=\"tcp://127.0.0.1:61250\">"
287
- ]
288
- },
289
- "execution_count": 1,
290
- "metadata": {},
291
- "output_type": "execute_result"
292
282
  }
293
283
  ],
294
284
  "source": [
@@ -300,7 +290,7 @@
300
290
  "cal = Example::Calendar.load_yaml_file(\"calendar.yaml\")\n",
301
291
  "\n",
302
292
  "cal.products.each {|product|\n",
303
- " puts \"%s %s\" % [product.name, product.description]\n",
293
+ " puts \"%s %s\" % [product.serial_num, product.description]\n",
304
294
  " \n",
305
295
  " product.recipe.table.tap {|t|\n",
306
296
  " t.layout.height = 350\n",
@@ -309,7 +299,9 @@
309
299
  "\n",
310
300
  "cal.table.tap {|t|\n",
311
301
  " t.layout.height = 1000\n",
312
- "}.show"
302
+ "}.show\n",
303
+ "\n",
304
+ "nil"
313
305
  ]
314
306
  },
315
307
  {
@@ -330,7 +322,7 @@
330
322
  "file_extension": ".rb",
331
323
  "mimetype": "application/x-ruby",
332
324
  "name": "ruby",
333
- "version": "2.6.3"
325
+ "version": "2.7.2"
334
326
  }
335
327
  },
336
328
  "nbformat": 4,