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>pdsblobstore – 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.atmosphere.PDSBlobStore" id="toc-atdata.atmosphere.PDSBlobStore" class="nav-link active" data-scroll-target="#atdata.atmosphere.PDSBlobStore">PDSBlobStore</a>
404 <ul class="collapse">
405 <li><a href="#attributes" id="toc-attributes" class="nav-link" data-scroll-target="#attributes">Attributes</a></li>
406 <li><a href="#examples" id="toc-examples" class="nav-link" data-scroll-target="#examples">Examples</a></li>
407 <li><a href="#methods" id="toc-methods" class="nav-link" data-scroll-target="#methods">Methods</a>
408 <ul class="collapse">
409 <li><a href="#atdata.atmosphere.PDSBlobStore.create_source" id="toc-atdata.atmosphere.PDSBlobStore.create_source" class="nav-link" data-scroll-target="#atdata.atmosphere.PDSBlobStore.create_source">create_source</a></li>
410 <li><a href="#atdata.atmosphere.PDSBlobStore.read_url" id="toc-atdata.atmosphere.PDSBlobStore.read_url" class="nav-link" data-scroll-target="#atdata.atmosphere.PDSBlobStore.read_url">read_url</a></li>
411 <li><a href="#atdata.atmosphere.PDSBlobStore.supports_streaming" id="toc-atdata.atmosphere.PDSBlobStore.supports_streaming" class="nav-link" data-scroll-target="#atdata.atmosphere.PDSBlobStore.supports_streaming">supports_streaming</a></li>
412 <li><a href="#atdata.atmosphere.PDSBlobStore.write_shards" id="toc-atdata.atmosphere.PDSBlobStore.write_shards" class="nav-link" data-scroll-target="#atdata.atmosphere.PDSBlobStore.write_shards">write_shards</a></li>
413 </ul></li>
414 </ul></li>
415 </ul>
416<div class="toc-actions"><ul><li><a href="https://github.com/your-org/atdata/edit/main/api/PDSBlobStore.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>
417 </div>
418<!-- main -->
419<main class="content" id="quarto-document-content"><header id="title-block-header" class="quarto-title-block"></header>
420
421
422
423
424
425<section id="atdata.atmosphere.PDSBlobStore" class="level1">
426<h1>PDSBlobStore</h1>
427<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>atmosphere.PDSBlobStore(client)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
428<p>PDS blob store implementing AbstractDataStore protocol.</p>
429<p>Stores dataset shards as ATProto blobs, enabling decentralized dataset storage on the AT Protocol network.</p>
430<p>Each shard is written to a temporary tar file, then uploaded as a blob to the user’s PDS. The returned URLs are AT URIs that can be resolved to HTTP URLs for streaming.</p>
431<section id="attributes" class="level2 doc-section doc-section-attributes">
432<h2 class="doc-section doc-section-attributes anchored" data-anchor-id="attributes">Attributes</h2>
433<table class="caption-top table">
434<colgroup>
435<col style="width: 11%">
436<col style="width: 30%">
437<col style="width: 58%">
438</colgroup>
439<thead>
440<tr class="header">
441<th>Name</th>
442<th>Type</th>
443<th>Description</th>
444</tr>
445</thead>
446<tbody>
447<tr class="odd">
448<td>client</td>
449<td>'AtmosphereClient'</td>
450<td>Authenticated AtmosphereClient instance.</td>
451</tr>
452</tbody>
453</table>
454</section>
455<section id="examples" class="level2 doc-section doc-section-examples">
456<h2 class="doc-section doc-section-examples anchored" data-anchor-id="examples">Examples</h2>
457<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> store <span class="op">=</span> PDSBlobStore(client)</span>
458<span id="cb2-2"><a href="#cb2-2" aria-hidden="true" tabindex="-1"></a><span class="op">>>></span> urls <span class="op">=</span> store.write_shards(dataset, prefix<span class="op">=</span><span class="st">"training/v1"</span>)</span>
459<span id="cb2-3"><a href="#cb2-3" aria-hidden="true" tabindex="-1"></a><span class="op">>>></span> <span class="co"># Returns AT URIs like:</span></span>
460<span id="cb2-4"><a href="#cb2-4" aria-hidden="true" tabindex="-1"></a><span class="op">>>></span> <span class="co"># ['at://did:plc:abc/blob/bafyrei...', ...]</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
461</section>
462<section id="methods" class="level2">
463<h2 class="anchored" data-anchor-id="methods">Methods</h2>
464<table class="caption-top table">
465<thead>
466<tr class="header">
467<th>Name</th>
468<th>Description</th>
469</tr>
470</thead>
471<tbody>
472<tr class="odd">
473<td><a href="#atdata.atmosphere.PDSBlobStore.create_source">create_source</a></td>
474<td>Create a BlobSource for reading these AT URIs.</td>
475</tr>
476<tr class="even">
477<td><a href="#atdata.atmosphere.PDSBlobStore.read_url">read_url</a></td>
478<td>Resolve an AT URI blob reference to an HTTP URL.</td>
479</tr>
480<tr class="odd">
481<td><a href="#atdata.atmosphere.PDSBlobStore.supports_streaming">supports_streaming</a></td>
482<td>PDS blobs support streaming via HTTP.</td>
483</tr>
484<tr class="even">
485<td><a href="#atdata.atmosphere.PDSBlobStore.write_shards">write_shards</a></td>
486<td>Write dataset shards as PDS blobs.</td>
487</tr>
488</tbody>
489</table>
490<section id="atdata.atmosphere.PDSBlobStore.create_source" class="level3">
491<h3 class="anchored" data-anchor-id="atdata.atmosphere.PDSBlobStore.create_source">create_source</h3>
492<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>atmosphere.PDSBlobStore.create_source(urls)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
493<p>Create a BlobSource for reading these AT URIs.</p>
494<p>This is a convenience method for creating a DataSource that can stream the blobs written by this store.</p>
495<section id="parameters" class="level4 doc-section doc-section-parameters">
496<h4 class="doc-section doc-section-parameters anchored" data-anchor-id="parameters">Parameters</h4>
497<table class="caption-top table">
498<thead>
499<tr class="header">
500<th>Name</th>
501<th>Type</th>
502<th>Description</th>
503<th>Default</th>
504</tr>
505</thead>
506<tbody>
507<tr class="odd">
508<td>urls</td>
509<td><a href="`list`">list</a>[<a href="`str`">str</a>]</td>
510<td>List of AT URIs from write_shards().</td>
511<td><em>required</em></td>
512</tr>
513</tbody>
514</table>
515</section>
516<section id="returns" class="level4 doc-section doc-section-returns">
517<h4 class="doc-section doc-section-returns anchored" data-anchor-id="returns">Returns</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</tr>
525</thead>
526<tbody>
527<tr class="odd">
528<td></td>
529<td>'BlobSource'</td>
530<td>BlobSource configured for the given URLs.</td>
531</tr>
532</tbody>
533</table>
534</section>
535<section id="raises" class="level4 doc-section doc-section-raises">
536<h4 class="doc-section doc-section-raises anchored" data-anchor-id="raises">Raises</h4>
537<table class="caption-top table">
538<thead>
539<tr class="header">
540<th>Name</th>
541<th>Type</th>
542<th>Description</th>
543</tr>
544</thead>
545<tbody>
546<tr class="odd">
547<td></td>
548<td><a href="`ValueError`">ValueError</a></td>
549<td>If URLs are not valid AT URIs.</td>
550</tr>
551</tbody>
552</table>
553</section>
554</section>
555<section id="atdata.atmosphere.PDSBlobStore.read_url" class="level3">
556<h3 class="anchored" data-anchor-id="atdata.atmosphere.PDSBlobStore.read_url">read_url</h3>
557<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>atmosphere.PDSBlobStore.read_url(url)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
558<p>Resolve an AT URI blob reference to an HTTP URL.</p>
559<p>Transforms <code>at://did/blob/cid</code> URIs to HTTP URLs that can be streamed by WebDataset.</p>
560<section id="parameters-1" class="level4 doc-section doc-section-parameters">
561<h4 class="doc-section doc-section-parameters anchored" data-anchor-id="parameters-1">Parameters</h4>
562<table class="caption-top table">
563<thead>
564<tr class="header">
565<th>Name</th>
566<th>Type</th>
567<th>Description</th>
568<th>Default</th>
569</tr>
570</thead>
571<tbody>
572<tr class="odd">
573<td>url</td>
574<td><a href="`str`">str</a></td>
575<td>AT URI in format <code>at://{did}/blob/{cid}</code>.</td>
576<td><em>required</em></td>
577</tr>
578</tbody>
579</table>
580</section>
581<section id="returns-1" class="level4 doc-section doc-section-returns">
582<h4 class="doc-section doc-section-returns anchored" data-anchor-id="returns-1">Returns</h4>
583<table class="caption-top table">
584<thead>
585<tr class="header">
586<th>Name</th>
587<th>Type</th>
588<th>Description</th>
589</tr>
590</thead>
591<tbody>
592<tr class="odd">
593<td></td>
594<td><a href="`str`">str</a></td>
595<td>HTTP URL for fetching the blob via PDS API.</td>
596</tr>
597</tbody>
598</table>
599</section>
600<section id="raises-1" class="level4 doc-section doc-section-raises">
601<h4 class="doc-section doc-section-raises anchored" data-anchor-id="raises-1">Raises</h4>
602<table class="caption-top table">
603<thead>
604<tr class="header">
605<th>Name</th>
606<th>Type</th>
607<th>Description</th>
608</tr>
609</thead>
610<tbody>
611<tr class="odd">
612<td></td>
613<td><a href="`ValueError`">ValueError</a></td>
614<td>If URL format is invalid or PDS cannot be resolved.</td>
615</tr>
616</tbody>
617</table>
618</section>
619</section>
620<section id="atdata.atmosphere.PDSBlobStore.supports_streaming" class="level3">
621<h3 class="anchored" data-anchor-id="atdata.atmosphere.PDSBlobStore.supports_streaming">supports_streaming</h3>
622<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>atmosphere.PDSBlobStore.supports_streaming()</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
623<p>PDS blobs support streaming via HTTP.</p>
624<section id="returns-2" class="level4 doc-section doc-section-returns">
625<h4 class="doc-section doc-section-returns anchored" data-anchor-id="returns-2">Returns</h4>
626<table class="caption-top table">
627<thead>
628<tr class="header">
629<th>Name</th>
630<th>Type</th>
631<th>Description</th>
632</tr>
633</thead>
634<tbody>
635<tr class="odd">
636<td></td>
637<td><a href="`bool`">bool</a></td>
638<td>True.</td>
639</tr>
640</tbody>
641</table>
642</section>
643</section>
644<section id="atdata.atmosphere.PDSBlobStore.write_shards" class="level3">
645<h3 class="anchored" data-anchor-id="atdata.atmosphere.PDSBlobStore.write_shards">write_shards</h3>
646<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>atmosphere.PDSBlobStore.write_shards(</span>
647<span id="cb6-2"><a href="#cb6-2" aria-hidden="true" tabindex="-1"></a> ds,</span>
648<span id="cb6-3"><a href="#cb6-3" aria-hidden="true" tabindex="-1"></a> <span class="op">*</span>,</span>
649<span id="cb6-4"><a href="#cb6-4" aria-hidden="true" tabindex="-1"></a> prefix,</span>
650<span id="cb6-5"><a href="#cb6-5" aria-hidden="true" tabindex="-1"></a> maxcount<span class="op">=</span><span class="dv">10000</span>,</span>
651<span id="cb6-6"><a href="#cb6-6" aria-hidden="true" tabindex="-1"></a> maxsize<span class="op">=</span><span class="fl">3000000000.0</span>,</span>
652<span id="cb6-7"><a href="#cb6-7" aria-hidden="true" tabindex="-1"></a> <span class="op">**</span>kwargs,</span>
653<span id="cb6-8"><a href="#cb6-8" aria-hidden="true" tabindex="-1"></a>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
654<p>Write dataset shards as PDS blobs.</p>
655<p>Creates tar archives from the dataset and uploads each as a blob to the authenticated user’s PDS.</p>
656<section id="parameters-2" class="level4 doc-section doc-section-parameters">
657<h4 class="doc-section doc-section-parameters anchored" data-anchor-id="parameters-2">Parameters</h4>
658<table class="caption-top table">
659<thead>
660<tr class="header">
661<th>Name</th>
662<th>Type</th>
663<th>Description</th>
664<th>Default</th>
665</tr>
666</thead>
667<tbody>
668<tr class="odd">
669<td>ds</td>
670<td>'Dataset'</td>
671<td>The Dataset to write.</td>
672<td><em>required</em></td>
673</tr>
674<tr class="even">
675<td>prefix</td>
676<td><a href="`str`">str</a></td>
677<td>Logical path prefix for naming (used in shard names only).</td>
678<td><em>required</em></td>
679</tr>
680<tr class="odd">
681<td>maxcount</td>
682<td><a href="`int`">int</a></td>
683<td>Maximum samples per shard (default: 10000).</td>
684<td><code>10000</code></td>
685</tr>
686<tr class="even">
687<td>maxsize</td>
688<td><a href="`float`">float</a></td>
689<td>Maximum shard size in bytes (default: 3GB, PDS limit).</td>
690<td><code>3000000000.0</code></td>
691</tr>
692<tr class="odd">
693<td>**kwargs</td>
694<td><a href="`typing.Any`">Any</a></td>
695<td>Additional args passed to wds.ShardWriter.</td>
696<td><code>{}</code></td>
697</tr>
698</tbody>
699</table>
700</section>
701<section id="returns-3" class="level4 doc-section doc-section-returns">
702<h4 class="doc-section doc-section-returns anchored" data-anchor-id="returns-3">Returns</h4>
703<table class="caption-top table">
704<thead>
705<tr class="header">
706<th>Name</th>
707<th>Type</th>
708<th>Description</th>
709</tr>
710</thead>
711<tbody>
712<tr class="odd">
713<td></td>
714<td><a href="`list`">list</a>[<a href="`str`">str</a>]</td>
715<td>List of AT URIs for the written blobs, in format:</td>
716</tr>
717<tr class="even">
718<td></td>
719<td><a href="`list`">list</a>[<a href="`str`">str</a>]</td>
720<td><code>at://{did}/blob/{cid}</code></td>
721</tr>
722</tbody>
723</table>
724</section>
725<section id="raises-2" class="level4 doc-section doc-section-raises">
726<h4 class="doc-section doc-section-raises anchored" data-anchor-id="raises-2">Raises</h4>
727<table class="caption-top table">
728<thead>
729<tr class="header">
730<th>Name</th>
731<th>Type</th>
732<th>Description</th>
733</tr>
734</thead>
735<tbody>
736<tr class="odd">
737<td></td>
738<td><a href="`ValueError`">ValueError</a></td>
739<td>If not authenticated.</td>
740</tr>
741<tr class="even">
742<td></td>
743<td><a href="`RuntimeError`">RuntimeError</a></td>
744<td>If no shards were written.</td>
745</tr>
746</tbody>
747</table>
748</section>
749<section id="note" class="level4 doc-section doc-section-note">
750<h4 class="doc-section doc-section-note anchored" data-anchor-id="note">Note</h4>
751<p>PDS blobs have size limits (typically 50MB-5GB depending on PDS). Adjust maxcount/maxsize to stay within limits.</p>
752
753
754</section>
755</section>
756</section>
757</section>
758
759</main> <!-- /main -->
760<script id="quarto-html-after-body" type="application/javascript">
761 window.document.addEventListener("DOMContentLoaded", function (event) {
762 // Ensure there is a toggle, if there isn't float one in the top right
763 if (window.document.querySelector('.quarto-color-scheme-toggle') === null) {
764 const a = window.document.createElement('a');
765 a.classList.add('top-right');
766 a.classList.add('quarto-color-scheme-toggle');
767 a.href = "";
768 a.onclick = function() { try { window.quartoToggleColorScheme(); } catch {} return false; };
769 const i = window.document.createElement("i");
770 i.classList.add('bi');
771 a.appendChild(i);
772 window.document.body.appendChild(a);
773 }
774 setColorSchemeToggle(hasAlternateSentinel())
775 const icon = "";
776 const anchorJS = new window.AnchorJS();
777 anchorJS.options = {
778 placement: 'right',
779 icon: icon
780 };
781 anchorJS.add('.anchored');
782 const isCodeAnnotation = (el) => {
783 for (const clz of el.classList) {
784 if (clz.startsWith('code-annotation-')) {
785 return true;
786 }
787 }
788 return false;
789 }
790 const onCopySuccess = function(e) {
791 // button target
792 const button = e.trigger;
793 // don't keep focus
794 button.blur();
795 // flash "checked"
796 button.classList.add('code-copy-button-checked');
797 var currentTitle = button.getAttribute("title");
798 button.setAttribute("title", "Copied!");
799 let tooltip;
800 if (window.bootstrap) {
801 button.setAttribute("data-bs-toggle", "tooltip");
802 button.setAttribute("data-bs-placement", "left");
803 button.setAttribute("data-bs-title", "Copied!");
804 tooltip = new bootstrap.Tooltip(button,
805 { trigger: "manual",
806 customClass: "code-copy-button-tooltip",
807 offset: [0, -8]});
808 tooltip.show();
809 }
810 setTimeout(function() {
811 if (tooltip) {
812 tooltip.hide();
813 button.removeAttribute("data-bs-title");
814 button.removeAttribute("data-bs-toggle");
815 button.removeAttribute("data-bs-placement");
816 }
817 button.setAttribute("title", currentTitle);
818 button.classList.remove('code-copy-button-checked');
819 }, 1000);
820 // clear code selection
821 e.clearSelection();
822 }
823 const getTextToCopy = function(trigger) {
824 const codeEl = trigger.previousElementSibling.cloneNode(true);
825 for (const childEl of codeEl.children) {
826 if (isCodeAnnotation(childEl)) {
827 childEl.remove();
828 }
829 }
830 return codeEl.innerText;
831 }
832 const clipboard = new window.ClipboardJS('.code-copy-button:not([data-in-quarto-modal])', {
833 text: getTextToCopy
834 });
835 clipboard.on('success', onCopySuccess);
836 if (window.document.getElementById('quarto-embedded-source-code-modal')) {
837 const clipboardModal = new window.ClipboardJS('.code-copy-button[data-in-quarto-modal]', {
838 text: getTextToCopy,
839 container: window.document.getElementById('quarto-embedded-source-code-modal')
840 });
841 clipboardModal.on('success', onCopySuccess);
842 }
843 var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
844 var mailtoRegex = new RegExp(/^mailto:/);
845 var filterRegex = new RegExp("https:\/\/github\.com\/your-org\/atdata");
846 var isInternal = (href) => {
847 return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
848 }
849 // Inspect non-navigation links and adorn them if external
850 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)');
851 for (var i=0; i<links.length; i++) {
852 const link = links[i];
853 if (!isInternal(link.href)) {
854 // undo the damage that might have been done by quarto-nav.js in the case of
855 // links that we want to consider external
856 if (link.dataset.originalHref !== undefined) {
857 link.href = link.dataset.originalHref;
858 }
859 }
860 }
861 function tippyHover(el, contentFn, onTriggerFn, onUntriggerFn) {
862 const config = {
863 allowHTML: true,
864 maxWidth: 500,
865 delay: 100,
866 arrow: false,
867 appendTo: function(el) {
868 return el.parentElement;
869 },
870 interactive: true,
871 interactiveBorder: 10,
872 theme: 'quarto',
873 placement: 'bottom-start',
874 };
875 if (contentFn) {
876 config.content = contentFn;
877 }
878 if (onTriggerFn) {
879 config.onTrigger = onTriggerFn;
880 }
881 if (onUntriggerFn) {
882 config.onUntrigger = onUntriggerFn;
883 }
884 window.tippy(el, config);
885 }
886 const noterefs = window.document.querySelectorAll('a[role="doc-noteref"]');
887 for (var i=0; i<noterefs.length; i++) {
888 const ref = noterefs[i];
889 tippyHover(ref, function() {
890 // use id or data attribute instead here
891 let href = ref.getAttribute('data-footnote-href') || ref.getAttribute('href');
892 try { href = new URL(href).hash; } catch {}
893 const id = href.replace(/^#\/?/, "");
894 const note = window.document.getElementById(id);
895 if (note) {
896 return note.innerHTML;
897 } else {
898 return "";
899 }
900 });
901 }
902 const xrefs = window.document.querySelectorAll('a.quarto-xref');
903 const processXRef = (id, note) => {
904 // Strip column container classes
905 const stripColumnClz = (el) => {
906 el.classList.remove("page-full", "page-columns");
907 if (el.children) {
908 for (const child of el.children) {
909 stripColumnClz(child);
910 }
911 }
912 }
913 stripColumnClz(note)
914 if (id === null || id.startsWith('sec-')) {
915 // Special case sections, only their first couple elements
916 const container = document.createElement("div");
917 if (note.children && note.children.length > 2) {
918 container.appendChild(note.children[0].cloneNode(true));
919 for (let i = 1; i < note.children.length; i++) {
920 const child = note.children[i];
921 if (child.tagName === "P" && child.innerText === "") {
922 continue;
923 } else {
924 container.appendChild(child.cloneNode(true));
925 break;
926 }
927 }
928 if (window.Quarto?.typesetMath) {
929 window.Quarto.typesetMath(container);
930 }
931 return container.innerHTML
932 } else {
933 if (window.Quarto?.typesetMath) {
934 window.Quarto.typesetMath(note);
935 }
936 return note.innerHTML;
937 }
938 } else {
939 // Remove any anchor links if they are present
940 const anchorLink = note.querySelector('a.anchorjs-link');
941 if (anchorLink) {
942 anchorLink.remove();
943 }
944 if (window.Quarto?.typesetMath) {
945 window.Quarto.typesetMath(note);
946 }
947 if (note.classList.contains("callout")) {
948 return note.outerHTML;
949 } else {
950 return note.innerHTML;
951 }
952 }
953 }
954 for (var i=0; i<xrefs.length; i++) {
955 const xref = xrefs[i];
956 tippyHover(xref, undefined, function(instance) {
957 instance.disable();
958 let url = xref.getAttribute('href');
959 let hash = undefined;
960 if (url.startsWith('#')) {
961 hash = url;
962 } else {
963 try { hash = new URL(url).hash; } catch {}
964 }
965 if (hash) {
966 const id = hash.replace(/^#\/?/, "");
967 const note = window.document.getElementById(id);
968 if (note !== null) {
969 try {
970 const html = processXRef(id, note.cloneNode(true));
971 instance.setContent(html);
972 } finally {
973 instance.enable();
974 instance.show();
975 }
976 } else {
977 // See if we can fetch this
978 fetch(url.split('#')[0])
979 .then(res => res.text())
980 .then(html => {
981 const parser = new DOMParser();
982 const htmlDoc = parser.parseFromString(html, "text/html");
983 const note = htmlDoc.getElementById(id);
984 if (note !== null) {
985 const html = processXRef(id, note);
986 instance.setContent(html);
987 }
988 }).finally(() => {
989 instance.enable();
990 instance.show();
991 });
992 }
993 } else {
994 // See if we can fetch a full url (with no hash to target)
995 // This is a special case and we should probably do some content thinning / targeting
996 fetch(url)
997 .then(res => res.text())
998 .then(html => {
999 const parser = new DOMParser();
1000 const htmlDoc = parser.parseFromString(html, "text/html");
1001 const note = htmlDoc.querySelector('main.content');
1002 if (note !== null) {
1003 // This should only happen for chapter cross references
1004 // (since there is no id in the URL)
1005 // remove the first header
1006 if (note.children.length > 0 && note.children[0].tagName === "HEADER") {
1007 note.children[0].remove();
1008 }
1009 const html = processXRef(null, note);
1010 instance.setContent(html);
1011 }
1012 }).finally(() => {
1013 instance.enable();
1014 instance.show();
1015 });
1016 }
1017 }, function(instance) {
1018 });
1019 }
1020 let selectedAnnoteEl;
1021 const selectorForAnnotation = ( cell, annotation) => {
1022 let cellAttr = 'data-code-cell="' + cell + '"';
1023 let lineAttr = 'data-code-annotation="' + annotation + '"';
1024 const selector = 'span[' + cellAttr + '][' + lineAttr + ']';
1025 return selector;
1026 }
1027 const selectCodeLines = (annoteEl) => {
1028 const doc = window.document;
1029 const targetCell = annoteEl.getAttribute("data-target-cell");
1030 const targetAnnotation = annoteEl.getAttribute("data-target-annotation");
1031 const annoteSpan = window.document.querySelector(selectorForAnnotation(targetCell, targetAnnotation));
1032 const lines = annoteSpan.getAttribute("data-code-lines").split(",");
1033 const lineIds = lines.map((line) => {
1034 return targetCell + "-" + line;
1035 })
1036 let top = null;
1037 let height = null;
1038 let parent = null;
1039 if (lineIds.length > 0) {
1040 //compute the position of the single el (top and bottom and make a div)
1041 const el = window.document.getElementById(lineIds[0]);
1042 top = el.offsetTop;
1043 height = el.offsetHeight;
1044 parent = el.parentElement.parentElement;
1045 if (lineIds.length > 1) {
1046 const lastEl = window.document.getElementById(lineIds[lineIds.length - 1]);
1047 const bottom = lastEl.offsetTop + lastEl.offsetHeight;
1048 height = bottom - top;
1049 }
1050 if (top !== null && height !== null && parent !== null) {
1051 // cook up a div (if necessary) and position it
1052 let div = window.document.getElementById("code-annotation-line-highlight");
1053 if (div === null) {
1054 div = window.document.createElement("div");
1055 div.setAttribute("id", "code-annotation-line-highlight");
1056 div.style.position = 'absolute';
1057 parent.appendChild(div);
1058 }
1059 div.style.top = top - 2 + "px";
1060 div.style.height = height + 4 + "px";
1061 div.style.left = 0;
1062 let gutterDiv = window.document.getElementById("code-annotation-line-highlight-gutter");
1063 if (gutterDiv === null) {
1064 gutterDiv = window.document.createElement("div");
1065 gutterDiv.setAttribute("id", "code-annotation-line-highlight-gutter");
1066 gutterDiv.style.position = 'absolute';
1067 const codeCell = window.document.getElementById(targetCell);
1068 const gutter = codeCell.querySelector('.code-annotation-gutter');
1069 gutter.appendChild(gutterDiv);
1070 }
1071 gutterDiv.style.top = top - 2 + "px";
1072 gutterDiv.style.height = height + 4 + "px";
1073 }
1074 selectedAnnoteEl = annoteEl;
1075 }
1076 };
1077 const unselectCodeLines = () => {
1078 const elementsIds = ["code-annotation-line-highlight", "code-annotation-line-highlight-gutter"];
1079 elementsIds.forEach((elId) => {
1080 const div = window.document.getElementById(elId);
1081 if (div) {
1082 div.remove();
1083 }
1084 });
1085 selectedAnnoteEl = undefined;
1086 };
1087 // Handle positioning of the toggle
1088 window.addEventListener(
1089 "resize",
1090 throttle(() => {
1091 elRect = undefined;
1092 if (selectedAnnoteEl) {
1093 selectCodeLines(selectedAnnoteEl);
1094 }
1095 }, 10)
1096 );
1097 function throttle(fn, ms) {
1098 let throttle = false;
1099 let timer;
1100 return (...args) => {
1101 if(!throttle) { // first call gets through
1102 fn.apply(this, args);
1103 throttle = true;
1104 } else { // all the others get throttled
1105 if(timer) clearTimeout(timer); // cancel #2
1106 timer = setTimeout(() => {
1107 fn.apply(this, args);
1108 timer = throttle = false;
1109 }, ms);
1110 }
1111 };
1112 }
1113 // Attach click handler to the DT
1114 const annoteDls = window.document.querySelectorAll('dt[data-target-cell]');
1115 for (const annoteDlNode of annoteDls) {
1116 annoteDlNode.addEventListener('click', (event) => {
1117 const clickedEl = event.target;
1118 if (clickedEl !== selectedAnnoteEl) {
1119 unselectCodeLines();
1120 const activeEl = window.document.querySelector('dt[data-target-cell].code-annotation-active');
1121 if (activeEl) {
1122 activeEl.classList.remove('code-annotation-active');
1123 }
1124 selectCodeLines(clickedEl);
1125 clickedEl.classList.add('code-annotation-active');
1126 } else {
1127 // Unselect the line
1128 unselectCodeLines();
1129 clickedEl.classList.remove('code-annotation-active');
1130 }
1131 });
1132 }
1133 const findCites = (el) => {
1134 const parentEl = el.parentElement;
1135 if (parentEl) {
1136 const cites = parentEl.dataset.cites;
1137 if (cites) {
1138 return {
1139 el,
1140 cites: cites.split(' ')
1141 };
1142 } else {
1143 return findCites(el.parentElement)
1144 }
1145 } else {
1146 return undefined;
1147 }
1148 };
1149 var bibliorefs = window.document.querySelectorAll('a[role="doc-biblioref"]');
1150 for (var i=0; i<bibliorefs.length; i++) {
1151 const ref = bibliorefs[i];
1152 const citeInfo = findCites(ref);
1153 if (citeInfo) {
1154 tippyHover(citeInfo.el, function() {
1155 var popup = window.document.createElement('div');
1156 citeInfo.cites.forEach(function(cite) {
1157 var citeDiv = window.document.createElement('div');
1158 citeDiv.classList.add('hanging-indent');
1159 citeDiv.classList.add('csl-entry');
1160 var biblioDiv = window.document.getElementById('ref-' + cite);
1161 if (biblioDiv) {
1162 citeDiv.innerHTML = biblioDiv.innerHTML;
1163 }
1164 popup.appendChild(citeDiv);
1165 });
1166 return popup.innerHTML;
1167 });
1168 }
1169 }
1170 });
1171 </script>
1172</div> <!-- /content -->
1173<footer class="footer">
1174 <div class="nav-footer">
1175 <div class="nav-footer-left">
1176<p>Built with <a href="https://quarto.org/">Quarto</a></p>
1177</div>
1178 <div class="nav-footer-center">
1179
1180 <div class="toc-actions d-sm-block d-md-none"><ul><li><a href="https://github.com/your-org/atdata/edit/main/api/PDSBlobStore.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>
1181 <div class="nav-footer-right">
1182<p>MIT License</p>
1183</div>
1184 </div>
1185</footer>
1186
1187
1188
1189
1190</body></html>