PyPalmSens 1.7.0
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.
- We added support for hardware sync with MethodScript (#283). PyPalmSens will now recognize if you have set
set_channel_sync 1in your script, and set up the main/follower channels. - 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
- Add supported methods/ranges to instrument manager by @stefsmeets in #265
- Add methods to read/write methodscript file by @stefsmeets in #266
- Fix mistake in circuit fitting docs by @stefsmeets in #275
- Fix lost datapoints in CalbackData.new_datapoints()` by @stefsmeets in #278
- Revise access to CurrentReading/PotentialReading data by @stefsmeets in #279
- Refactor ArrayType -> Literal and remove accessors from Dataset by @stefsmeets in #280
- Add support for hardware sync with MethodScript by @stefsmeets in #283
- Specify callback per channel in instrument pool by @stefsmeets in #271
Full Changelog: python-1.6.1...python-1.7.0