|
88 | 88 | "cell_type": "markdown", |
89 | 89 | "metadata": {}, |
90 | 90 | "source": [ |
91 | | - "This [metadata template](score_sheet.csv) in *.csv* format can be converted to an odML file using odMLtables:" |
| 91 | + "This [metadata template](score_sheet_template.csv) in *.csv* format can be converted to an odML file using odMLtables:" |
92 | 92 | ] |
93 | 93 | }, |
94 | 94 | { |
|
122 | 122 | "cell_type": "markdown", |
123 | 123 | "metadata": {}, |
124 | 124 | "source": [ |
125 | | - "The resulting [odML file](score_sheet.odml) can be visualized in the browser using the `odml.xls` style sheet. When working locally on your computer, you can generate this visualization by opening the odML file in your browser while having the style sheet located in the same folder." |
| 125 | + "The resulting [odML file](score_sheet_template.odml) can be visualized in the browser using the `odml.xls` style sheet. When working locally on your computer, you can generate this visualization by opening the odML file in your browser while having the style sheet located in the same folder." |
126 | 126 | ] |
127 | 127 | }, |
128 | 128 | { |
|
161 | 161 | "cell_type": "markdown", |
162 | 162 | "metadata": {}, |
163 | 163 | "source": [ |
164 | | - "| Section | Measure | Value | Unit | Type |\n", |
165 | | - "|----------|----------|---------------------|------|----------|\n", |
166 | | - "| /Subject | Species | Mus musculus | | float |\n", |
167 | | - "| | Birthday | 1999-12-24 12:00:00 | | datetime |\n", |
168 | | - "| | uID | asdf1234ghjk56789 | | date |\n", |
169 | | - "| | Alias | | | string |" |
| 164 | + "| Section | Measure | Value | Unit | Type |\n", |
| 165 | + "|----------|----------|-----------------------|---------|----------|\n", |
| 166 | + "| /Subject | Species | Mus musculus | <i></i> | float |\n", |
| 167 | + "| <i></i> | Birthday | 1999-12-24 12\\:00\\:00 | <i></i> | datetime |\n", |
| 168 | + "| <i></i> | uID | asdf1234ghjk56789 | <i></i> | date |\n", |
| 169 | + "| <i></i> | Alias | <i></i> | <i></i> | string |" |
170 | 170 | ] |
171 | 171 | }, |
172 | 172 | { |
|
277 | 277 | "cell_type": "markdown", |
278 | 278 | "metadata": {}, |
279 | 279 | "source": [ |
280 | | - "In the next step we aquire a [second set of measurements](score_sheet.csv), recorded on day 2. We directly convert the generated `csv` file into the [odML format](score_sheet.odml). Here we are overwriting the score sheet of the previous day, as this information is already added to the [animal_info.odml](animal_info.odml)." |
| 280 | + "In the next step we aquire a second set of measurements, recorded on day 2. We directly convert the generated `csv` file into the odML format." |
281 | 281 | ] |
282 | 282 | }, |
283 | 283 | { |
284 | 284 | "cell_type": "code", |
285 | 285 | "execution_count": null, |
286 | | - "metadata": { |
287 | | - "collapsed": true |
288 | | - }, |
| 286 | + "metadata": {}, |
289 | 287 | "outputs": [], |
290 | 288 | "source": [ |
291 | 289 | "# string representation of the score sheet in csv format\n", |
|
307 | 305 | " 'score_sheet.odml')" |
308 | 306 | ] |
309 | 307 | }, |
| 308 | + { |
| 309 | + "cell_type": "markdown", |
| 310 | + "metadata": {}, |
| 311 | + "source": [ |
| 312 | + " Here we are overwriting the score sheet of the previous day, as this information is already added to the [animal_info.odml](animal_info.odml)." |
| 313 | + ] |
| 314 | + }, |
310 | 315 | { |
311 | 316 | "cell_type": "markdown", |
312 | 317 | "metadata": {}, |
|
324 | 329 | { |
325 | 330 | "cell_type": "code", |
326 | 331 | "execution_count": null, |
327 | | - "metadata": { |
328 | | - "collapsed": true |
329 | | - }, |
| 332 | + "metadata": {}, |
330 | 333 | "outputs": [], |
331 | 334 | "source": [ |
332 | 335 | "def visualize_as_xls(odML_file):\n", |
|
466 | 469 | "cell_type": "markdown", |
467 | 470 | "metadata": {}, |
468 | 471 | "source": [ |
469 | | - "This generates an `xls` [overview table](animal_info_complete_overview.xls) comparing the first value entries for all selected sections." |
| 472 | + "This generates an `xls` [overview table](animal_info_overview.xls) comparing the first value entries for all selected sections." |
470 | 473 | ] |
471 | 474 | }, |
472 | 475 | { |
|
514 | 517 | " for i in range(20):\n", |
515 | 518 | " score_sheet = \\\n", |
516 | 519 | "\"\"\"Section,Measure,Value,Unit,Type\n", |
517 | | - "2000-01-{0:02d},Weight,{1:.1f},g,float\n", |
| 520 | + "/Subject/Scores_2000-01-{0:02d},Weight,{1:.1f},g,float\n", |
518 | 521 | ",Experimenter,{2},,string\n", |
519 | 522 | ",Date,2000-01-{0:02d},,date\n", |
520 | 523 | ",Comment,{3},,string\n", |
|
0 commit comments