Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix APE6 example for round-tripping #49

Merged
merged 3 commits into from
Mar 8, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions APE6.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ author: Tom Aldcroft

date-created: 2014 April 12

date-last-revised: 2017 November 8
date-last-revised: 2019 March 8

date-accepted: 2015 January 26

Expand Down Expand Up @@ -301,7 +301,7 @@ To illustrate the full features of ECSV we create a table with meta data

>>> from collections import OrderedDict
>>> import astropy.units as u
>>> t = Table([[1, 4], [2, 3]], names=['a', 'b'])
>>> t = Table([[1.0, 4.0], [2, 3]], names=['a', 'b'])
>>> t.meta['keywords'] = OrderedDict([('z_key1', 'val1'), ('a_key2', 'val2')])
>>> t.meta['comments'] = ['Comment 1', 'Comment 2', 'Comment 3']
>>> t['a'].unit = u.m / u.s
Expand All @@ -316,7 +316,7 @@ Now we write the table to standard out::
# %ECSV 0.9
# ---
# datatype:
# - {name: a, unit: m / s, datatype: int64, format: '%5.2f', description: Column A}
# - {name: a, unit: m / s, datatype: float64, format: '%5.2f', description: Column A}
# - name: b
# datatype: int64
# meta:
Expand All @@ -326,6 +326,7 @@ Now we write the table to standard out::
# - {z_key1: val1}
# - {a_key2: val2}
# - comments: [Comment 1, Comment 2, Comment 3]
# schema: astropy-2.0
a b
1.00 2
4.00 3
Expand Down