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 | ·e | 2 | ·caea142c5f916fdab719a2ed793361dd·244000·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···23922 | 3 | -rw-r--r--···0········0········0···239220·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 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 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. |