pypiezo.git
12 years agoBump version to 0.6. 0.6
W. Trevor King [Thu, 15 Mar 2012 03:53:56 +0000 (23:53 -0400)]
Bump version to 0.6.

12 years agoWe depend on pycomedi >= 0.4 for deepcopy-able AREF values.
W. Trevor King [Thu, 15 Mar 2012 03:53:36 +0000 (23:53 -0400)]
We depend on pycomedi >= 0.4 for deepcopy-able AREF values.

12 years agoFix out -> output typo in wiggle_for_interference().
W. Trevor King [Thu, 15 Mar 2012 03:47:23 +0000 (23:47 -0400)]
Fix out -> output typo in wiggle_for_interference().

12 years agoOops, fix up figure/axes/plot argument passing in pypiezo.wiggle.
W. Trevor King [Thu, 15 Mar 2012 03:40:37 +0000 (23:40 -0400)]
Oops, fix up figure/axes/plot argument passing in pypiezo.wiggle.

12 years agoOops, replace `n` with `config['samples']` in _run_wiggles().
W. Trevor King [Thu, 15 Mar 2012 03:35:58 +0000 (23:35 -0400)]
Oops, replace `n` with `config['samples']` in _run_wiggles().

12 years agoOops, pass all possible arguments to pypiezo.wiggle._run_wiggles().
W. Trevor King [Thu, 15 Mar 2012 03:34:05 +0000 (23:34 -0400)]
Oops, pass all possible arguments to pypiezo.wiggle._run_wiggles().

12 years agoOops, add output argument to pypiezo.wiggle._setup_plot().
W. Trevor King [Thu, 15 Mar 2012 03:31:36 +0000 (23:31 -0400)]
Oops, add output argument to pypiezo.wiggle._setup_plot().

12 years agoAdd missing numpy import to pypiezo.wiggle.
W. Trevor King [Thu, 15 Mar 2012 03:29:24 +0000 (23:29 -0400)]
Add missing numpy import to pypiezo.wiggle.

12 years agoAdd missing _base import to pypiezo.wiggle.
W. Trevor King [Thu, 15 Mar 2012 03:26:59 +0000 (23:26 -0400)]
Add missing _base import to pypiezo.wiggle.

12 years agoFix peizo -> piezo typo in pypiezo.wiggle._setup_config().
W. Trevor King [Thu, 15 Mar 2012 03:24:07 +0000 (23:24 -0400)]
Fix peizo -> piezo typo in pypiezo.wiggle._setup_config().

12 years agoAdd missing _package_config import to pypiezo.wiggle.
W. Trevor King [Thu, 15 Mar 2012 03:22:15 +0000 (23:22 -0400)]
Add missing _package_config import to pypiezo.wiggle.

12 years agoSplit AFMPiezo.wiggle_for_interference() into it's own module.
W. Trevor King [Thu, 15 Mar 2012 03:15:45 +0000 (23:15 -0400)]
Split AFMPiezo.wiggle_for_interference() into it's own module.

And break it down into manageable chunks.

12 years agoAdd new 'analog-reference' config option to doctest dumps.
W. Trevor King [Thu, 15 Mar 2012 03:14:50 +0000 (23:14 -0400)]
Add new 'analog-reference' config option to doctest dumps.

12 years agoOops, setup analog-reference with an AREF value, not an int.
W. Trevor King [Thu, 15 Mar 2012 00:55:55 +0000 (20:55 -0400)]
Oops, setup analog-reference with an AREF value, not an int.

12 years agoUgly hack to flush plots to the screen as they are updated.
W. Trevor King [Thu, 15 Mar 2012 00:11:05 +0000 (20:11 -0400)]
Ugly hack to flush plots to the screen as they are updated.

12 years agoRemove debugging slope prints from surface-detection doctest.
W. Trevor King [Thu, 15 Mar 2012 00:02:16 +0000 (20:02 -0400)]
Remove debugging slope prints from surface-detection doctest.

