summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
W. Trevor King [Tue, 2 Aug 2016 03:53:05 +0000 (20:53 -0700)]
.update-copyright.conf: Update configuration for update-copyright 0.6.2
W. Trevor King [Tue, 2 Aug 2016 04:24:52 +0000 (21:24 -0700)]
setup.py: Claim compatibility through 3.5
I haven't actually tested all of these, but I doubt I did anything so
magical that support has been dropped in the meantime ;). It would be
nice to drop the doctests [1], but until then testing Python 3 is
going to be difficult.
[1]: https://github.com/wking/igor/pull/1#issuecomment-
190309065
W. Trevor King [Tue, 2 Aug 2016 04:02:50 +0000 (21:02 -0700)]
igor.script: Replace ArgumentParser(version=...) with a version argument
ArgumentParser lost its undocumented version argument in 3.3.0
[1,2,3]. The version action is the documented way to do this [4].
[1]: http://bugs.python.org/issue13248
[2]: https://hg.python.org/cpython/rev/
5393382c1b1d
[3]: https://hg.python.org/cpython/file/
374f501f4567/Misc/HISTORY#l477
[4]: https://docs.python.org/3/library/argparse.html#action
W. Trevor King [Wed, 8 Apr 2015 17:19:18 +0000 (10:19 -0700)]
test/test.py: Fix ['Column0'] -> ['', 'Column0']
Catch up with
551d9bca (Fix DynamicLabelsField parsing algorithm.,
2012-08-20).
W. Trevor King [Thu, 11 Oct 2012 11:33:49 +0000 (07:33 -0400)]
README: fix reStructuredText for `pip install` example.
W. Trevor King [Mon, 20 Aug 2012 18:01:36 +0000 (14:01 -0400)]
Fix DynamicLabelsField parsing algorithm.
The old algorithm collapsed null bytes early on. The new algorithm
keeps the null bytes until the 32-byte chunks have been read.
Parsing hooke/test/data/vclamp_mfp3d/Line0004Point0001.ibw with the
old algorithm gave labels as
[[], ['RawDeflLVDT'], [], []]
The new algorithm gives
[[], ['', 'Raw', 'Defl', 'LVDT'], [], []]
W. Trevor King [Thu, 26 Jul 2012 18:23:23 +0000 (14:23 -0400)]
Clear up copyright ambiguity by changing to LGPLv3+.
On Thu, Jul 26, 2012 at 09:25:20AM -0700, Paul Kienzle wrote:
> Your .py files are licensed as LGPL but the overall project is
> listed as GPL. Much of the python numerics world is BSD licensed,
> so LGPL is a closer match to the community. Do you mind changing
> the project to LGPL?
W. Trevor King [Tue, 24 Jul 2012 16:04:12 +0000 (12:04 -0400)]
igorpackedexperiment.py doesn't use numpy, so don't import it.
W. Trevor King [Sun, 22 Jul 2012 15:30:40 +0000 (11:30 -0400)]
Use modern {} formatting instead of %s for setup.py's provides option.
W. Trevor King [Sun, 22 Jul 2012 15:29:47 +0000 (11:29 -0400)]
Add igorpackedexperiment.py to setup.py script list.
W. Trevor King [Sun, 22 Jul 2012 14:32:09 +0000 (10:32 -0400)]
Fix homepage url formatting (%s -> {}) in setup.py.
W. Trevor King [Sat, 21 Jul 2012 19:39:21 +0000 (15:39 -0400)]
Add closing semicolons (;) to C structures in docstrings.
W. Trevor King [Sat, 21 Jul 2012 19:21:37 +0000 (15:21 -0400)]
Add an alias from gmail -> nist for Paul Kienzle to .mailmap.
W. Trevor King [Sat, 21 Jul 2012 16:24:50 +0000 (12:24 -0400)]
Carry on plotting in scripts if one of the plots fails (e.g. for text waves).
W. Trevor King [Sat, 21 Jul 2012 16:20:32 +0000 (12:20 -0400)]
Use an explicit .array attribute to determine if fields are arrays.
This improves on the old method of assuming they were scalar if
.item_count was 1.
W. Trevor King [Sat, 21 Jul 2012 15:30:12 +0000 (11:30 -0400)]
Add -p/--plot option so scripts will plot waves.
W. Trevor King [Sat, 21 Jul 2012 15:17:08 +0000 (11:17 -0400)]
Add igor.packed.walk for traversing a packed experiment filesystem.
W. Trevor King [Sat, 21 Jul 2012 14:04:03 +0000 (10:04 -0400)]
Add AUTHORS (generated by update-copyright.py) to .gitignore.
W. Trevor King [Sat, 21 Jul 2012 14:01:09 +0000 (10:01 -0400)]
Add trove classifiers for Python 2.7 and 3.2 to setup.py.
The tests pass on Python 2.7, and all the failures on Python 3.2 are
string/bytes display issues.
W. Trevor King [Sat, 21 Jul 2012 13:54:20 +0000 (09:54 -0400)]
Fixes to string/byte handling for Python 3 compatibility.
I don't know if encoding information is embedded in the IGOR files or
not. Currently the stock parser just leaves everything it reads in in
bytes. For compatibility, the igorpy module attempts to convert those
byte strings to Unicode, but it just assumes that the encoding used in
the file matches the locale or default encoding used by your system.
This could be a portability issue. Until commit
commit
fe7006e3e2d741b6d80767b1aac53394ff1e7e76
Author: W. Trevor King <wking@tremily.us>
Date: Sat Jul 21 07:50:09 2012 -0400
Replace igor.igorpy parsing with translations from igor.packed.load.
The igorpy parser used sys.getfilesystemencoding() to guess the
encoding, but that encoding is actually used to encode file names, not
file contents. locale.getpreferredencoding is a better guess, but
it's still just a guess.
W. Trevor King [Sat, 21 Jul 2012 13:48:09 +0000 (09:48 -0400)]
Convert exception.message -> exception.args[0] for Python 3 compatibility.
Python 3 exceptions no longer have a .message attribute.
W. Trevor King [Sat, 21 Jul 2012 13:37:52 +0000 (09:37 -0400)]
Add W_plrX5.data_units check to test-igorpy.py.
W. Trevor King [Sat, 21 Jul 2012 13:12:22 +0000 (09:12 -0400)]
Use integer division when calculating DynamicStringIndicesDataField count.
In Python 3, the floating point division lead to:
Traceback (most recent call last):
...
File ".../igor/struct.py", line 255, in unpack_data
items = [next(iterator) for i in range(self.arg_count)]
TypeError: 'numpy.float64' object cannot be interpreted as an integer
W. Trevor King [Sat, 21 Jul 2012 13:07:36 +0000 (09:07 -0400)]
Convert buffer(...) -> bytes(...) for Python 3 compatibility.
W. Trevor King [Sat, 21 Jul 2012 13:04:18 +0000 (09:04 -0400)]
Add igor.util._ord for Python 3 compatibility.
W. Trevor King [Sat, 21 Jul 2012 12:53:42 +0000 (08:53 -0400)]
Use integer division in Field.indexes for Python 3 compatibility.
W. Trevor King [Sat, 21 Jul 2012 12:48:00 +0000 (08:48 -0400)]
Python 3 scraps the iter(...).next() method, so use next(iter(...)).
W. Trevor King [Sat, 21 Jul 2012 12:42:10 +0000 (08:42 -0400)]
Don't use u'...' syntax in igor.igorpy.
This breaks Python 2 Unicode handling, but it allows igorpy to be used
in its raw form by Python 3.
W. Trevor King [Sat, 21 Jul 2012 12:40:44 +0000 (08:40 -0400)]
Remove struct._buffer because I don't use it anymore.
W. Trevor King [Sat, 21 Jul 2012 12:33:01 +0000 (08:33 -0400)]
Add update-copyright blurb to the README (+minor typo fixes).
W. Trevor King [Sat, 21 Jul 2012 12:30:08 +0000 (08:30 -0400)]
Ran update-copyright.py.
W. Trevor King [Sat, 21 Jul 2012 12:18:14 +0000 (08:18 -0400)]
Pull common script code into igor.script and add bin/igorpackedexperiment.py.
To avoid conflicts with the build-in `-v` `--version` argument, the
short form of `--verbose` is now `-V`.
W. Trevor King [Sat, 21 Jul 2012 11:59:58 +0000 (07:59 -0400)]
Use DebuggingStream for any LOG.level <= DEBUG (not just ==).
W. Trevor King [Sat, 21 Jul 2012 11:56:49 +0000 (07:56 -0400)]
Avoid expensive pformating in DynamicStructure.unpack_stream unless required.
If we're not going to be printing the formatted data in the log, don't
bother calculating it. On my system, this speeds up the loading of
polar-graphs-demo.pxp by a factor of 10.
W. Trevor King [Sat, 21 Jul 2012 11:50:09 +0000 (07:50 -0400)]
Replace igor.igorpy parsing with translations from igor.packed.load.
W. Trevor King [Sat, 21 Jul 2012 11:48:54 +0000 (07:48 -0400)]
Add 'not enough data...' errors to packed.load().
W. Trevor King [Fri, 20 Jul 2012 20:05:18 +0000 (16:05 -0400)]
Add test-igorpy.py for testing igor.igorpy.
W. Trevor King [Fri, 20 Jul 2012 20:03:28 +0000 (16:03 -0400)]
Use LOG to print helpful messages in test.py.
W. Trevor King [Fri, 20 Jul 2012 19:27:23 +0000 (15:27 -0400)]
Point out that test/data is not bundled.
W. Trevor King [Fri, 20 Jul 2012 19:25:22 +0000 (15:25 -0400)]
Add COPYING file with GPLv3 text.
W. Trevor King [Fri, 20 Jul 2012 19:22:34 +0000 (15:22 -0400)]
Update igorbinarywave.py to use dynamic structure interface.
W. Trevor King [Fri, 20 Jul 2012 19:15:42 +0000 (15:15 -0400)]
Initial merge with igor.py, still need to integrate code.
W. Trevor King [Fri, 20 Jul 2012 18:50:09 +0000 (14:50 -0400)]
Rework igor.struct to support dynamic structures.
Between binarywave and record.variables, there was a good deal of
parsing that was conditional on previously parsed data. Rather than
continue writing spaghetti code to handle each specific case, I've
taken a stab at a general framework for updating structures during
parsing (DynamicStructure and DynamicField). The docstrings should
explain how they work. The implementation still has a few holes, but
it works on each of the files in my test suite.
W. Trevor King [Fri, 20 Jul 2012 18:46:08 +0000 (14:46 -0400)]
Add igor.LOG for easier debugging.
W. Trevor King [Thu, 19 Jul 2012 14:49:40 +0000 (10:49 -0400)]
fix record.base
W. Trevor King [Thu, 19 Jul 2012 14:43:16 +0000 (10:43 -0400)]
Use variable names to store variables in the filesystem (vs. VariablesRecord).
W. Trevor King [Thu, 19 Jul 2012 14:20:53 +0000 (10:20 -0400)]
Store wave, bin_info, and wave_info separately in WaveRecord.
This makes more sense than storing them as a tuple.
Also, use wave_record.wave_info['bname'] as the name for storing the
wave in the filesystem view returned by packed.load.
W. Trevor King [Thu, 19 Jul 2012 13:56:47 +0000 (09:56 -0400)]
Read sIndices as uint32's in binarywave.load.
W. Trevor King [Thu, 19 Jul 2012 13:30:28 +0000 (09:30 -0400)]
Implement the folder records and filesystem reconstruction.
W. Trevor King [Thu, 19 Jul 2012 12:33:14 +0000 (08:33 -0400)]
Implement the plain-text ProcedureRecord.
W. Trevor King [Thu, 19 Jul 2012 12:31:11 +0000 (08:31 -0400)]
Implement the plain-text HistoryRecord, RecreationRecord, and GetHistoryRecord.
W. Trevor King [Thu, 19 Jul 2012 12:14:04 +0000 (08:14 -0400)]
Split record handling into modules and implement VariablesRecord.
W. Trevor King [Wed, 18 Jul 2012 22:20:52 +0000 (18:20 -0400)]
struct: Add support for zero-count Fields.
W. Trevor King [Wed, 18 Jul 2012 20:34:05 +0000 (16:34 -0400)]
Extend igor.struct.Structure and .Field to support nesting.
W. Trevor King [Tue, 17 Jul 2012 12:59:17 +0000 (08:59 -0400)]
Move need_to_reorder_bytes from binarywave to util.
We'll be needing it for packed.load, so it's not binarywave-specific.
W. Trevor King [Tue, 17 Jul 2012 12:00:03 +0000 (08:00 -0400)]
WaveRecord now loads waves as WaveRecord.wave.
W. Trevor King [Tue, 17 Jul 2012 11:49:06 +0000 (07:49 -0400)]
API cleanup for binarywave (loadibw->load, move checksum to util, ...).
Also moved byte_order to the util module and renamed a few functions
internal to the binarywave module so they start with an underscore.
The loadibw -> load (and saveibw -> save) change is because
from igor.binarywave import load
gives you enough of an idea about what you're importing. If you want
to keep it explicit in your client module, use
from igor.binarywave import load as loadibw
which we do in the test.py module.
W. Trevor King [Tue, 17 Jul 2012 11:32:33 +0000 (07:32 -0400)]
Stub out packed experiment (.pxp) reading.
W. Trevor King [Tue, 17 Jul 2012 03:23:47 +0000 (23:23 -0400)]
Split struct and util modules out of binarywave.
W. Trevor King [Tue, 17 Jul 2012 03:02:11 +0000 (23:02 -0400)]
Add the test suite that's been driving today's changes.
Samples are from TN003.zip, downloaded from
ftp://www.wavemetrics.net/IgorPro/Technical_Notes/TN003.zip
W. Trevor King [Tue, 17 Jul 2012 03:01:18 +0000 (23:01 -0400)]
Preliminary support for dependent formula waves.
W. Trevor King [Tue, 17 Jul 2012 02:40:10 +0000 (22:40 -0400)]
Add support for text waves.
I'm confident in the bytes -> strings conversion, but not entirely
sure how the strings get mapped into multidimensional arrays.
W. Trevor King [Tue, 17 Jul 2012 02:01:57 +0000 (22:01 -0400)]
Add support for zero-length waves.
W. Trevor King [Mon, 16 Jul 2012 20:28:43 +0000 (16:28 -0400)]
Restore native byte order before running need_to_reorder_bytes.
Otherwise an earier switch to a non-native byte ordering will confuse
the current load.
W. Trevor King [Mon, 16 Jul 2012 19:51:14 +0000 (15:51 -0400)]
Pull null-buffer check out into its own function: binarywave.assert_null.
W. Trevor King [Mon, 16 Jul 2012 19:17:03 +0000 (15:17 -0400)]
Upgrade to Python 2.7+ string formatting.
W. Trevor King [Mon, 16 Jul 2012 18:56:43 +0000 (14:56 -0400)]
Split igorbinarywave.py off of Hooke into its own package.
W. Trevor King [Thu, 28 Oct 2010 16:39:29 +0000 (12:39 -0400)]
Add -n/--not-strict to igorbinarywave.py (currently for IBW files with non-empty padding).
W. Trevor King [Wed, 8 Sep 2010 14:30:28 +0000 (10:30 -0400)]
Move hooke.driver.igorbinarywave to hooke.util.igorbinarywave.
It's a utility for the MFP3D driver, not a driver in its own right.
W. Trevor King [Tue, 3 Aug 2010 00:10:15 +0000 (20:10 -0400)]
Ran update_copyright.py
W. Trevor King [Fri, 4 Jun 2010 07:28:19 +0000 (03:28 -0400)]
Added post-data optional field processing to igorbinarywave.loadibw.
W. Trevor King [Fri, 4 Jun 2010 06:46:11 +0000 (02:46 -0400)]
Automatically split version 5 Igor wave files into columns
W. Trevor King [Fri, 4 Jun 2010 05:16:51 +0000 (01:16 -0400)]
Ran update_copyright.py on igorbinarywave.py
W. Trevor King [Fri, 4 Jun 2010 05:15:46 +0000 (01:15 -0400)]
Add hooke.driver.igorbinarywave so Hooke can read Igor files.
W. Trevor King [Mon, 16 Jul 2012 17:15:34 +0000 (13:15 -0400)]
Split IGOR handling out into its own repository.
Paul Kienzle [Mon, 17 Oct 2011 18:47:34 +0000 (14:47 -0400)]
fix doc typo
Paul Kienzle [Sat, 15 Oct 2011 01:03:15 +0000 (21:03 -0400)]
acknowledge patch author
Paul Kienzle [Sat, 15 Oct 2011 00:59:55 +0000 (20:59 -0400)]
release notes
Paul Kienzle [Sat, 15 Oct 2011 00:27:32 +0000 (20:27 -0400)]
bump version number and push to pypi
Paul Kienzle [Sat, 15 Oct 2011 00:23:59 +0000 (20:23 -0400)]
Use IgorObject as base; make sure subfolder name is valid before using it as an attribute
Paul Kienzle [Fri, 14 Oct 2011 23:40:55 +0000 (19:40 -0400)]
Merge branch 'master' of github.com:reflectometry/igor.py
pkienzle [Fri, 14 Oct 2011 23:41:49 +0000 (16:41 -0700)]
Merge pull request #2 from valhallasw/master
Several commits, including fix for issue 1 (fixes #1, fixes #2)
Merlijn van Deen (valhallasw) [Mon, 26 Sep 2011 08:43:00 +0000 (10:43 +0200)]
(formatting) added extra newline
Merlijn van Deen (valhallasw) [Mon, 26 Sep 2011 08:41:41 +0000 (10:41 +0200)]
Allow subfolders to be reached as attributes
Merlijn van Deen (valhallasw) [Mon, 26 Sep 2011 08:39:53 +0000 (10:39 +0200)]
Added nicer __repr__esentation to Wave and Folder objects
Merlijn van Deen (valhallasw) [Mon, 26 Sep 2011 08:38:47 +0000 (10:38 +0200)]
Allow Waves to be directly used as numpy arrays
Merlijn van Deen (valhallasw) [Mon, 26 Sep 2011 08:37:58 +0000 (10:37 +0200)]
Unicode-ify data reading
Merlijn van Deen (valhallasw) [Mon, 26 Sep 2011 08:36:50 +0000 (10:36 +0200)]
Created common base class for all parser objects
Paul Kienzle [Wed, 27 Apr 2011 15:35:11 +0000 (11:35 -0400)]
add package to pypi
Paul Kienzle [Wed, 27 Apr 2011 15:03:29 +0000 (11:03 -0400)]
install instructions
Paul Kienzle [Wed, 27 Apr 2011 14:53:36 +0000 (10:53 -0400)]
add setup.py and version info
Paul Kienzle [Wed, 27 Apr 2011 14:34:53 +0000 (10:34 -0400)]
implement reader