Offset 1, 4 lines modified | Offset 1, 4 lines modified | ||
1 | ·7c34c21c2462ac88d9ec87cdd3be2aca·12548·science·optional·asdftool_2.7.2-1_all.deb | 1 | ·7c34c21c2462ac88d9ec87cdd3be2aca·12548·science·optional·asdftool_2.7.2-1_all.deb |
2 | · | 2 | ·6b4509677279b8d8012a3eb4f6dd348d·244020·doc·optional·python-asdf-doc_2.7.2-1_all.deb |
3 | ·ab84bfa5bec17a1b6f0e903309028d95·333100·python·optional·python3-asdf_2.7.2-1_all.deb | 3 | ·ab84bfa5bec17a1b6f0e903309028d95·333100·python·optional·python3-asdf_2.7.2-1_all.deb |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | -rw-r--r--···0········0········0········4·2021-01-22·20:29:19.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2021-01-22·20:29:19.000000·debian-binary |
2 | -rw-r--r--···0········0········0·····4588·2021-01-22·20:29:19.000000·control.tar.xz | 2 | -rw-r--r--···0········0········0·····4588·2021-01-22·20:29:19.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0···2392 | 3 | -rw-r--r--···0········0········0···239240·2021-01-22·20:29:19.000000·data.tar.xz |
Offset 183, 19 lines modified | Offset 183, 19 lines modified | ||
183 | %TAG·!·tag:stsci.edu:asdf/ | 183 | %TAG·!·tag:stsci.edu:asdf/ |
184 | ---·!core/asdf-1.1.0 | 184 | ---·!core/asdf-1.1.0 |
185 | asdf_library:·!core/software-1.0.0·{author:·Space·Telescope·Science·Institute,·homepage:·'http://github.com/spacetelescope/asdf', | 185 | asdf_library:·!core/software-1.0.0·{author:·Space·Telescope·Science·Institute,·homepage:·'http://github.com/spacetelescope/asdf', |
186 | ··name:·asdf,·version:·2.7.2} | 186 | ··name:·asdf,·version:·2.7.2} |
187 | history: | 187 | history: |
188 | ··extensions: | 188 | ··extensions: |
189 | ··-·!core/extension_metadata-1.0.0 | 189 | ··-·!core/extension_metadata-1.0.0 |
190 | ····extension_class:·asdf.extension.BuiltinExtension | ||
191 | ····software:·!core/software-1.0.0·{name:·asdf,·version:·2.7.2} | ||
192 | ··-·!core/extension_metadata-1.0.0 | ||
193 | ····extension_class:·builtins.FractionExtension | 190 | ····extension_class:·builtins.FractionExtension |
194 | ····software:·!core/software-1.0.0·{name:·'',·version:·''} | 191 | ····software:·!core/software-1.0.0·{name:·'',·version:·''} |
192 | ··-·!core/extension_metadata-1.0.0 | ||
193 | ····extension_class:·asdf.extension.BuiltinExtension | ||
194 | ····software:·!core/software-1.0.0·{name:·asdf,·version:·2.7.2} | ||
195 | fraction:·!<tag:nowhere.org:custom/fraction-1.0.0>·[10,·3] | 195 | fraction:·!<tag:nowhere.org:custom/fraction-1.0.0>·[10,·3] |
196 | ... | 196 | ... |
197 | </pre></div> | 197 | </pre></div> |
198 | </div> | 198 | </div> |
199 | </div> | 199 | </div> |
200 | <div·class="section"·id="defining-custom-types"> | 200 | <div·class="section"·id="defining-custom-types"> |
201 | <h2>Defining·custom·types<a·class="headerlink"·href="#defining-custom-types"·title="Permalink·to·this·headline">¶</a></h2> | 201 | <h2>Defining·custom·types<a·class="headerlink"·href="#defining-custom-types"·title="Permalink·to·this·headline">¶</a></h2> |
Offset 289, 19 lines modified | Offset 289, 19 lines modified | ||
289 | %TAG·!·tag:stsci.edu:asdf/ | 289 | %TAG·!·tag:stsci.edu:asdf/ |
290 | ---·!core/asdf-1.1.0 | 290 | ---·!core/asdf-1.1.0 |
291 | asdf_library:·!core/software-1.0.0·{author:·Space·Telescope·Science·Institute,·homepage:·'http://github.com/spacetelescope/asdf', | 291 | asdf_library:·!core/software-1.0.0·{author:·Space·Telescope·Science·Institute,·homepage:·'http://github.com/spacetelescope/asdf', |
292 | ··name:·asdf,·version:·2.7.2} | 292 | ··name:·asdf,·version:·2.7.2} |
293 | history: | 293 | history: |
294 | ··extensions: | 294 | ··extensions: |
295 | ··-·!core/extension_metadata-1.0.0 | 295 | ··-·!core/extension_metadata-1.0.0 |
296 | ····extension_class:·asdf.extension.BuiltinExtension | ||
297 | ····software:·!core/software-1.0.0·{name:·asdf,·version:·2.7.2} | ||
298 | ··-·!core/extension_metadata-1.0.0 | ||
299 | ····extension_class:·builtins.FractionExtension | 296 | ····extension_class:·builtins.FractionExtension |
300 | ····software:·!core/software-1.0.0·{name:·'',·version:·''} | 297 | ····software:·!core/software-1.0.0·{name:·'',·version:·''} |
298 | ··-·!core/extension_metadata-1.0.0 | ||
299 | ····extension_class:·asdf.extension.BuiltinExtension | ||
300 | ····software:·!core/software-1.0.0·{name:·asdf,·version:·2.7.2} | ||
301 | fraction:·!<tag:nowhere.org:custom/fraction-1.0.0>·{denominator:·3,·numerator:·10} | 301 | fraction:·!<tag:nowhere.org:custom/fraction-1.0.0>·{denominator:·3,·numerator:·10} |
302 | ... | 302 | ... |
303 | </pre></div> | 303 | </pre></div> |
304 | </div> | 304 | </div> |
305 | </div> | 305 | </div> |
306 | <div·class="section"·id="serializing-more-complex-types"> | 306 | <div·class="section"·id="serializing-more-complex-types"> |
307 | <h3>Serializing·more·complex·types<a·class="headerlink"·href="#serializing-more-complex-types"·title="Permalink·to·this·headline">¶</a></h3> | 307 | <h3>Serializing·more·complex·types<a·class="headerlink"·href="#serializing-more-complex-types"·title="Permalink·to·this·headline">¶</a></h3> |
Offset 401, 19 lines modified | Offset 401, 19 lines modified | ||
401 | %TAG·!·tag:stsci.edu:asdf/ | 401 | %TAG·!·tag:stsci.edu:asdf/ |
402 | ---·!core/asdf-1.1.0 | 402 | ---·!core/asdf-1.1.0 |
403 | asdf_library:·!core/software-1.0.0·{author:·Space·Telescope·Science·Institute,·homepage:·'http://github.com/spacetelescope/asdf', | 403 | asdf_library:·!core/software-1.0.0·{author:·Space·Telescope·Science·Institute,·homepage:·'http://github.com/spacetelescope/asdf', |
404 | ··name:·asdf,·version:·2.7.2} | 404 | ··name:·asdf,·version:·2.7.2} |
405 | history: | 405 | history: |
406 | ··extensions: | 406 | ··extensions: |
407 | ··-·!core/extension_metadata-1.0.0 | 407 | ··-·!core/extension_metadata-1.0.0 |
408 | ····extension_class:·asdf.extension.BuiltinExtension | ||
409 | ····software:·!core/software-1.0.0·{name:·asdf,·version:·2.7.2} | ||
410 | ··-·!core/extension_metadata-1.0.0 | ||
411 | ····extension_class:·builtins.FractionExtension | 408 | ····extension_class:·builtins.FractionExtension |
412 | ····software:·!core/software-1.0.0·{name:·'',·version:·''} | 409 | ····software:·!core/software-1.0.0·{name:·'',·version:·''} |
410 | ··-·!core/extension_metadata-1.0.0 | ||
411 | ····extension_class:·asdf.extension.BuiltinExtension | ||
412 | ····software:·!core/software-1.0.0·{name:·asdf,·version:·2.7.2} | ||
413 | coordinate:·!<tag:nowhere.org:custom/fractional_2d_coord-1.0.0> | 413 | coordinate:·!<tag:nowhere.org:custom/fractional_2d_coord-1.0.0> |
414 | ··x:·!<tag:nowhere.org:custom/fraction-1.0.0>·{denominator:·7,·numerator:·22} | 414 | ··x:·!<tag:nowhere.org:custom/fraction-1.0.0>·{denominator:·7,·numerator:·22} |
415 | ··y:·!<tag:nowhere.org:custom/fraction-1.0.0>·{denominator:·113,·numerator:·355} | 415 | ··y:·!<tag:nowhere.org:custom/fraction-1.0.0>·{denominator:·113,·numerator:·355} |
416 | ... | 416 | ... |
417 | </pre></div> | 417 | </pre></div> |
418 | </div> | 418 | </div> |
419 | <p>Note·that·in·the·resulting·ASDF·file,·the·<code·class="docutils·literal·notranslate"><span·class="pre">x</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">y</span></code>·components·of | 419 | <p>Note·that·in·the·resulting·ASDF·file,·the·<code·class="docutils·literal·notranslate"><span·class="pre">x</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">y</span></code>·components·of |
Offset 134, 19 lines modified | Offset 134, 19 lines modified | ||
134 | ---·!core/asdf-1.1.0 | 134 | ---·!core/asdf-1.1.0 |
135 | asdf_library:·!core/software-1.0.0·{author:·Space·Telescope·Science·Institute, | 135 | asdf_library:·!core/software-1.0.0·{author:·Space·Telescope·Science·Institute, |
136 | homepage:·'http://github.com/spacetelescope/asdf', | 136 | homepage:·'http://github.com/spacetelescope/asdf', |
137 | ··name:·asdf,·version:·2.7.2} | 137 | ··name:·asdf,·version:·2.7.2} |
138 | history: | 138 | history: |
139 | ··extensions: | 139 | ··extensions: |
140 | ··-·!core/extension_metadata-1.0.0 | 140 | ··-·!core/extension_metadata-1.0.0 |
141 | ····extension_class:·asdf.extension.BuiltinExtension | ||
142 | ····software:·!core/software-1.0.0·{name:·asdf,·version:·2.7.2} | ||
143 | ··-·!core/extension_metadata-1.0.0 | ||
144 | ····extension_class:·builtins.FractionExtension | 141 | ····extension_class:·builtins.FractionExtension |
145 | ····software:·!core/software-1.0.0·{name:·'',·version:·''} | 142 | ····software:·!core/software-1.0.0·{name:·'',·version:·''} |
143 | ··-·!core/extension_metadata-1.0.0 | ||
144 | ····extension_class:·asdf.extension.BuiltinExtension | ||
145 | ····software:·!core/software-1.0.0·{name:·asdf,·version:·2.7.2} | ||
146 | fraction:·!<tag:nowhere.org:custom/fraction-1.0.0>·[10,·3] | 146 | fraction:·!<tag:nowhere.org:custom/fraction-1.0.0>·[10,·3] |
147 | ... | 147 | ... |
148 | *****·Defining·custom·types¶·***** | 148 | *****·Defining·custom·types¶·***** |
149 | In·the·example·above,·we·showed·how·to·create·an·extension·that·is·capable·of | 149 | In·the·example·above,·we·showed·how·to·create·an·extension·that·is·capable·of |
150 | serializing·fractions.Fraction.·The·custom·tag·type·that·we·created·was·defined | 150 | serializing·fractions.Fraction.·The·custom·tag·type·that·we·created·was·defined |
151 | as·a·subclass·of·asdf.CustomType. | 151 | as·a·subclass·of·asdf.CustomType. |
152 | ****·Custom·type·attributes¶·**** | 152 | ****·Custom·type·attributes¶·**** |
Offset 223, 19 lines modified | Offset 223, 19 lines modified | ||
223 | ---·!core/asdf-1.1.0 | 223 | ---·!core/asdf-1.1.0 |
224 | asdf_library:·!core/software-1.0.0·{author:·Space·Telescope·Science·Institute, | 224 | asdf_library:·!core/software-1.0.0·{author:·Space·Telescope·Science·Institute, |
225 | homepage:·'http://github.com/spacetelescope/asdf', | 225 | homepage:·'http://github.com/spacetelescope/asdf', |
226 | ··name:·asdf,·version:·2.7.2} | 226 | ··name:·asdf,·version:·2.7.2} |
227 | history: | 227 | history: |
228 | ··extensions: | 228 | ··extensions: |
229 | ··-·!core/extension_metadata-1.0.0 | 229 | ··-·!core/extension_metadata-1.0.0 |
230 | ····extension_class:·asdf.extension.BuiltinExtension | ||
231 | ····software:·!core/software-1.0.0·{name:·asdf,·version:·2.7.2} | ||
232 | ··-·!core/extension_metadata-1.0.0 | ||
233 | ····extension_class:·builtins.FractionExtension | 230 | ····extension_class:·builtins.FractionExtension |
234 | ····software:·!core/software-1.0.0·{name:·'',·version:·''} | 231 | ····software:·!core/software-1.0.0·{name:·'',·version:·''} |
232 | ··-·!core/extension_metadata-1.0.0 | ||
233 | ····extension_class:·asdf.extension.BuiltinExtension | ||
234 | ····software:·!core/software-1.0.0·{name:·asdf,·version:·2.7.2} | ||
235 | fraction:·!<tag:nowhere.org:custom/fraction-1.0.0>·{denominator:·3,·numerator: | 235 | fraction:·!<tag:nowhere.org:custom/fraction-1.0.0>·{denominator:·3,·numerator: |
236 | 10} | 236 | 10} |
237 | ... | 237 | ... |
238 | ****·Serializing·more·complex·types¶·**** | 238 | ****·Serializing·more·complex·types¶·**** |
239 | Sometimes·the·custom·types·that·we·wish·to·represent·in·ASDF·themselves·have | 239 | Sometimes·the·custom·types·that·we·wish·to·represent·in·ASDF·themselves·have |
240 | attributes·which·are·also·custom·types.·As·a·somewhat·contrived·example, | 240 | attributes·which·are·also·custom·types.·As·a·somewhat·contrived·example, |
241 | consider·a·2D·cartesian·coordinate·that·uses·fraction.Fraction·to·represent | 241 | consider·a·2D·cartesian·coordinate·that·uses·fraction.Fraction·to·represent |
Offset 322, 19 lines modified | Offset 322, 19 lines modified | ||
322 | ---·!core/asdf-1.1.0 | 322 | ---·!core/asdf-1.1.0 |
323 | asdf_library:·!core/software-1.0.0·{author:·Space·Telescope·Science·Institute, | 323 | asdf_library:·!core/software-1.0.0·{author:·Space·Telescope·Science·Institute, |
324 | homepage:·'http://github.com/spacetelescope/asdf', | 324 | homepage:·'http://github.com/spacetelescope/asdf', |
325 | ··name:·asdf,·version:·2.7.2} | 325 | ··name:·asdf,·version:·2.7.2} |
326 | history: | 326 | history: |
327 | ··extensions: | 327 | ··extensions: |
328 | ··-·!core/extension_metadata-1.0.0 | 328 | ··-·!core/extension_metadata-1.0.0 |
329 | ····extension_class:·asdf.extension.BuiltinExtension | ||
330 | ····software:·!core/software-1.0.0·{name:·asdf,·version:·2.7.2} | ||
331 | ··-·!core/extension_metadata-1.0.0 | ||
332 | ····extension_class:·builtins.FractionExtension | 329 | ····extension_class:·builtins.FractionExtension |
333 | ····software:·!core/software-1.0.0·{name:·'',·version:·''} | 330 | ····software:·!core/software-1.0.0·{name:·'',·version:·''} |
331 | ··-·!core/extension_metadata-1.0.0 | ||
332 | ····extension_class:·asdf.extension.BuiltinExtension | ||
333 | ····software:·!core/software-1.0.0·{name:·asdf,·version:·2.7.2} | ||
334 | coordinate:·!<tag:nowhere.org:custom/fractional_2d_coord-1.0.0> | 334 | coordinate:·!<tag:nowhere.org:custom/fractional_2d_coord-1.0.0> |
335 | ··x:·!<tag:nowhere.org:custom/fraction-1.0.0>·{denominator:·7,·numerator:·22} | 335 | ··x:·!<tag:nowhere.org:custom/fraction-1.0.0>·{denominator:·7,·numerator:·22} |
336 | ··y:·!<tag:nowhere.org:custom/fraction-1.0.0>·{denominator:·113,·numerator: | 336 | ··y:·!<tag:nowhere.org:custom/fraction-1.0.0>·{denominator:·113,·numerator: |
337 | 355} | 337 | 355} |
338 | ... | 338 | ... |
339 | Note·that·in·the·resulting·ASDF·file,·the·x·and·y·components·of·our·new | 339 | Note·that·in·the·resulting·ASDF·file,·the·x·and·y·components·of·our·new |
340 | fraction_2d_coord·type·are·tagged·as·fraction-1.0.0. | 340 | fraction_2d_coord·type·are·tagged·as·fraction-1.0.0. |