12 years agoRaise SurfaceError if surface position data only has a single z value.
W. Trevor King [Wed, 14 Mar 2012 22:52:42 +0000 (18:52 -0400)]
Raise SurfaceError if surface position data only has a single z value.

If the deflection at the minimum position is over the dangerous
threshold, `get_surface_position_data()` will not take any steps in.
With this commit, we avoid raising a ZeroDivisionError in that
situation.

12 years agoAdd amplitude and max values to the "no room for wiggle" ValueError string.
W. Trevor King [Wed, 14 Mar 2012 22:49:37 +0000 (18:49 -0400)]
Add amplitude and max values to the "no room for wiggle" ValueError string.

12 years agoAdd analog reference to ChannelConfig (forgotten earlier?).
W. Trevor King [Wed, 14 Mar 2012 21:54:08 +0000 (17:54 -0400)]
Add analog reference to ChannelConfig (forgotten earlier?).

12 years agoMove wiggle options to WiggleConfig and allow easy saving of wiggle data.
W. Trevor King [Wed, 14 Mar 2012 21:46:27 +0000 (17:46 -0400)]
Move wiggle options to WiggleConfig and allow easy saving of wiggle data.

12 years agoFix Convigure -> Configure typo in ChannelConfig's docstring.
W. Trevor King [Wed, 14 Mar 2012 20:59:06 +0000 (16:59 -0400)]
Fix Convigure -> Configure typo in ChannelConfig's docstring.

12 years agoAdd `steps` and `sleep` options for gentler `jump()`s.
W. Trevor King [Wed, 14 Mar 2012 20:18:23 +0000 (16:18 -0400)]
Add `steps` and `sleep` options for gentler `jump()`s.

12 years agoIf neither the wavelength or amplitude are given for wiggling, use half the max.
W. Trevor King [Wed, 14 Mar 2012 19:16:00 +0000 (15:16 -0400)]
If neither the wavelength or amplitude are given for wiggling, use half the max.

12 years agoUpdate URLs from einstein to tremily.
W. Trevor King [Wed, 22 Feb 2012 18:40:24 +0000 (13:40 -0500)]
Update URLs from einstein to tremily.

12 years agoRun update-copyright.py.
W. Trevor King [Thu, 16 Feb 2012 23:05:33 +0000 (18:05 -0500)]
Run update-copyright.py.

12 years agoTransition to my external update-copyright package.
W. Trevor King [Thu, 16 Feb 2012 23:03:22 +0000 (18:03 -0500)]
Transition to my external update-copyright package.

http://pypi.python.org/pypi/update-copyright/

12 years agoFix channel reference in AFMPiezo.move_to_pos_or_def.
W. Trevor King [Mon, 23 Jan 2012 21:37:26 +0000 (16:37 -0500)]
Fix channel reference in AFMPiezo.move_to_pos_or_def.

12 years agoMove position and deflection initialization before step direction check.
W. Trevor King [Mon, 23 Jan 2012 21:31:02 +0000 (16:31 -0500)]
Move position and deflection initialization before step direction check.

Otherwise, if position is not specified, step would always end up
being negative, and position would always end up as zero.  Now
position will end up being the extreme in the initial step direction,
as advertised.

12 years agoAdd 'direction' keyword to Piezo.read_inputs' call to .channels.
W. Trevor King [Tue, 17 Jan 2012 21:47:58 +0000 (16:47 -0500)]
Add 'direction' keyword to Piezo.read_inputs' call to .channels.

12 years agoAdd frequency option to AFMPiezo.move_to_pos_or_def.
W. Trevor King [Tue, 17 Jan 2012 18:47:15 +0000 (13:47 -0500)]
Add frequency option to AFMPiezo.move_to_pos_or_def.

12 years agoAdd default position, deflection, and step to AFMPiezo.move_to_pos_or_def.
W. Trevor King [Fri, 13 Jan 2012 18:41:14 +0000 (13:41 -0500)]
Add default position, deflection, and step to AFMPiezo.move_to_pos_or_def.

