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 | ·dccf66cdbaa89a16693ae6ca0510357e·244012·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···239232·2021-01-22·20:29:19.000000·data.tar.xz |
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:·builtins.FractionExtension | ||
297 | ····software:·!core/software-1.0.0·{name:·'',·version:·''} | ||
298 | ··-·!core/extension_metadata-1.0.0 | ||
299 | ····extension_class:·asdf.extension.BuiltinExtension | 296 | ····extension_class:·asdf.extension.BuiltinExtension |
300 | ····software:·!core/software-1.0.0·{name:·asdf,·version:·2.7.2} | 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 | ||
300 | ····software:·!core/software-1.0.0·{name:·'',·version:·''} | ||
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 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:·builtins.FractionExtension | ||
231 | ····software:·!core/software-1.0.0·{name:·'',·version:·''} | ||
232 | ··-·!core/extension_metadata-1.0.0 | ||
233 | ····extension_class:·asdf.extension.BuiltinExtension | 230 | ····extension_class:·asdf.extension.BuiltinExtension |
234 | ····software:·!core/software-1.0.0·{name:·asdf,·version:·2.7.2} | 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 | ||
234 | ····software:·!core/software-1.0.0·{name:·'',·version:·''} | ||
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 |