A loose federation of distributed, typed datasets
1<!DOCTYPE html>
2<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
3
4<meta charset="utf-8">
5<meta name="generator" content="quarto-1.7.34">
6
7<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
8
9
10<title>dictsample – atdata</title>
11<style>
12code{white-space: pre-wrap;}
13span.smallcaps{font-variant: small-caps;}
14div.columns{display: flex; gap: min(4vw, 1.5em);}
15div.column{flex: auto; overflow-x: auto;}
16div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
17ul.task-list{list-style: none;}
18ul.task-list li input[type="checkbox"] {
19 width: 0.8em;
20 margin: 0 0.8em 0.2em -1em; /* quarto-specific, see https://github.com/quarto-dev/quarto-cli/issues/4556 */
21 vertical-align: middle;
22}
23/* CSS for syntax highlighting */
24html { -webkit-text-size-adjust: 100%; }
25pre > code.sourceCode { white-space: pre; position: relative; }
26pre > code.sourceCode > span { display: inline-block; line-height: 1.25; }
27pre > code.sourceCode > span:empty { height: 1.2em; }
28.sourceCode { overflow: visible; }
29code.sourceCode > span { color: inherit; text-decoration: inherit; }
30div.sourceCode { margin: 1em 0; }
31pre.sourceCode { margin: 0; }
32@media screen {
33div.sourceCode { overflow: auto; }
34}
35@media print {
36pre > code.sourceCode { white-space: pre-wrap; }
37pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; }
38}
39pre.numberSource code
40 { counter-reset: source-line 0; }
41pre.numberSource code > span
42 { position: relative; left: -4em; counter-increment: source-line; }
43pre.numberSource code > span > a:first-child::before
44 { content: counter(source-line);
45 position: relative; left: -1em; text-align: right; vertical-align: baseline;
46 border: none; display: inline-block;
47 -webkit-touch-callout: none; -webkit-user-select: none;
48 -khtml-user-select: none; -moz-user-select: none;
49 -ms-user-select: none; user-select: none;
50 padding: 0 4px; width: 4em;
51 }
52pre.numberSource { margin-left: 3em; padding-left: 4px; }
53div.sourceCode
54 { }
55@media screen {
56pre > code.sourceCode > span > a:first-child::before { text-decoration: underline; }
57}
58</style>
59
60
61<script src="../site_libs/quarto-nav/quarto-nav.js"></script>
62<script src="../site_libs/quarto-nav/headroom.min.js"></script>
63<script src="../site_libs/clipboard/clipboard.min.js"></script>
64<script src="../site_libs/quarto-search/autocomplete.umd.js"></script>
65<script src="../site_libs/quarto-search/fuse.min.js"></script>
66<script src="../site_libs/quarto-search/quarto-search.js"></script>
67<meta name="quarto:offset" content="../">
68<script src="../site_libs/quarto-html/quarto.js" type="module"></script>
69<script src="../site_libs/quarto-html/tabsets/tabsets.js" type="module"></script>
70<script src="../site_libs/quarto-html/popper.min.js"></script>
71<script src="../site_libs/quarto-html/tippy.umd.min.js"></script>
72<script src="../site_libs/quarto-html/anchor.min.js"></script>
73<link href="../site_libs/quarto-html/tippy.css" rel="stylesheet">
74<link href="../site_libs/quarto-html/quarto-syntax-highlighting-9582434199d49cc9e91654cdeeb4866b.css" rel="stylesheet" class="quarto-color-scheme" id="quarto-text-highlighting-styles">
75<link href="../site_libs/quarto-html/quarto-syntax-highlighting-dark-8dcd8563ea6803ab7cbb3d71ca5772e1.css" rel="stylesheet" class="quarto-color-scheme quarto-color-alternate" id="quarto-text-highlighting-styles">
76<link href="../site_libs/quarto-html/quarto-syntax-highlighting-9582434199d49cc9e91654cdeeb4866b.css" rel="stylesheet" class="quarto-color-scheme-extra" id="quarto-text-highlighting-styles">
77<script src="../site_libs/bootstrap/bootstrap.min.js"></script>
78<link href="../site_libs/bootstrap/bootstrap-icons.css" rel="stylesheet">
79<link href="../site_libs/bootstrap/bootstrap-62bce24ca844314e7bb1a34dbdfe05cc.min.css" rel="stylesheet" append-hash="true" class="quarto-color-scheme" id="quarto-bootstrap" data-mode="light">
80<link href="../site_libs/bootstrap/bootstrap-dark-7964ffd8887b0991fe8d71c6c8bc75d6.min.css" rel="stylesheet" append-hash="true" class="quarto-color-scheme quarto-color-alternate" id="quarto-bootstrap" data-mode="dark">
81<link href="../site_libs/bootstrap/bootstrap-62bce24ca844314e7bb1a34dbdfe05cc.min.css" rel="stylesheet" append-hash="true" class="quarto-color-scheme-extra" id="quarto-bootstrap" data-mode="light">
82<script id="quarto-search-options" type="application/json">{
83 "location": "navbar",
84 "copy-button": false,
85 "collapse-after": 3,
86 "panel-placement": "end",
87 "type": "overlay",
88 "limit": 50,
89 "keyboard-shortcut": [
90 "f",
91 "/",
92 "s"
93 ],
94 "show-item-context": false,
95 "language": {
96 "search-no-results-text": "No results",
97 "search-matching-documents-text": "matching documents",
98 "search-copy-link-title": "Copy link to search",
99 "search-hide-matches-text": "Hide additional matches",
100 "search-more-match-text": "more match in this document",
101 "search-more-matches-text": "more matches in this document",
102 "search-clear-button-title": "Clear",
103 "search-text-placeholder": "",
104 "search-detached-cancel-button-title": "Cancel",
105 "search-submit-button-title": "Submit",
106 "search-label": "Search"
107 }
108}</script>
109
110
111<link rel="stylesheet" href="../assets/styles.css">
112</head>
113
114<body class="nav-fixed quarto-light"><script id="quarto-html-before-body" type="application/javascript">
115 const toggleBodyColorMode = (bsSheetEl) => {
116 const mode = bsSheetEl.getAttribute("data-mode");
117 const bodyEl = window.document.querySelector("body");
118 if (mode === "dark") {
119 bodyEl.classList.add("quarto-dark");
120 bodyEl.classList.remove("quarto-light");
121 } else {
122 bodyEl.classList.add("quarto-light");
123 bodyEl.classList.remove("quarto-dark");
124 }
125 }
126 const toggleBodyColorPrimary = () => {
127 const bsSheetEl = window.document.querySelector("link#quarto-bootstrap:not([rel=disabled-stylesheet])");
128 if (bsSheetEl) {
129 toggleBodyColorMode(bsSheetEl);
130 }
131 }
132 const setColorSchemeToggle = (alternate) => {
133 const toggles = window.document.querySelectorAll('.quarto-color-scheme-toggle');
134 for (let i=0; i < toggles.length; i++) {
135 const toggle = toggles[i];
136 if (toggle) {
137 if (alternate) {
138 toggle.classList.add("alternate");
139 } else {
140 toggle.classList.remove("alternate");
141 }
142 }
143 }
144 };
145 const toggleColorMode = (alternate) => {
146 // Switch the stylesheets
147 const primaryStylesheets = window.document.querySelectorAll('link.quarto-color-scheme:not(.quarto-color-alternate)');
148 const alternateStylesheets = window.document.querySelectorAll('link.quarto-color-scheme.quarto-color-alternate');
149 manageTransitions('#quarto-margin-sidebar .nav-link', false);
150 if (alternate) {
151 // note: dark is layered on light, we don't disable primary!
152 enableStylesheet(alternateStylesheets);
153 for (const sheetNode of alternateStylesheets) {
154 if (sheetNode.id === "quarto-bootstrap") {
155 toggleBodyColorMode(sheetNode);
156 }
157 }
158 } else {
159 disableStylesheet(alternateStylesheets);
160 enableStylesheet(primaryStylesheets)
161 toggleBodyColorPrimary();
162 }
163 manageTransitions('#quarto-margin-sidebar .nav-link', true);
164 // Switch the toggles
165 setColorSchemeToggle(alternate)
166 // Hack to workaround the fact that safari doesn't
167 // properly recolor the scrollbar when toggling (#1455)
168 if (navigator.userAgent.indexOf('Safari') > 0 && navigator.userAgent.indexOf('Chrome') == -1) {
169 manageTransitions("body", false);
170 window.scrollTo(0, 1);
171 setTimeout(() => {
172 window.scrollTo(0, 0);
173 manageTransitions("body", true);
174 }, 40);
175 }
176 }
177 const disableStylesheet = (stylesheets) => {
178 for (let i=0; i < stylesheets.length; i++) {
179 const stylesheet = stylesheets[i];
180 stylesheet.rel = 'disabled-stylesheet';
181 }
182 }
183 const enableStylesheet = (stylesheets) => {
184 for (let i=0; i < stylesheets.length; i++) {
185 const stylesheet = stylesheets[i];
186 if(stylesheet.rel !== 'stylesheet') { // for Chrome, which will still FOUC without this check
187 stylesheet.rel = 'stylesheet';
188 }
189 }
190 }
191 const manageTransitions = (selector, allowTransitions) => {
192 const els = window.document.querySelectorAll(selector);
193 for (let i=0; i < els.length; i++) {
194 const el = els[i];
195 if (allowTransitions) {
196 el.classList.remove('notransition');
197 } else {
198 el.classList.add('notransition');
199 }
200 }
201 }
202 const isFileUrl = () => {
203 return window.location.protocol === 'file:';
204 }
205 const hasAlternateSentinel = () => {
206 let styleSentinel = getColorSchemeSentinel();
207 if (styleSentinel !== null) {
208 return styleSentinel === "alternate";
209 } else {
210 return false;
211 }
212 }
213 const setStyleSentinel = (alternate) => {
214 const value = alternate ? "alternate" : "default";
215 if (!isFileUrl()) {
216 window.localStorage.setItem("quarto-color-scheme", value);
217 } else {
218 localAlternateSentinel = value;
219 }
220 }
221 const getColorSchemeSentinel = () => {
222 if (!isFileUrl()) {
223 const storageValue = window.localStorage.getItem("quarto-color-scheme");
224 return storageValue != null ? storageValue : localAlternateSentinel;
225 } else {
226 return localAlternateSentinel;
227 }
228 }
229 const toggleGiscusIfUsed = (isAlternate, darkModeDefault) => {
230 const baseTheme = document.querySelector('#giscus-base-theme')?.value ?? 'light';
231 const alternateTheme = document.querySelector('#giscus-alt-theme')?.value ?? 'dark';
232 let newTheme = '';
233 if(authorPrefersDark) {
234 newTheme = isAlternate ? baseTheme : alternateTheme;
235 } else {
236 newTheme = isAlternate ? alternateTheme : baseTheme;
237 }
238 const changeGiscusTheme = () => {
239 // From: https://github.com/giscus/giscus/issues/336
240 const sendMessage = (message) => {
241 const iframe = document.querySelector('iframe.giscus-frame');
242 if (!iframe) return;
243 iframe.contentWindow.postMessage({ giscus: message }, 'https://giscus.app');
244 }
245 sendMessage({
246 setConfig: {
247 theme: newTheme
248 }
249 });
250 }
251 const isGiscussLoaded = window.document.querySelector('iframe.giscus-frame') !== null;
252 if (isGiscussLoaded) {
253 changeGiscusTheme();
254 }
255 };
256 const authorPrefersDark = false;
257 const darkModeDefault = authorPrefersDark;
258 document.querySelector('link#quarto-text-highlighting-styles.quarto-color-scheme-extra').rel = 'disabled-stylesheet';
259 document.querySelector('link#quarto-bootstrap.quarto-color-scheme-extra').rel = 'disabled-stylesheet';
260 let localAlternateSentinel = darkModeDefault ? 'alternate' : 'default';
261 // Dark / light mode switch
262 window.quartoToggleColorScheme = () => {
263 // Read the current dark / light value
264 let toAlternate = !hasAlternateSentinel();
265 toggleColorMode(toAlternate);
266 setStyleSentinel(toAlternate);
267 toggleGiscusIfUsed(toAlternate, darkModeDefault);
268 window.dispatchEvent(new Event('resize'));
269 };
270 // Switch to dark mode if need be
271 if (hasAlternateSentinel()) {
272 toggleColorMode(true);
273 } else {
274 toggleColorMode(false);
275 }
276 </script>
277
278<div id="quarto-search-results"></div>
279 <header id="quarto-header" class="headroom fixed-top">
280 <nav class="navbar navbar-expand-lg " data-bs-theme="dark">
281 <div class="navbar-container container-fluid">
282 <div class="navbar-brand-container mx-auto">
283 <a class="navbar-brand" href="../index.html">
284 <span class="navbar-title">atdata</span>
285 </a>
286 </div>
287 <div id="quarto-search" class="" title="Search"></div>
288 <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" role="menu" aria-expanded="false" aria-label="Toggle navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
289 <span class="navbar-toggler-icon"></span>
290</button>
291 <div class="collapse navbar-collapse" id="navbarCollapse">
292 <ul class="navbar-nav navbar-nav-scroll me-auto">
293 <li class="nav-item">
294 <a class="nav-link" href="../index.html">
295<span class="menu-text">Guide</span></a>
296 </li>
297 <li class="nav-item dropdown ">
298 <a class="nav-link dropdown-toggle" href="#" id="nav-menu-tutorials" role="link" data-bs-toggle="dropdown" aria-expanded="false">
299 <span class="menu-text">Tutorials</span>
300 </a>
301 <ul class="dropdown-menu" aria-labelledby="nav-menu-tutorials">
302 <li>
303 <a class="dropdown-item" href="../tutorials/quickstart.html">
304 <span class="dropdown-text">Quick Start</span></a>
305 </li>
306 <li>
307 <a class="dropdown-item" href="../tutorials/local-workflow.html">
308 <span class="dropdown-text">Local Workflow</span></a>
309 </li>
310 <li>
311 <a class="dropdown-item" href="../tutorials/atmosphere.html">
312 <span class="dropdown-text">Atmosphere Publishing</span></a>
313 </li>
314 <li>
315 <a class="dropdown-item" href="../tutorials/promotion.html">
316 <span class="dropdown-text">Promotion Workflow</span></a>
317 </li>
318 </ul>
319 </li>
320 <li class="nav-item dropdown ">
321 <a class="nav-link dropdown-toggle" href="#" id="nav-menu-reference" role="link" data-bs-toggle="dropdown" aria-expanded="false">
322 <span class="menu-text">Reference</span>
323 </a>
324 <ul class="dropdown-menu" aria-labelledby="nav-menu-reference">
325 <li>
326 <a class="dropdown-item" href="../reference/architecture.html">
327 <span class="dropdown-text">Architecture Overview</span></a>
328 </li>
329 <li>
330 <a class="dropdown-item" href="../reference/packable-samples.html">
331 <span class="dropdown-text">Packable Samples</span></a>
332 </li>
333 <li>
334 <a class="dropdown-item" href="../reference/datasets.html">
335 <span class="dropdown-text">Datasets</span></a>
336 </li>
337 <li>
338 <a class="dropdown-item" href="../reference/lenses.html">
339 <span class="dropdown-text">Lenses</span></a>
340 </li>
341 <li>
342 <a class="dropdown-item" href="../reference/local-storage.html">
343 <span class="dropdown-text">Local Storage</span></a>
344 </li>
345 <li>
346 <a class="dropdown-item" href="../reference/atmosphere.html">
347 <span class="dropdown-text">Atmosphere</span></a>
348 </li>
349 <li>
350 <a class="dropdown-item" href="../reference/promotion.html">
351 <span class="dropdown-text">Promotion</span></a>
352 </li>
353 <li>
354 <a class="dropdown-item" href="../reference/load-dataset.html">
355 <span class="dropdown-text">load_dataset API</span></a>
356 </li>
357 <li>
358 <a class="dropdown-item" href="../reference/protocols.html">
359 <span class="dropdown-text">Protocols</span></a>
360 </li>
361 <li>
362 <a class="dropdown-item" href="../reference/uri-spec.html">
363 <span class="dropdown-text">URI Specification</span></a>
364 </li>
365 <li>
366 <a class="dropdown-item" href="../reference/troubleshooting.html">
367 <span class="dropdown-text">Troubleshooting & FAQ</span></a>
368 </li>
369 <li>
370 <a class="dropdown-item" href="../reference/deployment.html">
371 <span class="dropdown-text">Deployment Guide</span></a>
372 </li>
373 </ul>
374 </li>
375 <li class="nav-item">
376 <a class="nav-link" href="../api/index.html">
377<span class="menu-text">API</span></a>
378 </li>
379</ul>
380 <ul class="navbar-nav navbar-nav-scroll ms-auto">
381 <li class="nav-item compact">
382 <a class="nav-link" href="https://github.com/your-org/atdata"> <i class="bi bi-github" role="img">
383</i>
384<span class="menu-text"></span></a>
385 </li>
386</ul>
387 </div> <!-- /navcollapse -->
388 <div class="quarto-navbar-tools">
389 <a href="" class="quarto-color-scheme-toggle quarto-navigation-tool px-1" onclick="window.quartoToggleColorScheme(); return false;" title="Toggle dark mode"><i class="bi"></i></a>
390</div>
391 </div> <!-- /container-fluid -->
392 </nav>
393</header>
394<!-- content -->
395<div id="quarto-content" class="quarto-container page-columns page-rows-contents page-layout-article page-navbar">
396<!-- sidebar -->
397<!-- margin-sidebar -->
398 <div id="quarto-margin-sidebar" class="sidebar margin-sidebar">
399 <nav id="TOC" role="doc-toc" class="toc-active">
400 <h2 id="toc-title">On this page</h2>
401
402 <ul>
403 <li><a href="#atdata.DictSample" id="toc-atdata.DictSample" class="nav-link active" data-scroll-target="#atdata.DictSample">DictSample</a>
404 <ul class="collapse">
405 <li><a href="#examples" id="toc-examples" class="nav-link" data-scroll-target="#examples">Examples</a></li>
406 <li><a href="#note" id="toc-note" class="nav-link" data-scroll-target="#note">Note</a></li>
407 <li><a href="#attributes" id="toc-attributes" class="nav-link" data-scroll-target="#attributes">Attributes</a></li>
408 <li><a href="#methods" id="toc-methods" class="nav-link" data-scroll-target="#methods">Methods</a>
409 <ul class="collapse">
410 <li><a href="#atdata.DictSample.from_bytes" id="toc-atdata.DictSample.from_bytes" class="nav-link" data-scroll-target="#atdata.DictSample.from_bytes">from_bytes</a></li>
411 <li><a href="#atdata.DictSample.from_data" id="toc-atdata.DictSample.from_data" class="nav-link" data-scroll-target="#atdata.DictSample.from_data">from_data</a></li>
412 <li><a href="#atdata.DictSample.get" id="toc-atdata.DictSample.get" class="nav-link" data-scroll-target="#atdata.DictSample.get">get</a></li>
413 <li><a href="#atdata.DictSample.items" id="toc-atdata.DictSample.items" class="nav-link" data-scroll-target="#atdata.DictSample.items">items</a></li>
414 <li><a href="#atdata.DictSample.keys" id="toc-atdata.DictSample.keys" class="nav-link" data-scroll-target="#atdata.DictSample.keys">keys</a></li>
415 <li><a href="#atdata.DictSample.to_dict" id="toc-atdata.DictSample.to_dict" class="nav-link" data-scroll-target="#atdata.DictSample.to_dict">to_dict</a></li>
416 <li><a href="#atdata.DictSample.values" id="toc-atdata.DictSample.values" class="nav-link" data-scroll-target="#atdata.DictSample.values">values</a></li>
417 </ul></li>
418 </ul></li>
419 </ul>
420<div class="toc-actions"><ul><li><a href="https://github.com/your-org/atdata/edit/main/api/DictSample.qmd" class="toc-action"><i class="bi bi-github"></i>Edit this page</a></li><li><a href="https://github.com/your-org/atdata/issues/new" class="toc-action"><i class="bi empty"></i>Report an issue</a></li></ul></div></nav>
421 </div>
422<!-- main -->
423<main class="content" id="quarto-document-content"><header id="title-block-header" class="quarto-title-block"></header>
424
425
426
427
428
429<section id="atdata.DictSample" class="level1">
430<h1>DictSample</h1>
431<div class="sourceCode" id="cb1"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a>DictSample(_data<span class="op">=</span><span class="va">None</span>, <span class="op">**</span>kwargs)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
432<p>Dynamic sample type providing dict-like access to raw msgpack data.</p>
433<p>This class is the default sample type for datasets when no explicit type is specified. It stores the raw unpacked msgpack data and provides both attribute-style (<code>sample.field</code>) and dict-style (<code>sample["field"]</code>) access to fields.</p>
434<p><code>DictSample</code> is useful for: - Exploring datasets without defining a schema first - Working with datasets that have variable schemas - Prototyping before committing to a typed schema</p>
435<p>To convert to a typed schema, use <code>Dataset.as_type()</code> with a <code>@packable</code>-decorated class. Every <code>@packable</code> class automatically registers a lens from <code>DictSample</code>, making this conversion seamless.</p>
436<section id="examples" class="level2 doc-section doc-section-examples">
437<h2 class="doc-section doc-section-examples anchored" data-anchor-id="examples">Examples</h2>
438<div class="sourceCode" id="cb2"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a><span class="op">>>></span> ds <span class="op">=</span> load_dataset(<span class="st">"path/to/data.tar"</span>) <span class="co"># Returns Dataset[DictSample]</span></span>
439<span id="cb2-2"><a href="#cb2-2" aria-hidden="true" tabindex="-1"></a><span class="op">>>></span> <span class="cf">for</span> sample <span class="kw">in</span> ds.ordered():</span>
440<span id="cb2-3"><a href="#cb2-3" aria-hidden="true" tabindex="-1"></a>... <span class="bu">print</span>(sample.some_field) <span class="co"># Attribute access</span></span>
441<span id="cb2-4"><a href="#cb2-4" aria-hidden="true" tabindex="-1"></a>... <span class="bu">print</span>(sample[<span class="st">"other_field"</span>]) <span class="co"># Dict access</span></span>
442<span id="cb2-5"><a href="#cb2-5" aria-hidden="true" tabindex="-1"></a>... <span class="bu">print</span>(sample.keys()) <span class="co"># Inspect available fields</span></span>
443<span id="cb2-6"><a href="#cb2-6" aria-hidden="true" tabindex="-1"></a>...</span>
444<span id="cb2-7"><a href="#cb2-7" aria-hidden="true" tabindex="-1"></a><span class="op">>>></span> <span class="co"># Convert to typed schema</span></span>
445<span id="cb2-8"><a href="#cb2-8" aria-hidden="true" tabindex="-1"></a><span class="op">>>></span> typed_ds <span class="op">=</span> ds.as_type(MyTypedSample)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
446</section>
447<section id="note" class="level2 doc-section doc-section-note">
448<h2 class="doc-section doc-section-note anchored" data-anchor-id="note">Note</h2>
449<p>NDArray fields are stored as raw bytes in DictSample. They are only converted to numpy arrays when accessed through a typed sample class.</p>
450</section>
451<section id="attributes" class="level2">
452<h2 class="anchored" data-anchor-id="attributes">Attributes</h2>
453<table class="caption-top table">
454<thead>
455<tr class="header">
456<th>Name</th>
457<th>Description</th>
458</tr>
459</thead>
460<tbody>
461<tr class="odd">
462<td><a href="#atdata.DictSample.as_wds">as_wds</a></td>
463<td>Pack this sample’s data for writing to WebDataset.</td>
464</tr>
465<tr class="even">
466<td><a href="#atdata.DictSample.packed">packed</a></td>
467<td>Pack this sample’s data into msgpack bytes.</td>
468</tr>
469</tbody>
470</table>
471</section>
472<section id="methods" class="level2">
473<h2 class="anchored" data-anchor-id="methods">Methods</h2>
474<table class="caption-top table">
475<thead>
476<tr class="header">
477<th>Name</th>
478<th>Description</th>
479</tr>
480</thead>
481<tbody>
482<tr class="odd">
483<td><a href="#atdata.DictSample.from_bytes">from_bytes</a></td>
484<td>Create a DictSample from raw msgpack bytes.</td>
485</tr>
486<tr class="even">
487<td><a href="#atdata.DictSample.from_data">from_data</a></td>
488<td>Create a DictSample from unpacked msgpack data.</td>
489</tr>
490<tr class="odd">
491<td><a href="#atdata.DictSample.get">get</a></td>
492<td>Get a field value with optional default.</td>
493</tr>
494<tr class="even">
495<td><a href="#atdata.DictSample.items">items</a></td>
496<td>Return list of (field_name, value) tuples.</td>
497</tr>
498<tr class="odd">
499<td><a href="#atdata.DictSample.keys">keys</a></td>
500<td>Return list of field names.</td>
501</tr>
502<tr class="even">
503<td><a href="#atdata.DictSample.to_dict">to_dict</a></td>
504<td>Return a copy of the underlying data dictionary.</td>
505</tr>
506<tr class="odd">
507<td><a href="#atdata.DictSample.values">values</a></td>
508<td>Return list of field values.</td>
509</tr>
510</tbody>
511</table>
512<section id="atdata.DictSample.from_bytes" class="level3">
513<h3 class="anchored" data-anchor-id="atdata.DictSample.from_bytes">from_bytes</h3>
514<div class="sourceCode" id="cb3"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a>DictSample.from_bytes(bs)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
515<p>Create a DictSample from raw msgpack bytes.</p>
516<section id="parameters" class="level4 doc-section doc-section-parameters">
517<h4 class="doc-section doc-section-parameters anchored" data-anchor-id="parameters">Parameters</h4>
518<table class="caption-top table">
519<thead>
520<tr class="header">
521<th>Name</th>
522<th>Type</th>
523<th>Description</th>
524<th>Default</th>
525</tr>
526</thead>
527<tbody>
528<tr class="odd">
529<td>bs</td>
530<td><a href="`bytes`">bytes</a></td>
531<td>Raw bytes from a msgpack-serialized sample.</td>
532<td><em>required</em></td>
533</tr>
534</tbody>
535</table>
536</section>
537<section id="returns" class="level4 doc-section doc-section-returns">
538<h4 class="doc-section doc-section-returns anchored" data-anchor-id="returns">Returns</h4>
539<table class="caption-top table">
540<thead>
541<tr class="header">
542<th>Name</th>
543<th>Type</th>
544<th>Description</th>
545</tr>
546</thead>
547<tbody>
548<tr class="odd">
549<td></td>
550<td><a href="`atdata.dataset.DictSample`">DictSample</a></td>
551<td>New DictSample instance with the unpacked data.</td>
552</tr>
553</tbody>
554</table>
555</section>
556</section>
557<section id="atdata.DictSample.from_data" class="level3">
558<h3 class="anchored" data-anchor-id="atdata.DictSample.from_data">from_data</h3>
559<div class="sourceCode" id="cb4"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a>DictSample.from_data(data)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
560<p>Create a DictSample from unpacked msgpack data.</p>
561<section id="parameters-1" class="level4 doc-section doc-section-parameters">
562<h4 class="doc-section doc-section-parameters anchored" data-anchor-id="parameters-1">Parameters</h4>
563<table class="caption-top table">
564<thead>
565<tr class="header">
566<th>Name</th>
567<th>Type</th>
568<th>Description</th>
569<th>Default</th>
570</tr>
571</thead>
572<tbody>
573<tr class="odd">
574<td>data</td>
575<td><a href="`dict`">dict</a>[<a href="`str`">str</a>, <a href="`typing.Any`">Any</a>]</td>
576<td>Dictionary with field names as keys.</td>
577<td><em>required</em></td>
578</tr>
579</tbody>
580</table>
581</section>
582<section id="returns-1" class="level4 doc-section doc-section-returns">
583<h4 class="doc-section doc-section-returns anchored" data-anchor-id="returns-1">Returns</h4>
584<table class="caption-top table">
585<thead>
586<tr class="header">
587<th>Name</th>
588<th>Type</th>
589<th>Description</th>
590</tr>
591</thead>
592<tbody>
593<tr class="odd">
594<td></td>
595<td><a href="`atdata.dataset.DictSample`">DictSample</a></td>
596<td>New DictSample instance wrapping the data.</td>
597</tr>
598</tbody>
599</table>
600</section>
601</section>
602<section id="atdata.DictSample.get" class="level3">
603<h3 class="anchored" data-anchor-id="atdata.DictSample.get">get</h3>
604<div class="sourceCode" id="cb5"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb5-1"><a href="#cb5-1" aria-hidden="true" tabindex="-1"></a>DictSample.get(key, default<span class="op">=</span><span class="va">None</span>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
605<p>Get a field value with optional default.</p>
606<section id="parameters-2" class="level4 doc-section doc-section-parameters">
607<h4 class="doc-section doc-section-parameters anchored" data-anchor-id="parameters-2">Parameters</h4>
608<table class="caption-top table">
609<thead>
610<tr class="header">
611<th>Name</th>
612<th>Type</th>
613<th>Description</th>
614<th>Default</th>
615</tr>
616</thead>
617<tbody>
618<tr class="odd">
619<td>key</td>
620<td><a href="`str`">str</a></td>
621<td>Field name to access.</td>
622<td><em>required</em></td>
623</tr>
624<tr class="even">
625<td>default</td>
626<td><a href="`typing.Any`">Any</a></td>
627<td>Value to return if field doesn’t exist.</td>
628<td><code>None</code></td>
629</tr>
630</tbody>
631</table>
632</section>
633<section id="returns-2" class="level4 doc-section doc-section-returns">
634<h4 class="doc-section doc-section-returns anchored" data-anchor-id="returns-2">Returns</h4>
635<table class="caption-top table">
636<thead>
637<tr class="header">
638<th>Name</th>
639<th>Type</th>
640<th>Description</th>
641</tr>
642</thead>
643<tbody>
644<tr class="odd">
645<td></td>
646<td><a href="`typing.Any`">Any</a></td>
647<td>The field value or default.</td>
648</tr>
649</tbody>
650</table>
651</section>
652</section>
653<section id="atdata.DictSample.items" class="level3">
654<h3 class="anchored" data-anchor-id="atdata.DictSample.items">items</h3>
655<div class="sourceCode" id="cb6"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb6-1"><a href="#cb6-1" aria-hidden="true" tabindex="-1"></a>DictSample.items()</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
656<p>Return list of (field_name, value) tuples.</p>
657</section>
658<section id="atdata.DictSample.keys" class="level3">
659<h3 class="anchored" data-anchor-id="atdata.DictSample.keys">keys</h3>
660<div class="sourceCode" id="cb7"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb7-1"><a href="#cb7-1" aria-hidden="true" tabindex="-1"></a>DictSample.keys()</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
661<p>Return list of field names.</p>
662</section>
663<section id="atdata.DictSample.to_dict" class="level3">
664<h3 class="anchored" data-anchor-id="atdata.DictSample.to_dict">to_dict</h3>
665<div class="sourceCode" id="cb8"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb8-1"><a href="#cb8-1" aria-hidden="true" tabindex="-1"></a>DictSample.to_dict()</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
666<p>Return a copy of the underlying data dictionary.</p>
667</section>
668<section id="atdata.DictSample.values" class="level3">
669<h3 class="anchored" data-anchor-id="atdata.DictSample.values">values</h3>
670<div class="sourceCode" id="cb9"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb9-1"><a href="#cb9-1" aria-hidden="true" tabindex="-1"></a>DictSample.values()</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
671<p>Return list of field values.</p>
672
673
674</section>
675</section>
676</section>
677
678</main> <!-- /main -->
679<script id="quarto-html-after-body" type="application/javascript">
680 window.document.addEventListener("DOMContentLoaded", function (event) {
681 // Ensure there is a toggle, if there isn't float one in the top right
682 if (window.document.querySelector('.quarto-color-scheme-toggle') === null) {
683 const a = window.document.createElement('a');
684 a.classList.add('top-right');
685 a.classList.add('quarto-color-scheme-toggle');
686 a.href = "";
687 a.onclick = function() { try { window.quartoToggleColorScheme(); } catch {} return false; };
688 const i = window.document.createElement("i");
689 i.classList.add('bi');
690 a.appendChild(i);
691 window.document.body.appendChild(a);
692 }
693 setColorSchemeToggle(hasAlternateSentinel())
694 const icon = "";
695 const anchorJS = new window.AnchorJS();
696 anchorJS.options = {
697 placement: 'right',
698 icon: icon
699 };
700 anchorJS.add('.anchored');
701 const isCodeAnnotation = (el) => {
702 for (const clz of el.classList) {
703 if (clz.startsWith('code-annotation-')) {
704 return true;
705 }
706 }
707 return false;
708 }
709 const onCopySuccess = function(e) {
710 // button target
711 const button = e.trigger;
712 // don't keep focus
713 button.blur();
714 // flash "checked"
715 button.classList.add('code-copy-button-checked');
716 var currentTitle = button.getAttribute("title");
717 button.setAttribute("title", "Copied!");
718 let tooltip;
719 if (window.bootstrap) {
720 button.setAttribute("data-bs-toggle", "tooltip");
721 button.setAttribute("data-bs-placement", "left");
722 button.setAttribute("data-bs-title", "Copied!");
723 tooltip = new bootstrap.Tooltip(button,
724 { trigger: "manual",
725 customClass: "code-copy-button-tooltip",
726 offset: [0, -8]});
727 tooltip.show();
728 }
729 setTimeout(function() {
730 if (tooltip) {
731 tooltip.hide();
732 button.removeAttribute("data-bs-title");
733 button.removeAttribute("data-bs-toggle");
734 button.removeAttribute("data-bs-placement");
735 }
736 button.setAttribute("title", currentTitle);
737 button.classList.remove('code-copy-button-checked');
738 }, 1000);
739 // clear code selection
740 e.clearSelection();
741 }
742 const getTextToCopy = function(trigger) {
743 const codeEl = trigger.previousElementSibling.cloneNode(true);
744 for (const childEl of codeEl.children) {
745 if (isCodeAnnotation(childEl)) {
746 childEl.remove();
747 }
748 }
749 return codeEl.innerText;
750 }
751 const clipboard = new window.ClipboardJS('.code-copy-button:not([data-in-quarto-modal])', {
752 text: getTextToCopy
753 });
754 clipboard.on('success', onCopySuccess);
755 if (window.document.getElementById('quarto-embedded-source-code-modal')) {
756 const clipboardModal = new window.ClipboardJS('.code-copy-button[data-in-quarto-modal]', {
757 text: getTextToCopy,
758 container: window.document.getElementById('quarto-embedded-source-code-modal')
759 });
760 clipboardModal.on('success', onCopySuccess);
761 }
762 var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
763 var mailtoRegex = new RegExp(/^mailto:/);
764 var filterRegex = new RegExp("https:\/\/github\.com\/your-org\/atdata");
765 var isInternal = (href) => {
766 return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
767 }
768 // Inspect non-navigation links and adorn them if external
769 var links = window.document.querySelectorAll('a[href]:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external):not([aria-hidden]):not(.dropdown-item):not(.quarto-navigation-tool):not(.about-link)');
770 for (var i=0; i<links.length; i++) {
771 const link = links[i];
772 if (!isInternal(link.href)) {
773 // undo the damage that might have been done by quarto-nav.js in the case of
774 // links that we want to consider external
775 if (link.dataset.originalHref !== undefined) {
776 link.href = link.dataset.originalHref;
777 }
778 }
779 }
780 function tippyHover(el, contentFn, onTriggerFn, onUntriggerFn) {
781 const config = {
782 allowHTML: true,
783 maxWidth: 500,
784 delay: 100,
785 arrow: false,
786 appendTo: function(el) {
787 return el.parentElement;
788 },
789 interactive: true,
790 interactiveBorder: 10,
791 theme: 'quarto',
792 placement: 'bottom-start',
793 };
794 if (contentFn) {
795 config.content = contentFn;
796 }
797 if (onTriggerFn) {
798 config.onTrigger = onTriggerFn;
799 }
800 if (onUntriggerFn) {
801 config.onUntrigger = onUntriggerFn;
802 }
803 window.tippy(el, config);
804 }
805 const noterefs = window.document.querySelectorAll('a[role="doc-noteref"]');
806 for (var i=0; i<noterefs.length; i++) {
807 const ref = noterefs[i];
808 tippyHover(ref, function() {
809 // use id or data attribute instead here
810 let href = ref.getAttribute('data-footnote-href') || ref.getAttribute('href');
811 try { href = new URL(href).hash; } catch {}
812 const id = href.replace(/^#\/?/, "");
813 const note = window.document.getElementById(id);
814 if (note) {
815 return note.innerHTML;
816 } else {
817 return "";
818 }
819 });
820 }
821 const xrefs = window.document.querySelectorAll('a.quarto-xref');
822 const processXRef = (id, note) => {
823 // Strip column container classes
824 const stripColumnClz = (el) => {
825 el.classList.remove("page-full", "page-columns");
826 if (el.children) {
827 for (const child of el.children) {
828 stripColumnClz(child);
829 }
830 }
831 }
832 stripColumnClz(note)
833 if (id === null || id.startsWith('sec-')) {
834 // Special case sections, only their first couple elements
835 const container = document.createElement("div");
836 if (note.children && note.children.length > 2) {
837 container.appendChild(note.children[0].cloneNode(true));
838 for (let i = 1; i < note.children.length; i++) {
839 const child = note.children[i];
840 if (child.tagName === "P" && child.innerText === "") {
841 continue;
842 } else {
843 container.appendChild(child.cloneNode(true));
844 break;
845 }
846 }
847 if (window.Quarto?.typesetMath) {
848 window.Quarto.typesetMath(container);
849 }
850 return container.innerHTML
851 } else {
852 if (window.Quarto?.typesetMath) {
853 window.Quarto.typesetMath(note);
854 }
855 return note.innerHTML;
856 }
857 } else {
858 // Remove any anchor links if they are present
859 const anchorLink = note.querySelector('a.anchorjs-link');
860 if (anchorLink) {
861 anchorLink.remove();
862 }
863 if (window.Quarto?.typesetMath) {
864 window.Quarto.typesetMath(note);
865 }
866 if (note.classList.contains("callout")) {
867 return note.outerHTML;
868 } else {
869 return note.innerHTML;
870 }
871 }
872 }
873 for (var i=0; i<xrefs.length; i++) {
874 const xref = xrefs[i];
875 tippyHover(xref, undefined, function(instance) {
876 instance.disable();
877 let url = xref.getAttribute('href');
878 let hash = undefined;
879 if (url.startsWith('#')) {
880 hash = url;
881 } else {
882 try { hash = new URL(url).hash; } catch {}
883 }
884 if (hash) {
885 const id = hash.replace(/^#\/?/, "");
886 const note = window.document.getElementById(id);
887 if (note !== null) {
888 try {
889 const html = processXRef(id, note.cloneNode(true));
890 instance.setContent(html);
891 } finally {
892 instance.enable();
893 instance.show();
894 }
895 } else {
896 // See if we can fetch this
897 fetch(url.split('#')[0])
898 .then(res => res.text())
899 .then(html => {
900 const parser = new DOMParser();
901 const htmlDoc = parser.parseFromString(html, "text/html");
902 const note = htmlDoc.getElementById(id);
903 if (note !== null) {
904 const html = processXRef(id, note);
905 instance.setContent(html);
906 }
907 }).finally(() => {
908 instance.enable();
909 instance.show();
910 });
911 }
912 } else {
913 // See if we can fetch a full url (with no hash to target)
914 // This is a special case and we should probably do some content thinning / targeting
915 fetch(url)
916 .then(res => res.text())
917 .then(html => {
918 const parser = new DOMParser();
919 const htmlDoc = parser.parseFromString(html, "text/html");
920 const note = htmlDoc.querySelector('main.content');
921 if (note !== null) {
922 // This should only happen for chapter cross references
923 // (since there is no id in the URL)
924 // remove the first header
925 if (note.children.length > 0 && note.children[0].tagName === "HEADER") {
926 note.children[0].remove();
927 }
928 const html = processXRef(null, note);
929 instance.setContent(html);
930 }
931 }).finally(() => {
932 instance.enable();
933 instance.show();
934 });
935 }
936 }, function(instance) {
937 });
938 }
939 let selectedAnnoteEl;
940 const selectorForAnnotation = ( cell, annotation) => {
941 let cellAttr = 'data-code-cell="' + cell + '"';
942 let lineAttr = 'data-code-annotation="' + annotation + '"';
943 const selector = 'span[' + cellAttr + '][' + lineAttr + ']';
944 return selector;
945 }
946 const selectCodeLines = (annoteEl) => {
947 const doc = window.document;
948 const targetCell = annoteEl.getAttribute("data-target-cell");
949 const targetAnnotation = annoteEl.getAttribute("data-target-annotation");
950 const annoteSpan = window.document.querySelector(selectorForAnnotation(targetCell, targetAnnotation));
951 const lines = annoteSpan.getAttribute("data-code-lines").split(",");
952 const lineIds = lines.map((line) => {
953 return targetCell + "-" + line;
954 })
955 let top = null;
956 let height = null;
957 let parent = null;
958 if (lineIds.length > 0) {
959 //compute the position of the single el (top and bottom and make a div)
960 const el = window.document.getElementById(lineIds[0]);
961 top = el.offsetTop;
962 height = el.offsetHeight;
963 parent = el.parentElement.parentElement;
964 if (lineIds.length > 1) {
965 const lastEl = window.document.getElementById(lineIds[lineIds.length - 1]);
966 const bottom = lastEl.offsetTop + lastEl.offsetHeight;
967 height = bottom - top;
968 }
969 if (top !== null && height !== null && parent !== null) {
970 // cook up a div (if necessary) and position it
971 let div = window.document.getElementById("code-annotation-line-highlight");
972 if (div === null) {
973 div = window.document.createElement("div");
974 div.setAttribute("id", "code-annotation-line-highlight");
975 div.style.position = 'absolute';
976 parent.appendChild(div);
977 }
978 div.style.top = top - 2 + "px";
979 div.style.height = height + 4 + "px";
980 div.style.left = 0;
981 let gutterDiv = window.document.getElementById("code-annotation-line-highlight-gutter");
982 if (gutterDiv === null) {
983 gutterDiv = window.document.createElement("div");
984 gutterDiv.setAttribute("id", "code-annotation-line-highlight-gutter");
985 gutterDiv.style.position = 'absolute';
986 const codeCell = window.document.getElementById(targetCell);
987 const gutter = codeCell.querySelector('.code-annotation-gutter');
988 gutter.appendChild(gutterDiv);
989 }
990 gutterDiv.style.top = top - 2 + "px";
991 gutterDiv.style.height = height + 4 + "px";
992 }
993 selectedAnnoteEl = annoteEl;
994 }
995 };
996 const unselectCodeLines = () => {
997 const elementsIds = ["code-annotation-line-highlight", "code-annotation-line-highlight-gutter"];
998 elementsIds.forEach((elId) => {
999 const div = window.document.getElementById(elId);
1000 if (div) {
1001 div.remove();
1002 }
1003 });
1004 selectedAnnoteEl = undefined;
1005 };
1006 // Handle positioning of the toggle
1007 window.addEventListener(
1008 "resize",
1009 throttle(() => {
1010 elRect = undefined;
1011 if (selectedAnnoteEl) {
1012 selectCodeLines(selectedAnnoteEl);
1013 }
1014 }, 10)
1015 );
1016 function throttle(fn, ms) {
1017 let throttle = false;
1018 let timer;
1019 return (...args) => {
1020 if(!throttle) { // first call gets through
1021 fn.apply(this, args);
1022 throttle = true;
1023 } else { // all the others get throttled
1024 if(timer) clearTimeout(timer); // cancel #2
1025 timer = setTimeout(() => {
1026 fn.apply(this, args);
1027 timer = throttle = false;
1028 }, ms);
1029 }
1030 };
1031 }
1032 // Attach click handler to the DT
1033 const annoteDls = window.document.querySelectorAll('dt[data-target-cell]');
1034 for (const annoteDlNode of annoteDls) {
1035 annoteDlNode.addEventListener('click', (event) => {
1036 const clickedEl = event.target;
1037 if (clickedEl !== selectedAnnoteEl) {
1038 unselectCodeLines();
1039 const activeEl = window.document.querySelector('dt[data-target-cell].code-annotation-active');
1040 if (activeEl) {
1041 activeEl.classList.remove('code-annotation-active');
1042 }
1043 selectCodeLines(clickedEl);
1044 clickedEl.classList.add('code-annotation-active');
1045 } else {
1046 // Unselect the line
1047 unselectCodeLines();
1048 clickedEl.classList.remove('code-annotation-active');
1049 }
1050 });
1051 }
1052 const findCites = (el) => {
1053 const parentEl = el.parentElement;
1054 if (parentEl) {
1055 const cites = parentEl.dataset.cites;
1056 if (cites) {
1057 return {
1058 el,
1059 cites: cites.split(' ')
1060 };
1061 } else {
1062 return findCites(el.parentElement)
1063 }
1064 } else {
1065 return undefined;
1066 }
1067 };
1068 var bibliorefs = window.document.querySelectorAll('a[role="doc-biblioref"]');
1069 for (var i=0; i<bibliorefs.length; i++) {
1070 const ref = bibliorefs[i];
1071 const citeInfo = findCites(ref);
1072 if (citeInfo) {
1073 tippyHover(citeInfo.el, function() {
1074 var popup = window.document.createElement('div');
1075 citeInfo.cites.forEach(function(cite) {
1076 var citeDiv = window.document.createElement('div');
1077 citeDiv.classList.add('hanging-indent');
1078 citeDiv.classList.add('csl-entry');
1079 var biblioDiv = window.document.getElementById('ref-' + cite);
1080 if (biblioDiv) {
1081 citeDiv.innerHTML = biblioDiv.innerHTML;
1082 }
1083 popup.appendChild(citeDiv);
1084 });
1085 return popup.innerHTML;
1086 });
1087 }
1088 }
1089 });
1090 </script>
1091</div> <!-- /content -->
1092<footer class="footer">
1093 <div class="nav-footer">
1094 <div class="nav-footer-left">
1095<p>Built with <a href="https://quarto.org/">Quarto</a></p>
1096</div>
1097 <div class="nav-footer-center">
1098
1099 <div class="toc-actions d-sm-block d-md-none"><ul><li><a href="https://github.com/your-org/atdata/edit/main/api/DictSample.qmd" class="toc-action"><i class="bi bi-github"></i>Edit this page</a></li><li><a href="https://github.com/your-org/atdata/issues/new" class="toc-action"><i class="bi empty"></i>Report an issue</a></li></ul></div></div>
1100 <div class="nav-footer-right">
1101<p>MIT License</p>
1102</div>
1103 </div>
1104</footer>
1105
1106
1107
1108
1109</body></html>