12 years agoMove surface-related logging from debug to info (debug is noisy).
W. Trevor King [Fri, 30 Sep 2011 19:57:51 +0000 (15:57 -0400)]
Move surface-related logging from debug to info (debug is noisy).

12 years agoFix up ,select_config usage; now unit tests pass.
W. Trevor King [Mon, 26 Sep 2011 15:10:54 +0000 (11:10 -0400)]
Fix up ,select_config usage; now unit tests pass.

12 years agoConvert to h5config's new get_attribute option for select_config.
W. Trevor King [Sun, 25 Sep 2011 23:20:56 +0000 (19:20 -0400)]
Convert to h5config's new get_attribute option for select_config.

12 years agoRemove unused sys import from pypiezo.config.
W. Trevor King [Thu, 15 Sep 2011 12:31:32 +0000 (08:31 -0400)]
Remove unused sys import from pypiezo.config.

12 years agoUse select_config in AFMPiezo's doctests.
W. Trevor King [Thu, 8 Sep 2011 18:17:17 +0000 (14:17 -0400)]
Use select_config in AFMPiezo's doctests.

12 years agoUse PEP-8-suggested double space between class definitions in surface.py.
W. Trevor King [Thu, 8 Sep 2011 17:59:58 +0000 (13:59 -0400)]
Use PEP-8-suggested double space between class definitions in surface.py.

12 years agoAdd select_config example to get_piezo_config's doctest.
W. Trevor King [Thu, 8 Sep 2011 15:20:51 +0000 (11:20 -0400)]
Add select_config example to get_piezo_config's doctest.

12 years agoAdd pypiezo.test.get_piezo_config and fix ConfigSetting -> Setting typo for PiezoConfig.
W. Trevor King [Thu, 8 Sep 2011 14:47:27 +0000 (10:47 -0400)]
Add pypiezo.test.get_piezo_config and fix ConfigSetting -> Setting typo for PiezoConfig.

12 years agoOops, forgot the ['channel'].
W. Trevor King [Fri, 29 Jul 2011 14:06:03 +0000 (10:06 -0400)]
Oops, forgot the ['channel'].

12 years agoaxis_channel_config -> config['channel'] in surface.py.
W. Trevor King [Fri, 29 Jul 2011 14:02:11 +0000 (10:02 -0400)]
axis_channel_config -> config['channel'] in surface.py.

12 years agoFix InputChannelConfig reference and remove debugging printout.
W. Trevor King [Fri, 29 Jul 2011 13:57:09 +0000 (09:57 -0400)]
Fix InputChannelConfig reference and remove debugging printout.

12 years agoDebugging printouts in AFMPiezo doctest.
W. Trevor King [Fri, 29 Jul 2011 13:54:52 +0000 (09:54 -0400)]
Debugging printouts in AFMPiezo doctest.

12 years agoFix doctest config-dump output in base.py.
W. Trevor King [Fri, 29 Jul 2011 13:53:18 +0000 (09:53 -0400)]
Fix doctest config-dump output in base.py.

12 years agoRemove debugging name-logger now that axis names are set correctly in doctests.
W. Trevor King [Fri, 29 Jul 2011 13:51:19 +0000 (09:51 -0400)]
Remove debugging name-logger now that axis names are set correctly in doctests.

12 years ago`name` is a ChannelConfig setting, not an AxisConfig setting.
W. Trevor King [Fri, 29 Jul 2011 13:49:00 +0000 (09:49 -0400)]
`name` is a ChannelConfig setting, not an AxisConfig setting.

12 years agoTemporary debugging instrumentation.
W. Trevor King [Fri, 29 Jul 2011 13:44:12 +0000 (09:44 -0400)]
Temporary debugging instrumentation.

12 years agoAssorted typo fixes turned up by test suite.
W. Trevor King [Fri, 29 Jul 2011 13:33:39 +0000 (09:33 -0400)]
Assorted typo fixes turned up by test suite.

12 years agoQuote 'name' in AFMPiezo doctest.
W. Trevor King [Fri, 29 Jul 2011 13:32:09 +0000 (09:32 -0400)]
Quote 'name' in AFMPiezo doctest.

