Skip to content

Commit

Permalink
Update for new year copyright
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremysanders committed Jan 9, 2014
1 parent 1f47e45 commit 4ed28c2
Show file tree
Hide file tree
Showing 8 changed files with 110 additions and 23 deletions.
111 changes: 99 additions & 12 deletions Documents/manual.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</author>

<copyright>
<year>2013</year>
<year>2014</year>
</copyright>

<legalnotice>
Expand Down Expand Up @@ -1749,7 +1749,8 @@ SetData('x', data[0]*0.1, *data[1:])

<para><command>ImportFile('filename', 'descriptor',
linked=False, prefix='', suffix='',
encoding='utf_8')</command></para>
encoding='utf_8',
renames={})</command></para>

<para>Imports data from a file. The arguments are the filename
to load data from and the descriptor.</para>
Expand All @@ -1765,7 +1766,9 @@ SetData('x', data[0]*0.1, *data[1:])
optional.</para>

<para>If prefix and/or suffix are set, then the prefix and
suffix are added to each dataset name.</para>
suffix are added to each dataset name. If set, renames maps
imported dataset names to final dataset names after
import.</para>

<para>Returns: A tuple containing a list of the imported
datasets and the number of conversions which failed for a
Expand All @@ -1783,7 +1786,7 @@ SetData('x', data[0]*0.1, *data[1:])
xrange=(a,b), yrange=(c,d), invertrows=True/False,
invertcols=True/False, transpose=True/False,
prefix='', suffix='', linked=False,
encoding='utf8')</command></para>
encoding='utf8', renames={})</command></para>

<para>Imports two-dimensional data from a file. The required
arguments are the filename to load data from and the dataset
Expand All @@ -1805,7 +1808,8 @@ encoding='utf8')</command></para>
Veusz. transpose swaps the rows and columns.</para>

<para>If prefix and/or suffix are set, they are prepended or
appended to imported dataset names.</para>
appended to imported dataset names. If set, renames maps imported
dataset names to final dataset names after import.</para>

<para>If the linked parameter is True, then the datasets are
linked to the imported file, and are not saved within a saved
Expand Down Expand Up @@ -1838,7 +1842,8 @@ encoding='utf8')</command></para>
<anchor id="Command.ImportFileCSV" />

<para><command>ImportFileCSV('filename', readrows=False,
dsprefix='', dssuffix='', linked=False, encoding='utf_8')
dsprefix='', dssuffix='', linked=False, encoding='utf_8',
renames={})
</command></para>

<para>This command imports data from a CSV format file. Data
Expand All @@ -1848,7 +1853,87 @@ encoding='utf8')</command></para>
prepended to each dataset name and dssuffix is added (the
prefix option is deprecated and also addeds an underscore to
the dataset name). linked specifies whether the data will be
linked to the file.
linked to the file. renames, if set, provides new names for
datasets after import.
</para>

</section>

<section>
<title>ImportFileHDF5</title>
<anchor id="Command.ImportFileHDF5" />

<para>
<command>ImportFileHDF5(filename, items, namemap={},
slices={}, twodranges={}, twod_as_oned=set([]),
convert_datetime={}, prefix='', suffix='', renames={},
linked=False)</command>
</para>

<para>
Import data from a HDF5 file. items is a list of groups and
datasets which can be imported. If a group is imported, all
child datasets are imported. namemap maps an input dataset
to a veusz dataset name. Special suffixes can be used on the
veusz dataset name to indicate that the dataset should be
imported specially.
</para>

<programlisting>
'foo (+)': import as +ve error for dataset foo
'foo (-)': import as -ve error for dataset foo
'foo (+-)': import as symmetric error for dataset foo
</programlisting>

<para>
slices is an optional dict specifying slices to be selected
when importing. For each dataset to be sliced, provide a
tuple of values, one for each dimension. The values should
be a single integer to select that index, or a tuple (start,
stop, step), where the entries are integers or None.
</para>

<para> twodranges is an optional dict giving data ranges for
2d datasets. It maps names to (minx, miny, maxx, maxy).
twod_as_oned: optional set containing 2d datasets to attempt
to read as 1d
</para>

<para>
convert_datetime should be a dict mapping hdf name to
specify date/time importing. For a 1d numeric dataset: if
this is set to 'veusz', this is the number of seconds since
2009-01-01, if this is set to 'unix', this is the number of
seconds since 1970-01-01. For a text dataset, this should
give the format of the date/time,
e.g. 'YYYY-MM-DD|T|hh:mm:ss' or 'iso' for iso format.
</para>

<para>
renames is a dict mapping old to new dataset names, to be
renamed after importing. linked specifies that the dataset
is linked to the file.
</para>

<programlisting>
Attributes can be used in datasets to override defaults:
'vsz_name': set to override name for dataset in veusz
'vsz_slice': slice on importing (use format "start:stop:step,...")
'vsz_range': should be 4 item array to specify x and y ranges:
[minx, miny, maxx, maxy]
'vsz_twod_as_oned': treat 2d dataset as 1d dataset with errors
'vsz_convert_datetime': treat as date/time, set to one of the values
above.
</programlisting>

<para>
For compound datasets these attributes can be given on a
per-column basis using attribute names
vsz_attributename_columnname.
</para>

<para>
Returns: list of imported datasets
</para>

</section>
Expand All @@ -1859,13 +1944,14 @@ encoding='utf8')</command></para>

<para><command>ImportFilePlugin('pluginname', 'filename',
**pluginargs, linked=False, encoding='utf_8',
prefix='', suffix='')</command></para>
prefix='', suffix='', renames={})</command></para>

