Skip to content

PyPalmSens 1.7.0

Choose a tag to compare

@stefsmeets stefsmeets released this 20 Feb 13:45
4dd3ac7

PyPalmSens 1.7.0 is now available on PyPi.

To upgrade: pip install pypalmsens -U.

Current and potential readings

This release revises how to access current reading and potential reading data (#279).

It exposes the data in the concrete values in the underlying DataArray by adding 2 new derived classes derived from ps.data.DataArray:

These arrays have methods to get the current / potential reading data directly, e.g. for current readings:

current = measurement.dataset['Current']
current.current()
current.current_range()
current.current_in_range()
current.timing_status()
current.reading_status()
current.current_readings()
current.to_dict()

And for potential readings:

potential = measurement.dataset['Potential']
potential.potential()
potential.potential_range()
potential.potential_in_range()
potential.timing_status()
potential.reading_status()
potential.potential_reading()
potential.to_dict()

See the documentation for more information.

Supported methods and current ranges

New methods on InstrumentManager(Async) to get the supported methods and current ranges (#279). See the docs for more information.

>>> import pypalmsens as ps
>>> manager = ps.connect()
>>> manager.supported_methods()
['lsv', 'dpv', 'swv', ..., 'mm', 'ms', 'pot']

>>> manager.supported_current_ranges()
['100nA', '1uA', '10uA', '100uA', '1mA', '10mA', '100mA']

>>> manager.supported_potential_ranges()
['50mV', '100mV', '200mV', '500mV', '1V']

>>> manager.supported_applied_current_ranges()
['1uA', '100uA', '10mA', '100mA']

>>> manager.supported_bipot_ranges()
[]

Multichannel improvements

If you have a multichannel instrument, this release has 2 important changes.

  1. We added support for hardware sync with MethodScript (#283). PyPalmSens will now recognize if you have set set_channel_sync 1 in your script, and set up the main/follower channels.
  2. More callbacks! InstrumentPool.measure() / InstrumentPoolAsync.measure() now supports passing a list of callbacks, so you can call a different function for every channel (#271). See this link for an example.

What's Changed

Full Changelog: python-1.6.1...python-1.7.0