12 years agoFix foramt -> format typo in setup.py.
W. Trevor King [Fri, 29 Jul 2011 13:24:39 +0000 (09:24 -0400)]
Fix foramt -> format typo in setup.py.

12 years agoConvert to use nested Configs from h5config.
W. Trevor King [Fri, 29 Jul 2011 12:39:45 +0000 (08:39 -0400)]
Convert to use nested Configs from h5config.

12 years agoCleanup setup.py.
W. Trevor King [Thu, 28 Jul 2011 19:29:50 +0000 (15:29 -0400)]
Cleanup setup.py.

12 years agoRemove crufty logging imports from pypiezo/__init__.py.
W. Trevor King [Thu, 28 Jul 2011 18:47:35 +0000 (14:47 -0400)]
Remove crufty logging imports from pypiezo/__init__.py.

12 years agoFix Curses-ckeck-... -> Curses-check typo in README.
W. Trevor King [Thu, 28 Jul 2011 18:05:42 +0000 (14:05 -0400)]
Fix Curses-ckeck-... -> Curses-check typo in README.

12 years agoFix base_config -> package_config reference in surface.py. 0.5
W. Trevor King [Thu, 28 Jul 2011 17:55:26 +0000 (13:55 -0400)]
Fix base_config -> package_config reference in surface.py.

12 years agoRemove underscores from config classes in doctests.
W. Trevor King [Thu, 28 Jul 2011 17:51:57 +0000 (13:51 -0400)]
Remove underscores from config classes in doctests.

12 years agoAdd _clear_class and _backed_subclasses to PackageConfig.
W. Trevor King [Thu, 28 Jul 2011 17:48:20 +0000 (13:48 -0400)]
Add _clear_class and _backed_subclasses to PackageConfig.

12 years agoConvert to use new h5config package.
W. Trevor King [Thu, 28 Jul 2011 17:30:53 +0000 (13:30 -0400)]
Convert to use new h5config package.

13 years agoSpecial case for '/' group in h5_create_group.
W. Trevor King [Wed, 20 Apr 2011 20:31:56 +0000 (16:31 -0400)]
Special case for '/' group in h5_create_group.

13 years agoReturn the group created in h5_create_group().
W. Trevor King [Wed, 20 Apr 2011 20:09:56 +0000 (16:09 -0400)]
Return the group created in h5_create_group().

13 years agoSplit out h5_create_group so it can be used by other modules.
W. Trevor King [Wed, 20 Apr 2011 20:08:33 +0000 (16:08 -0400)]
Split out h5_create_group so it can be used by other modules.

13 years agoUse base_config throughout setup_base_config() for consistency.
W. Trevor King [Wed, 20 Apr 2011 18:49:59 +0000 (14:49 -0400)]
Use base_config throughout setup_base_config() for consistency.

13 years agoFix typo return_all_params -> return_all_parameters.
W. Trevor King [Wed, 20 Apr 2011 18:28:21 +0000 (14:28 -0400)]
Fix typo return_all_params -> return_all_parameters.

13 years agoBetter solution to overwriting preexisting datasets.
W. Trevor King [Tue, 19 Apr 2011 23:06:28 +0000 (19:06 -0400)]
Better solution to overwriting preexisting datasets.

Remove them and start from scratch.  The previous implementation did
things like

  >>> dataset = 'no'
  >>> dataset[...] = 'yes'
  >>> dataset[...]
  'ye'

13 years agodataset.value has been deprecated since h5py version 1.3.
W. Trevor King [Tue, 19 Apr 2011 22:55:34 +0000 (18:55 -0400)]
dataset.value has been deprecated since h5py version 1.3.

From http://mail.scipy.org/pipermail/scipy-user/2010-February/024364.html

[SciPy-User] [ANN] HDF5 for Python (h5py) 1.3.0 beta
Andrew Collette andrew.collette@gmail....
Tue Feb 23 15:52:12 CST 2010

...
 - Dataset .value attribute is deprecated.  Use dataset[...] or dataset[()].