<para>
Import data from file using import plugin 'pluginname'. The
arguments to the plugin are given, plus optionally a text
encoding, and prefix and suffix to prepend or append to
dataset names.
dataset names. renames, if set, provides new names for
datasets after import.
</para>

</section>
Expand All @@ -1876,7 +1962,7 @@ encoding='utf8')</command></para>

<para><command>ImportFITSFile(datasetname, filename, hdu,
datacol='A', symerrcol='B', poserrcol='C', negerrcol='D',
linked=True/False)</command></para>
linked=True/False, renames={})</command></para>

<para>This command does a simple import from a FITS file. The
FITS format is used within the astronomical community to transport
Expand All @@ -1902,7 +1988,8 @@ name).</para>

<para>If linked is True, then the dataset is not saved with a
saved document, but is reread from the data file each time the
document is loaded.</para>
document is loaded. renames, if set, provides new names for
datasets after import.</para>
</section>

<section>
Expand Down Expand Up @@ -2549,7 +2636,7 @@ Root
\-- contour1 (contour widget)
\-- x (axis widget)
\-- y (axis widget)
</programlisting>
</programlisting>
<para>Here the user could access the xData setting node of the
xy1 widget using <literal>Root.page1.graph2.xy1.xData</literal>. To
actually read or modify the value of a setting, you should get
Expand Down
2 changes: 1 addition & 1 deletion Documents/veusz.pod
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ This manual page was written by Jeremy Sanders <[email protected]>.

=head1 COPYRIGHT

Copyright (C) 2003-2013 Jeremy Sanders <[email protected]>.
Copyright (C) 2003-2014 Jeremy Sanders <[email protected]>.

This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Expand Down
2 changes: 1 addition & 1 deletion Documents/veusz_listen.pod
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ This manual page was written by Jeremy Sanders <[email protected]>.

=head1 COPYRIGHT

Copyright (C) 2003-2013 Jeremy Sanders <[email protected]>.
Copyright (C) 2003-2014 Jeremy Sanders <[email protected]>.

This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Expand Down
7 changes: 4 additions & 3 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,17 @@ manipulation and editing of datasets. Data can be captured from
external sources such as Internet sockets or other programs.

Changes in 1.20:
* Add HDF5 file import
* Add HDF5 file data import
* Allow expressions to be edited for linked 2D datasets
* Add support for 2D datasets with irregular gridpoints
* Add CSV file support to 2D data import
* Add 2D data CSV import
* Allow safe renaming of linked datasets

Bug fixes:
* When capturing data from a file/named pipe, do not stop when no
more data are available
* Fixes mangling of text in saved files using Windows binary
* Fix encoding for standard file import

Features of package:
Plotting features:
Expand Down Expand Up @@ -96,7 +97,7 @@ Optional requirements:
SAMPy (optional for SAMP support)
http://pypi.python.org/pypi/sampy/

Veusz is Copyright (C) 2003-2013 Jeremy Sanders <[email protected]>
Veusz is Copyright (C) 2003-2014 Jeremy Sanders <[email protected]>
and contributors.
It is licenced under the GPL (version 2 or greater).

Expand Down
2 changes: 1 addition & 1 deletion ui/about.ui
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
<widget class="QLabel" name="copyrightlabel">
<property name="text">
<string>&lt;b style=&quot;color:#800080&quot; &gt;Veusz %(version)s&lt;/b&gt;&lt;br&gt;
Copyright © 2003-2013 Jeremy Sanders and contributors&lt;br&gt;
Copyright © 2003-2014 Jeremy Sanders and contributors&lt;br&gt;
&lt;a href=&quot;http://home.gna.org/veusz/&quot;&gt;http://home.gna.org/veusz/&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
Main author:&lt;br&gt;
Expand Down
3 changes: 1 addition & 2 deletions veusz/dataimport/dialog_hdf5.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,7 @@ def data(self, column, role):
else qt4.Qt.Unchecked )

elif role == qt4.Qt.ToolTipRole and column == _ColToImport:
return _("Check to import all datasets under\n"
"this group under their original names")
return _("Check to import all datasets under this group")

return None

Expand Down
4 changes: 2 additions & 2 deletions veusz/veusz_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@

copyr='''Veusz %s
Copyright (C) Jeremy Sanders 2003-2013 <[email protected]> and contributors
Copyright (C) Jeremy Sanders 2003-2014 <[email protected]> and contributors
Licenced under the GNU General Public Licence (version 2 or greater)
'''

splashcopyr='''<b><font color="purple">Veusz %s<br></font></b>
Copyright (C) Jeremy Sanders 2003-2013 and contributors<br>
Copyright (C) Jeremy Sanders 2003-2014 and contributors<br>
Licenced under the GPL (version 2 or greater)
'''

Expand Down
2 changes: 1 addition & 1 deletion veusz/windows/consolewindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def keyPressEvent(self, key):
self.setText(text)

introtext=_(u'''Welcome to <b><font color="purple">Veusz %s</font></b> --- a scientific plotting application.<br>
Copyright \u00a9 2003-2013 Jeremy Sanders &lt;[email protected]&gt; and contributors.<br>
Copyright \u00a9 2003-2014 Jeremy Sanders &lt;[email protected]&gt; and contributors.<br>
Veusz comes with ABSOLUTELY NO WARRANTY. Veusz is Free Software, and you are<br>
welcome to redistribute it under certain conditions. Enter "GPL()" for details.<br>
This window is a Python command line console and acts as a calculator.<br>
Expand Down

0 comments on commit 4ed28c2

Please sign in to comment.