...

13 years agoAdd /posts/ to homepage URL in setup.py.
W. Trevor King [Tue, 19 Apr 2011 20:22:26 +0000 (16:22 -0400)]
Add /posts/ to homepage URL in setup.py.

13 years agoAdd pycomedi link to README.
W. Trevor King [Tue, 19 Apr 2011 18:49:10 +0000 (14:49 -0400)]
Add pycomedi link to README.

13 years agoAdd a method for extracting input channels by name.
W. Trevor King [Tue, 19 Apr 2011 17:11:31 +0000 (13:11 -0400)]
Add a method for extracting input channels by name.

13 years agoAdd H5Py and PyYAML dependencies to README.
W. Trevor King [Tue, 19 Apr 2011 15:13:29 +0000 (11:13 -0400)]
Add H5Py and PyYAML dependencies to README.

13 years agoMake matplotlib display errors nonfatal.
W. Trevor King [Tue, 19 Apr 2011 14:58:01 +0000 (10:58 -0400)]
Make matplotlib display errors nonfatal.

13 years agoClean up and convert to my Cython-based pycomedi implementation.
W. Trevor King [Tue, 19 Apr 2011 13:21:32 +0000 (09:21 -0400)]
Clean up and convert to my Cython-based pycomedi implementation.

13 years agoAdd pypiezo.LOG to allow easy logging.
W. Trevor King [Thu, 10 Mar 2011 13:59:52 +0000 (08:59 -0500)]
Add pypiezo.LOG to allow easy logging.

13 years ago--with-doctests -> --with-doctest in README nosetests example.
W. Trevor King [Thu, 10 Mar 2011 13:57:59 +0000 (08:57 -0500)]
--with-doctests -> --with-doctest in README nosetests example.

13 years agoRename project piezo -> pypiezo and restructure. 0.4
W. Trevor King [Tue, 8 Feb 2011 21:46:17 +0000 (16:46 -0500)]
Rename project piezo -> pypiezo and restructure.

13 years agoUpdate to depend on data_logger v0.4 (and bump to v0.3). 0.3
W. Trevor King [Tue, 9 Nov 2010 19:57:30 +0000 (14:57 -0500)]
Update to depend on data_logger v0.4 (and bump to v0.3).

14 years agoDon't turn on PYLAB_VERBOSE by default (in case DISPLAY is not set) 0.2
W. Trevor King [Fri, 19 Mar 2010 13:22:44 +0000 (09:22 -0400)]
Don't turn on PYLAB_VERBOSE by default (in case DISPLAY is not set)

Pull bilinear definition out of analyzeSurfPosData.

14 years agoPackaged with setuputils.
W. Trevor King [Wed, 17 Jun 2009 16:16:54 +0000 (12:16 -0400)]
Packaged with setuputils.

15 years agoImproved plotVerbose behaviour in wiggleForInterferenceMin()
W. Trevor King [Thu, 8 Jan 2009 15:49:07 +0000 (10:49 -0500)]
Improved plotVerbose behaviour in wiggleForInterferenceMin()

15 years agoUpdated to new data_logger log_dir $DEFAULT$ syntax for easier log_dir defs.
W. Trevor King [Thu, 8 Jan 2009 15:46:44 +0000 (10:46 -0500)]
Updated to new data_logger log_dir $DEFAULT$ syntax for easier log_dir defs.

15 years agoAdjusted to new pycomedi setup.
W. Trevor King [Mon, 15 Dec 2008 15:21:49 +0000 (10:21 -0500)]
Adjusted to new pycomedi setup.

Also added workaround for the pycomedi extra-point hack.

15 years agoMinor hack to z_piezo.py to support calibcant.config module.
W. Trevor King [Wed, 26 Nov 2008 20:19:29 +0000 (15:19 -0500)]
Minor hack to z_piezo.py to support calibcant.config module.

15 years agoBegan versioning
W. Trevor King [Wed, 22 Oct 2008 19:05:38 +0000 (15:05 -0400)]
Began versioning