<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.advacam.cz/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Kocid</id>
	<title>ADVACAM Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.advacam.cz/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Kocid"/>
	<link rel="alternate" type="text/html" href="https://wiki.advacam.cz/wiki/Special:Contributions/Kocid"/>
	<updated>2026-11-30T03:08:03Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.advacam.cz/index.php?title=Pixet_1.8.5_%E2%86%92_1.8.6&amp;diff=1765</id>
		<title>Pixet 1.8.5 → 1.8.6</title>
		<link rel="alternate" type="text/html" href="https://wiki.advacam.cz/index.php?title=Pixet_1.8.5_%E2%86%92_1.8.6&amp;diff=1765"/>
		<updated>2026-10-14T13:18:38Z</updated>

		<summary type="html">&lt;p&gt;Kocid: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Pixet Python API ==&lt;br /&gt;
This release modernises the Python API. Scripts written against 1.8.5 will need changes — the list of what to fix is in §2, with before/after for each item.&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=== 1. At a glance ===&lt;br /&gt;
* Errors are Python exceptions now. Calls raise a &amp;lt;code&amp;gt;PixetError&amp;lt;/code&amp;gt; (a subclass by the kind of the error - &amp;lt;code&amp;gt;DeviceError&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;PixetFileError&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;PixetValueError&amp;lt;/code&amp;gt;, ...) instead of returning &amp;lt;code&amp;gt;-1&amp;lt;/code&amp;gt;.&lt;br /&gt;
* No more manual memory management. &amp;lt;code&amp;gt;destroy()&amp;lt;/code&amp;gt; and the &amp;lt;code&amp;gt;*RefInc()&amp;lt;/code&amp;gt; call variants are gone; objects are released for you.&lt;br /&gt;
* Common getters became properties — &amp;lt;code&amp;gt;dev.params&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;dev.pixcfg&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;dev.dacs&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pixet.data_mgr&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Parameter access is type-free — one &amp;lt;code&amp;gt;getValue()&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;setValue()&amp;lt;/code&amp;gt; pair instead of 39 typed accessors.&lt;br /&gt;
* Pixel masks are split into a factory mask, your own user mask, and a read-only combined view.&lt;br /&gt;
* &amp;lt;code&amp;gt;pygui&amp;lt;/code&amp;gt; is a real widget toolkit — constructors instead of factory methods, plus tables, trees, scroll areas, date/time editors, a reworked plot, and Qt enums.&lt;br /&gt;
* Clustering and spectral imaging are proper modules with object APIs and progress callbacks.&lt;br /&gt;
* Type stubs ship with every module, so editors give you autocompletion and signature help (with the gaps noted in §3).&lt;br /&gt;
* Ten helper modules were removed (§4).&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=== 2. Breaking changes — what to fix in your scripts ===&lt;br /&gt;
&lt;br /&gt;
==== 2.1 Check for exceptions, not return codes ====&lt;br /&gt;
Failures now raise a &amp;lt;code&amp;gt;pypixet.PixetError&amp;lt;/code&amp;gt;; bad arguments raise the usual &amp;lt;code&amp;gt;TypeError&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;ValueError&amp;lt;/code&amp;gt;. The subclass tells the kind of the error - &amp;lt;code&amp;gt;DeviceError&amp;lt;/code&amp;gt; (a failed device method, acquisition or communication), &amp;lt;code&amp;gt;PixetFileError&amp;lt;/code&amp;gt; (also an &amp;lt;code&amp;gt;OSError&amp;lt;/code&amp;gt;), &amp;lt;code&amp;gt;PixetTimeoutError&amp;lt;/code&amp;gt; (also a &amp;lt;code&amp;gt;TimeoutError&amp;lt;/code&amp;gt;), &amp;lt;code&amp;gt;PixetValueError&amp;lt;/code&amp;gt; (also a &amp;lt;code&amp;gt;ValueError&amp;lt;/code&amp;gt;) and &amp;lt;code&amp;gt;PixetNotFoundError&amp;lt;/code&amp;gt; (also a &amp;lt;code&amp;gt;LookupError&amp;lt;/code&amp;gt;). Every exception has &amp;lt;code&amp;gt;code&amp;lt;/code&amp;gt; (an &amp;lt;code&amp;gt;ErrorCode&amp;lt;/code&amp;gt; member) and &amp;lt;code&amp;gt;message&amp;lt;/code&amp;gt;. The classes exist as soon as &amp;lt;code&amp;gt;pypixet&amp;lt;/code&amp;gt; is imported. &amp;lt;code&amp;gt;pypixet.start()&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;pypixet.exit()&amp;lt;/code&amp;gt; themselves raise plain &amp;lt;code&amp;gt;RuntimeError&amp;lt;/code&amp;gt; — they run before the Pixet API is up.&lt;br /&gt;
 # 1.8.5&lt;br /&gt;
 rc = dev.doSimpleAcquisition(1, 0.1, pixet.PX_FTYPE_AUTODETECT, &amp;quot;out.pmf&amp;quot;)&lt;br /&gt;
 if rc &amp;lt; 0:&lt;br /&gt;
     print(&amp;quot;acquisition failed:&amp;quot;, pypixet.getLasError())&lt;br /&gt;
 &lt;br /&gt;
 # 1.8.6&lt;br /&gt;
 try:&lt;br /&gt;
     dev.doSimpleAcquisition(1, 0.1, &amp;quot;out.pmf&amp;quot;)&lt;br /&gt;
 except pypixet.PixetError as exc:&lt;br /&gt;
     print(&amp;quot;acquisition failed:&amp;quot;, exc)&lt;br /&gt;
&amp;lt;code&amp;gt;pypixet.getLasError()&amp;lt;/code&amp;gt; has been removed — the message is on the exception.&lt;br /&gt;
&lt;br /&gt;
==== 2.2 Delete every &amp;lt;code&amp;gt;destroy()&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;*RefInc()&amp;lt;/code&amp;gt; call ====&lt;br /&gt;
 # 1.8.5&lt;br /&gt;
 frame = dev.lastAcqFrameRefInc()&lt;br /&gt;
 data = frame.data()&lt;br /&gt;
 frame.destroy()&lt;br /&gt;
 &lt;br /&gt;
 # 1.8.6&lt;br /&gt;
 frame = dev.lastAcqFrame()&lt;br /&gt;
 data = frame.data()&lt;br /&gt;
Removed everywhere: &amp;lt;code&amp;gt;destroy()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;destroyCE()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;incRefCount()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;decRefCount()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;privateInterface()&amp;lt;/code&amp;gt;, and the &amp;lt;code&amp;gt;RefInc&amp;lt;/code&amp;gt; variants &amp;lt;code&amp;gt;acqDataRefInc&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;acqFrameRefInc&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;lastAcqDataRefInc&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;lastAcqFrameRefInc&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;lastAcqPixelsRefInc&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;lastAcqClustersRefInc&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==== 2.3 Device parameters: one generic accessor ====&lt;br /&gt;
&amp;lt;code&amp;gt;dev.parameters()&amp;lt;/code&amp;gt; returned a parameter manager with 13 typed create/get/set families. It is replaced by the &amp;lt;code&amp;gt;dev.params&amp;lt;/code&amp;gt; property and a single value API.&lt;br /&gt;
 # 1.8.5&lt;br /&gt;
 bias = dev.parameters().get(&amp;quot;BiasVoltage&amp;quot;).getDouble()&lt;br /&gt;
 dev.parameters().get(&amp;quot;BiasVoltage&amp;quot;).setDouble(200.0)&lt;br /&gt;
 &lt;br /&gt;
 # 1.8.6&lt;br /&gt;
 bias = dev.params.getValue(&amp;quot;BiasVoltage&amp;quot;)&lt;br /&gt;
 dev.params.setValue(&amp;quot;BiasVoltage&amp;quot;, 200.0)&lt;br /&gt;
&amp;lt;code&amp;gt;getValue()&amp;lt;/code&amp;gt; returns the natural Python type. If you need to know it, &amp;lt;code&amp;gt;dev.params.type(&amp;quot;BiasVoltage&amp;quot;)&amp;lt;/code&amp;gt; returns an &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt; you can compare against the new &amp;lt;code&amp;gt;pixet.DataType&amp;lt;/code&amp;gt; enum (&amp;lt;code&amp;gt;Double&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;String&amp;lt;/code&amp;gt;, …), which is an &amp;lt;code&amp;gt;IntEnum&amp;lt;/code&amp;gt; — &amp;lt;code&amp;gt;dev.params.type(name) == pixet.DataType.DOUBLE&amp;lt;/code&amp;gt;. Blobs come back through &amp;lt;code&amp;gt;getBlob()&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;isBlob()&amp;lt;/code&amp;gt; tells you when to use it. &amp;lt;code&amp;gt;addValue(name, value, description=&amp;lt;nowiki&amp;gt;&#039;&#039;&amp;lt;/nowiki&amp;gt;, dataType=-1)&amp;lt;/code&amp;gt; replaces &amp;lt;code&amp;gt;addBOOL&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;addI32&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;addString&amp;lt;/code&amp;gt; and the rest.&lt;br /&gt;
&lt;br /&gt;
==== 2.4 Getters that became properties ====&lt;br /&gt;
 dev.parameters()      →  dev.params&lt;br /&gt;
 dev.pixCfg()          →  dev.pixcfg&lt;br /&gt;
 dev.dacs()            →  dev.dacs&lt;br /&gt;
 pixet.dataMgr()       →  pixet.data_mgr&lt;br /&gt;
Drop the parentheses — these are attributes, not calls. &amp;lt;code&amp;gt;dacs&amp;lt;/code&amp;gt; keeps its name and only loses the parentheses; the rest of the DAC api changed as well, see §2.8.&lt;br /&gt;
&lt;br /&gt;
==== 2.5 Acquisition results ====&lt;br /&gt;
 dev.lastAcqFrameRefInc()    →  dev.lastAcqFrame()&lt;br /&gt;
 dev.lastAcqDataRefInc()     →  dev.lastAcqData()&lt;br /&gt;
 dev.acqFrameRefInc(i)       →  dev.acqFrame(i)&lt;br /&gt;
 dev.acqDataRefInc(i)        →  dev.acqData(i)&lt;br /&gt;
&amp;lt;code&amp;gt;doSimpleAcquisition()&amp;lt;/code&amp;gt; has no &amp;lt;code&amp;gt;fileType&amp;lt;/code&amp;gt; argument any more - the file type is always detected from the file name (&amp;lt;code&amp;gt;PX_FTYPE_AUTODETECT&amp;lt;/code&amp;gt;) - and &amp;lt;code&amp;gt;fileName&amp;lt;/code&amp;gt; defaults to &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&#039;&#039;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, so &amp;lt;code&amp;gt;dev.doSimpleAcquisition(1, 0.1)&amp;lt;/code&amp;gt; is enough for a measurement you only want in memory.&lt;br /&gt;
&lt;br /&gt;
New on Timepix3 devices:&lt;br /&gt;
 dev.lastAcqClustersRefInc()   →  dev.&amp;lt;code&amp;gt;lastAcqClusters&amp;lt;/code&amp;gt;()&lt;br /&gt;
 dev.lastAcqPixelsRefInc()     →  dev.lastAcqPixels()&lt;br /&gt;
&lt;br /&gt;
==== 2.6 &amp;lt;code&amp;gt;save()&amp;lt;/code&amp;gt; takes the data manager ====&lt;br /&gt;
 # 1.8.5&lt;br /&gt;
 frame.save(&amp;quot;out.pmf&amp;quot;, pixet.PX_FTYPE_AUTODETECT)&lt;br /&gt;
 &lt;br /&gt;
 # 1.8.6&lt;br /&gt;
 frame.save(pixet.data_mgr, &amp;quot;out.pmf&amp;quot;, pixet.FileType.AUTODETECT)&lt;br /&gt;
&amp;lt;code&amp;gt;load()&amp;lt;/code&amp;gt; is unchanged.&lt;br /&gt;
&lt;br /&gt;
==== 2.7 Pixel masking: factory mask vs user mask ====&lt;br /&gt;
The single mask was split into a factory mask (from the detector&#039;s calibration) and a user mask (yours), plus a read-only combined view. Every &amp;lt;code&amp;gt;mask*&amp;lt;/code&amp;gt; name gained a &amp;lt;code&amp;gt;Factory&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;User&amp;lt;/code&amp;gt; qualifier.&lt;br /&gt;
 # 1.8.5&lt;br /&gt;
 dev.pixCfg().mask(pixel, True)&lt;br /&gt;
 n = dev.pixCfg().maskedCount()&lt;br /&gt;
 m = dev.pixCfg().maskMatrix()&lt;br /&gt;
 &lt;br /&gt;
 # 1.8.6&lt;br /&gt;
 dev.pixcfg.maskUser(pixel, True)&lt;br /&gt;
 n = dev.pixcfg.userMaskedCount()          # or combinedMaskedCount()&lt;br /&gt;
 m = dev.pixcfg.userMaskMatrix()           # or combinedMaskMatrix()&lt;br /&gt;
&amp;lt;code&amp;gt;maskUser()&amp;lt;/code&amp;gt; takes a linear pixel index, as &amp;lt;code&amp;gt;mask()&amp;lt;/code&amp;gt; did; &amp;lt;code&amp;gt;maskUserRect(x, y, width, height, masked)&amp;lt;/code&amp;gt; is the one that works in coordinates.&lt;br /&gt;
&lt;br /&gt;
The same rule applies to the chip, row, column and rect variants (&amp;lt;code&amp;gt;maskUserChip&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;maskUserRow&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;maskUserColumn&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;maskUserRect&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;isUserMasked*&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;setUserMaskMatrix*&amp;lt;/code&amp;gt;, …) and to their &amp;lt;code&amp;gt;Factory&amp;lt;/code&amp;gt; counterparts. Also new: &amp;lt;code&amp;gt;clearUserMask()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;clearFactoryMask()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;copyUserMask()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;copyMasksFromPixCfg()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;isCombinedMasked()&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
On Medipix2/Timepix pixel configs, the whole-matrix &amp;lt;code&amp;gt;modeMatrix()&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;setModeMatrix()&amp;lt;/code&amp;gt; were removed; the per-chip &amp;lt;code&amp;gt;modeMatrixChip()&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;setModeMatrixChip()&amp;lt;/code&amp;gt; and the &amp;lt;code&amp;gt;setMode*&amp;lt;/code&amp;gt; calls are unchanged.&lt;br /&gt;
&lt;br /&gt;
==== 2.8 DACs: a property, and &amp;lt;code&amp;gt;copy()&amp;lt;/code&amp;gt; instead of &amp;lt;code&amp;gt;createCopyOfDacs()&amp;lt;/code&amp;gt; ====&lt;br /&gt;
 # 1.8.5&lt;br /&gt;
 dacs = dev.dacs()                     # the DACs of the device&lt;br /&gt;
 copy = dev.createCopyOfDacs()         # an independent set with the values of the device&lt;br /&gt;
 ...&lt;br /&gt;
 copy.destroy()&lt;br /&gt;
 &lt;br /&gt;
 # 1.8.6&lt;br /&gt;
 dacs = dev.dacs                       # a property, the same object on every access&lt;br /&gt;
 copy = dacs.copy()                    # an independent set with the values of &#039;dacs&#039;&lt;br /&gt;
&amp;lt;code&amp;gt;dev.createCopyOfDacs()&amp;lt;/code&amp;gt; no longer exists — &amp;lt;code&amp;gt;dev.dacs.copy()&amp;lt;/code&amp;gt; replaces it, and &amp;lt;code&amp;gt;copy.copy(dev.dacs)&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;copy.deepcopy(dev.dacs)&amp;lt;/code&amp;gt; do the same. Both hand back a set which already carries the values it was copied from and which nothing has to destroy. The difference is what is copied: &amp;lt;code&amp;gt;createCopyOfDacs()&amp;lt;/code&amp;gt; always took the DACs of the device, while &amp;lt;code&amp;gt;copy()&amp;lt;/code&amp;gt; takes the set you call it on — &amp;lt;code&amp;gt;dev.dacs_opm[&amp;quot;CSM&amp;quot;].copy()&amp;lt;/code&amp;gt; copies that operation mode. &amp;lt;code&amp;gt;copyFromDacs()&amp;lt;/code&amp;gt; is still there for copying between two sets you already have.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;dacs.is_main&amp;lt;/code&amp;gt; tells the DACs of the device (&amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt;) from a copy (&amp;lt;code&amp;gt;0&amp;lt;/code&amp;gt;), and writing a copy leaves the device untouched until you send the set to it.&lt;br /&gt;
&lt;br /&gt;
Setting values is unchanged: &amp;lt;code&amp;gt;dacs.setDac(index, chip, value)&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;dacs.setToDevice()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;dacs.setDefault()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;dev.setDacs(dacs)&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;dev.refreshDacs()&amp;lt;/code&amp;gt;. &amp;lt;code&amp;gt;dacs.names()&amp;lt;/code&amp;gt; returns the DAC names as a list of &amp;lt;code&amp;gt;str&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;thresholdToDac()&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;dacToThreshold()&amp;lt;/code&amp;gt; convert against the chip type of the device.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;dev.createCopyOfPixCfg()&amp;lt;/code&amp;gt; went the same way — &amp;lt;code&amp;gt;dev.pixcfg.copy()&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Medipix3 operation modes&lt;br /&gt;
 # 1.8.5&lt;br /&gt;
 dacs = dev.dacsMode(pixet.PX_MPX3_OPM_CSM)&lt;br /&gt;
 copy = dev.createCopyOfDacsMode(pixet.PX_MPX3_OPM_CSM)&lt;br /&gt;
 dev.setDacsMode(pixet.PX_MPX3_OPM_CSM, dacs)&lt;br /&gt;
 &lt;br /&gt;
 # 1.8.6&lt;br /&gt;
 dacs = dev.dacs_opm[pixet.Mpx3OpMode.CSM]     # or dev.dacs_opm[&amp;quot;CSM&amp;quot;]&lt;br /&gt;
 copyDacs = dacs.copy()&lt;br /&gt;
 copyDacs.setToDevice()                        # dev.setDacsMode(pixet.Mpx3OpMode.CSM, copyDacs)&lt;br /&gt;
&amp;lt;code&amp;gt;dacsMode()&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;createCopyOfDacsMode()&amp;lt;/code&amp;gt; are removed. &amp;lt;code&amp;gt;dev.dacs_opm&amp;lt;/code&amp;gt; is a sequence of the &amp;lt;code&amp;gt;IMpxDacs&amp;lt;/code&amp;gt; of every operation mode - &amp;lt;code&amp;gt;len()&amp;lt;/code&amp;gt;, iteration, &amp;lt;code&amp;gt;names()&amp;lt;/code&amp;gt;, and an index which is the mode number or its name (case insensitive, the &amp;lt;code&amp;gt;PX_MPX3_OPM_&amp;lt;/code&amp;gt; prefix optional). The object of a mode is cached, so &amp;lt;code&amp;gt;dev.dacs_opm[0] is dev.dacs_opm[0]&amp;lt;/code&amp;gt;, and modes which share one set of DACs in the device share the object. &amp;lt;code&amp;gt;dev.pixcfg_opm&amp;lt;/code&amp;gt; is the same for the pixel configurations, in place of &amp;lt;code&amp;gt;pixCfgMode()&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;createCopyOfPixCfgMode()&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==== 2.9 Type casting: check the data format ====&lt;br /&gt;
The wrapper classes now form a real hierarchy — &amp;lt;code&amp;gt;IDevMpx3&amp;lt;/code&amp;gt; derives from &amp;lt;code&amp;gt;IDevMpx&amp;lt;/code&amp;gt; derives from &amp;lt;code&amp;gt;IDev&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;IMpxFrame&amp;lt;/code&amp;gt; derives from &amp;lt;code&amp;gt;IData&amp;lt;/code&amp;gt;. Most of the time no cast is needed at all: &amp;lt;code&amp;gt;dev.lastAcqFrame()&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;dev.acqFrame(i)&amp;lt;/code&amp;gt; already hand you an &amp;lt;code&amp;gt;IMpxFrame&amp;lt;/code&amp;gt;.&lt;br /&gt;
 # 1.8.5&lt;br /&gt;
 frame = data.asIMpxFrame()&lt;br /&gt;
 if data.canCastToDataFormat(pixet.PX_DATAFORMAT_FRAME):&lt;br /&gt;
     ...&lt;br /&gt;
 &lt;br /&gt;
 # 1.8.6&lt;br /&gt;
 if data.dataFormat() == pixet.DataFormat.FRAME:&lt;br /&gt;
     ...&lt;br /&gt;
Removed: &amp;lt;code&amp;gt;asIData()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;asIMpxFrame()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;asIDev()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;canCastToDataFormat()&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The wrapper types themselves are not module attributes — there is no &amp;lt;code&amp;gt;pypixet.IMpxFrame&amp;lt;/code&amp;gt; to pass to &amp;lt;code&amp;gt;isinstance()&amp;lt;/code&amp;gt;. Test the data format as above, or compare &amp;lt;code&amp;gt;type(data).__name__&amp;lt;/code&amp;gt; with &amp;lt;code&amp;gt;&amp;quot;IMpxFrame&amp;quot;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==== 2.10 Other renamed calls ====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!1.8.5&lt;br /&gt;
!1.8.6&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;frame.convertToChipByChip()&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;frame.chipByChipImage()&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;frame.ignoreMasked()&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;frame.setIgnoreMasked()&amp;lt;/code&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
The plugin API is reduced, not removed: &amp;lt;code&amp;gt;pixet.plugins()&amp;lt;/code&amp;gt; still lists the loaded plugins and &amp;lt;code&amp;gt;IPlugin&amp;lt;/code&amp;gt; keeps &amp;lt;code&amp;gt;id()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;name()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;execute()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;params&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;registerEvent()&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;unregisterEvent()&amp;lt;/code&amp;gt;. Gone from it are &amp;lt;code&amp;gt;pixet.addPlugin()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pixet.plugin(name)&amp;lt;/code&amp;gt; and the &amp;lt;code&amp;gt;IMenuItem&amp;lt;/code&amp;gt; type.&lt;br /&gt;
&lt;br /&gt;
Also removed with no replacement in this release: the filter config-dialog hooks (&amp;lt;code&amp;gt;hasConfigGUI()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;showConfigGUI()&amp;lt;/code&amp;gt;), custom file-type registration (&amp;lt;code&amp;gt;dataMgr.registerFileType()&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;unregisterFileType()&amp;lt;/code&amp;gt;), and the &amp;lt;code&amp;gt;IByteBuff&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;IRefByteBuff&amp;lt;/code&amp;gt; buffer objects — buffer data is passed as plain Python lists.&lt;br /&gt;
&lt;br /&gt;
==== 2.11 &amp;lt;code&amp;gt;pygui&amp;lt;/code&amp;gt;: widgets are classes ====&lt;br /&gt;
If you build panels with &amp;lt;code&amp;gt;pygui&amp;lt;/code&amp;gt;, the factory methods are gone. Construct widgets directly.&lt;br /&gt;
 # 1.8.5&lt;br /&gt;
 app = pygui.App(sys.argv)&lt;br /&gt;
 win = pygui.newMainWindow()&lt;br /&gt;
 btn = win.newPushButton(&amp;quot;Start&amp;quot;)&lt;br /&gt;
 plot = win.newPlot()&lt;br /&gt;
 btn.setEventHandler(on_click)&lt;br /&gt;
 &lt;br /&gt;
 # 1.8.6&lt;br /&gt;
 app = pygui.Application(sys.argv)&lt;br /&gt;
 win = pygui.MainWindow()&lt;br /&gt;
 btn = pygui.PushButton(&amp;quot;Start&amp;quot;, win)&lt;br /&gt;
 plot = pygui.Plot(win)&lt;br /&gt;
 btn.eventFilter().setHandler(on_click)&lt;br /&gt;
&lt;br /&gt;
* All 24 &amp;lt;code&amp;gt;newXxx()&amp;lt;/code&amp;gt; factory methods are replaced by constructors of the same name minus &amp;lt;code&amp;gt;new&amp;lt;/code&amp;gt; — except &amp;lt;code&amp;gt;newButton()&amp;lt;/code&amp;gt;, which was an alias of &amp;lt;code&amp;gt;newPushButton()&amp;lt;/code&amp;gt;; use &amp;lt;code&amp;gt;PushButton&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;code&amp;gt;setEventHandler()&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;setFilterEvents()&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;updatefilterEvents()&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;getfilterEvents()&amp;lt;/code&amp;gt; are replaced by &amp;lt;code&amp;gt;eventFilter()&amp;lt;/code&amp;gt;, which gives the one &amp;lt;code&amp;gt;EventFilter&amp;lt;/code&amp;gt; object of the widget - &amp;lt;code&amp;gt;handler()&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;setHandler()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;events()&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;setEvents()&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;isEnabled()&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;setEnabled()&amp;lt;/code&amp;gt; are its methods.&lt;br /&gt;
* &amp;lt;code&amp;gt;App()&amp;lt;/code&amp;gt; became the &amp;lt;code&amp;gt;Application(argv)&amp;lt;/code&amp;gt; constructor.&lt;br /&gt;
* The remaining application module functions moved onto &amp;lt;code&amp;gt;Application&amp;lt;/code&amp;gt; as static methods — &amp;lt;code&amp;gt;appExists()&amp;lt;/code&amp;gt; is &amp;lt;code&amp;gt;Application.exists()&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;processEvents()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;getMainWindow()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;screens()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;screenGeometry()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;setCursor()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;cursorShape()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;beep()&amp;lt;/code&amp;gt; keep their names (&amp;lt;code&amp;gt;pygui.Application.processEvents()&amp;lt;/code&amp;gt;, …). &amp;lt;code&amp;gt;loadFromUiFile()&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;loadFromUiString()&amp;lt;/code&amp;gt; stay module functions.&lt;br /&gt;
* The &amp;lt;code&amp;gt;pygui.app&amp;lt;/code&amp;gt; module attribute is gone — keep the &amp;lt;code&amp;gt;Application&amp;lt;/code&amp;gt; object you construct.&lt;br /&gt;
* &amp;lt;code&amp;gt;WPlot&amp;lt;/code&amp;gt; is now &amp;lt;code&amp;gt;Plot&amp;lt;/code&amp;gt;. &amp;lt;code&amp;gt;setRangeZ()&amp;lt;/code&amp;gt; was removed; layers, lines, scatters, highlights and the axes are returned as objects instead of integer indices. A line, a bar line and a highlight are added on the layer (&amp;lt;code&amp;gt;plot.addLayer().addLine()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;plot.layer(0).addHighlight()&amp;lt;/code&amp;gt;), and the index based duplicates of the object methods are gone (&amp;lt;code&amp;gt;setLineColor()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;setLineWidth()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;setScatter*()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;setHighlight*()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;rangeX/Y()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;setRangeX/Y()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;setAutoRangeX/Y()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;setScaleTypeX/Y()&amp;lt;/code&amp;gt;, the counts, &amp;lt;code&amp;gt;clearLayer/Line/Scatter()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;showLine/Scatter()&amp;lt;/code&amp;gt;). &amp;lt;code&amp;gt;plot.setLineColor(0, 0, &#039;red&#039;)&amp;lt;/code&amp;gt; is &amp;lt;code&amp;gt;plot.layer(0).addLine(&#039;red&#039;)&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;plot.setRangeX(0, 10)&amp;lt;/code&amp;gt; is &amp;lt;code&amp;gt;plot.axisX.setRange(0, 10)&amp;lt;/code&amp;gt;. On the layer &amp;lt;code&amp;gt;setLineData()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;addLinePoint()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;replaceLinePoint()&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;addScatterPoint()&amp;lt;/code&amp;gt; keep taking indices.&lt;br /&gt;
* &amp;lt;code&amp;gt;MpxFrame.setAutoResize()&amp;lt;/code&amp;gt; was removed.&lt;br /&gt;
&lt;br /&gt;
==== 2.12 Constants became enum classes ====&lt;br /&gt;
The &amp;lt;code&amp;gt;PX_*&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;PLUGIN_*&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;PLGERR_*&amp;lt;/code&amp;gt; constants are no longer attributes of &amp;lt;code&amp;gt;pixet&amp;lt;/code&amp;gt;. Each group is an enum class of the &amp;lt;code&amp;gt;pypixet&amp;lt;/code&amp;gt; module, &amp;lt;code&amp;gt;pixet&amp;lt;/code&amp;gt; holds the same classes (&amp;lt;code&amp;gt;pypixet.FileType is pixet.FileType&amp;lt;/code&amp;gt;). The member name is the constant without its group prefix, in upper case (&amp;lt;code&amp;gt;PX_FTYPE_PNG&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;FileType.PNG&amp;lt;/code&amp;gt;).&lt;br /&gt;
 # 1.8.5&lt;br /&gt;
 frame.save(&amp;quot;out.png&amp;quot;, pixet.PX_FTYPE_PNG)&lt;br /&gt;
 &lt;br /&gt;
 # 1.8.6&lt;br /&gt;
 frame.save(&amp;quot;out.png&amp;quot;, pixet.FileType.PNG)&lt;br /&gt;
&amp;lt;code&amp;gt;IntEnum&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;IntFlag&amp;lt;/code&amp;gt; members still compare equal to the old numbers and &amp;lt;code&amp;gt;StrEnum&amp;lt;/code&amp;gt; members to the old strings, so a plain &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;str&amp;lt;/code&amp;gt; is accepted wherever a member is.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Constants&lt;br /&gt;
!Enum class&lt;br /&gt;
!Example&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_PARAM_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PixetParam&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_PARAM_APIVERSION&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;PixetParam.APIVERSION&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_DATAFORMAT_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;DataFormat&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_DATAFORMAT_FRAME&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;DataFormat.FRAME&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_FTYPE_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;FileType&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_FTYPE_AUTODETECT&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;FileType.AUTODETECT&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_FRAMETYPE_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;FramePixelType&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_FRAMETYPE_I16&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;FramePixelType.I16&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_FRAMESAVE_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;SaveFlag&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_FRAMESAVE_BINARY&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;SaveFlag.BINARY&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_MFFORMAT_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;MultiFrameFormat&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_MFFORMAT_BINARY_MULTIFRAME&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;MultiFrameFormat.BINARY_MULTIFRAME&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_DEVINFO_VENDOR_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Vendor&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_DEVINFO_VENDOR_IEAP&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;Vendor.IEAP&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_DEVINFO_TYPE_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;DevModel&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_DEVINFO_TYPE_DUMMY&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;DevModel.DUMMY&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_DEVTYPE_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;DevType&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_DEVTYPE_MPX2&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;DevType.MPX2&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_DEVSTATUS_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;DevStatus&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_DEVSTATUS_OK&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;DevStatus.OK&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_EVENT_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;EventName&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_EVENT_BUSY_CHANGED&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;EventName.BUSY_CHANGED&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_PAR_EVENT_VALUE_CHANGED&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;EventName&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_PAR_EVENT_VALUE_CHANGED&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;EventName.PARAMETER_VALUE_CHANGED&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_EVENT_XRAY_STATUS_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;XrayEventName&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_EVENT_XRAY_STATUS_XRAYON&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;XrayEventName.XRAYON&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_MSGTYPE_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;LogMsgType&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_MSGTYPE_INFO&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;LogMsgType.INFO&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_ACQTYPE_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;AcqType&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_ACQTYPE_FRAMES&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;AcqType.FRAMES&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_ACQMODE_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;AcqMode&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_ACQMODE_NORMAL&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;AcqMode.NORMAL&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_REPEAT_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;RepeatFlags&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_REPEAT_OVERWRITE_SERIES&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;RepeatFlags.OVERWRITE_SERIES&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_CHIPTYPE_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;ChipType&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_CHIPTYPE_MXR&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;ChipType.MXR&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_THLFLG_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;ThlFlag&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_THLFLG_NONE&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;ThlFlag.NONE&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_MPX3_OPM_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Mpx3OpMode&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_MPX3_OPM_SPM_1CH&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;Mpx3OpMode.SPM_1CH&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_MPX3_CNT_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Mpx3Counter&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_MPX3_CNT_LOW&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;Mpx3Counter.LOW&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_MPX3_CNTD_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Mpx3Depth&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_MPX3_CNTD_12B&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;Mpx3Depth.BITS_12&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_MPX3_GAIN_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Mpx3Gain&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_MPX3_GAIN_SUPERHIGH&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;Mpx3Gain.SUPERHIGH&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_TPX3_OPM_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Tpx3OpMode&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_TPX3_OPM_TOATOT&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;Tpx3OpMode.TOATOT&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_TPX3_GRAYCNT_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Tpx3GrayCounter&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_TPX3_GRAYCNT_AUTO&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;Tpx3GrayCounter.AUTO&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_TPX3_FRAMETYPE_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Tpx3FrameType&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_TPX3_FRAMETYPE_SUM&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;Tpx3FrameType.SUM&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_TPX2_OPM_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Tpx2OpMode&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_TPX2_OPM_TOT10_TOA18&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;Tpx2OpMode.TOT10_TOA18&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PXERR_*&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;pxerrors.h&amp;lt;/code&amp;gt;)&lt;br /&gt;
|&amp;lt;code&amp;gt;ErrorCode&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PXERR_FILE_OPEN&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;ErrorCode.FILE_OPEN&amp;lt;/code&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
A class is created only when a method, an argument or a struct field uses it. No method uses &amp;lt;code&amp;gt;PX_DFUID_*&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;PX_EXT_*&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;PX_METADATA_*&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;PX_SENSOR_TYPE_*&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;PX_TPXMODE_*&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;PX_MPX2_DOUTPUT_*&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;PX_DEVMPX2_CALIB_*&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;PX_TPX3_VCO_*&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;PX_PIXETTYPE_*&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;PX_STATUS_*&amp;lt;/code&amp;gt;, so they are no longer available in Python - use the plain value.&lt;br /&gt;
&lt;br /&gt;
Only four values stay plain attributes of &amp;lt;code&amp;gt;pixet&amp;lt;/code&amp;gt;: &amp;lt;code&amp;gt;PX_PIXET_VERSION&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;pixet.VERSION&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;PX_CHIP_ALL&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;pixet.CHIP_ALL&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;PX_TPX3_PIXSAVE_FILTERDUMMY&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;pixet.TPX3_PIXSAVE_FILTERDUMMY&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;PX_TPX3_PIXADD_UPDATE_PREVIEW&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;pixet.TPX3_PIXADD_UPDATE_PREVIEW&amp;lt;/code&amp;gt;.&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=== 3. What&#039;s new ===&lt;br /&gt;
&lt;br /&gt;
==== Detector control ====&lt;br /&gt;
* &amp;lt;code&amp;gt;pixet.devicesTpx2()&amp;lt;/code&amp;gt; joins the existing per-type device lists.&lt;br /&gt;
* Device log events: &amp;lt;code&amp;gt;dev.registerLogEvent()&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;unregisterLogEvent()&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;code&amp;gt;registeredEvents()&amp;lt;/code&amp;gt; lists what &amp;lt;code&amp;gt;registerEvent()&amp;lt;/code&amp;gt; has registered on an object - one &amp;lt;code&amp;gt;EventItem&amp;lt;/code&amp;gt; per registration, with the read only members &amp;lt;code&amp;gt;name&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;callbackId&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;func&amp;lt;/code&amp;gt; (the registered callable). On &amp;lt;code&amp;gt;IDev&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;IDev2&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;IPixet&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;IParamSet&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;IPlugin&amp;lt;/code&amp;gt; - everything that registers events. Log events have their own handler and are not in the list.&lt;br /&gt;
* Constants are enum classes. &amp;lt;code&amp;gt;pixet.PX_FTYPE_AUTODETECT&amp;lt;/code&amp;gt; and friends were invisible to &amp;lt;code&amp;gt;dir()&amp;lt;/code&amp;gt; and to editors. They are now members of enum classes of the module - &amp;lt;code&amp;gt;pypixet.FileType.AUTODETECT&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pypixet.DataType.DOUBLE&amp;lt;/code&amp;gt; - listed in the stub, so autocompletion finds them, and the methods return members (&amp;lt;code&amp;gt;dev.deviceType()&amp;lt;/code&amp;gt; is &amp;lt;code&amp;gt;&amp;lt;DevType.TPX3: 3&amp;gt;&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
==== &amp;lt;code&amp;gt;pygui&amp;lt;/code&amp;gt; ====&lt;br /&gt;
New widgets and types: &amp;lt;code&amp;gt;Table&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;TreeWidget&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;ScrollArea&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;Frame&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;DateEdit&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;TimeEdit&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;DateTimeEdit&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;BoxLayout&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;FormLayout&amp;lt;/code&amp;gt;, and the value types &amp;lt;code&amp;gt;Point&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;Size&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;Rect&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;Color&amp;lt;/code&amp;gt;. Qt constants are exposed as proper enums — &amp;lt;code&amp;gt;CursorShape&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;WindowType&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;EventType&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;AligmentFlag&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;ScrollBarPolicy&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;LayoutSizeConstraint&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;FrameShape&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;FrameShadow&amp;lt;/code&amp;gt; and more.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;Plot&amp;lt;/code&amp;gt; gains per-object layers, lines, scatters, highlights and axes (&amp;lt;code&amp;gt;PlotAxis&amp;lt;/code&amp;gt; on &amp;lt;code&amp;gt;axisX&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;axisY&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;secAxisX&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;secAxisY&amp;lt;/code&amp;gt;), log/linear axis scales, colour maps, the nested &amp;lt;code&amp;gt;ScaleType&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;AxisType&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;AxisOrientation&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;LabelType&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;ColorMap&amp;lt;/code&amp;gt; enums, and &amp;lt;code&amp;gt;setLineData()&amp;lt;/code&amp;gt; for updating a curve in one call. &amp;lt;code&amp;gt;MpxFrame&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;MpxFramePanel&amp;lt;/code&amp;gt; gain &amp;lt;code&amp;gt;data()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;setGamma()&amp;lt;/code&amp;gt;, zoom control (&amp;lt;code&amp;gt;setZoom()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;setZoomRect()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;zoomFactor()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;zoomOut()&amp;lt;/code&amp;gt;), selection rectangles and a &amp;lt;code&amp;gt;toolTipCallback&amp;lt;/code&amp;gt; member, plus the nested &amp;lt;code&amp;gt;SizeType&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;MarkType&amp;lt;/code&amp;gt; enums. &amp;lt;code&amp;gt;ComboBox&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;PropertyTreeView&amp;lt;/code&amp;gt; are much more complete.&lt;br /&gt;
&lt;br /&gt;
The dialog module functions are unchanged — &amp;lt;code&amp;gt;showMessage()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;showWarning()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;showError()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;showQuestion()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;inputText()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;showItemSelection()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;getOpenFileName()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;getSaveFileName()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;getSaveFileNameAndFilter()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;getExistingDirectory()&amp;lt;/code&amp;gt; all keep their 1.8.5 names and signatures.&lt;br /&gt;
&lt;br /&gt;
==== &amp;lt;code&amp;gt;pyclustering&amp;lt;/code&amp;gt; ====&lt;br /&gt;
A real module rather than a plugin shim, with &amp;lt;code&amp;gt;Pixel&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;Cluster&amp;lt;/code&amp;gt; value types:&lt;br /&gt;
 import pypixet&lt;br /&gt;
 import pyclustering&lt;br /&gt;
 &lt;br /&gt;
 pixet = pypixet.start()&lt;br /&gt;
 device = pixet.devices()[0]&lt;br /&gt;
 &lt;br /&gt;
 c = pyclustering.Clustering(device)&lt;br /&gt;
 c.newClustersCb = lambda clusters, acqIndex: print(len(clusters), &amp;quot;clusters&amp;quot;)&lt;br /&gt;
 c.loadCalibrationFromDevice()&lt;br /&gt;
 c.startMeasurement(1.0, 60.0, &amp;quot;run.clog&amp;quot;)&lt;br /&gt;
&amp;lt;code&amp;gt;Clustering(device)&amp;lt;/code&amp;gt; takes the device the measurement runs on; without it only &amp;lt;code&amp;gt;replayData()&amp;lt;/code&amp;gt; works — &amp;lt;code&amp;gt;startMeasurement()&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;loadCalibrationFromDevice()&amp;lt;/code&amp;gt; need one. The methods take positional arguments only, keyword arguments raise &amp;lt;code&amp;gt;TypeError&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Also: &amp;lt;code&amp;gt;replayData()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;abort()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;isRunning()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;loadCalibrationFromFiles()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;isCalibrationLoaded()&amp;lt;/code&amp;gt;, and the callbacks &amp;lt;code&amp;gt;messageCb&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;progressCb&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;newClustersWithPixelsCb&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;acqStartedCb&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;acqFinishedCb&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==== &amp;lt;code&amp;gt;pyspectraimg&amp;lt;/code&amp;gt; ====&lt;br /&gt;
Replaces the flat &amp;lt;code&amp;gt;si*&amp;lt;/code&amp;gt; functions with a &amp;lt;code&amp;gt;SpectraImg&amp;lt;/code&amp;gt; object and a &amp;lt;code&amp;gt;ProcParameters&amp;lt;/code&amp;gt; settings object:&lt;br /&gt;
 import pyspectraimg&lt;br /&gt;
 &lt;br /&gt;
 si = pyspectraimg.SpectraImg(dev)&lt;br /&gt;
 si.progressCb = lambda finished, pct: print(f&amp;quot;{pct:.0f}%&amp;quot;)&lt;br /&gt;
 si.loadCalibrationFromDevice()&lt;br /&gt;
 si.startMeasurement(1.0, 60.0, &amp;quot;run.h5&amp;quot;, True)&lt;br /&gt;
 img = si.getFrameForEnergyRange(10, 40, True)&lt;br /&gt;
The device argument is mandatory — &amp;lt;code&amp;gt;SpectraImg&amp;lt;/code&amp;gt; reads the matrix size and the chip layout from it. As in &amp;lt;code&amp;gt;pyclustering&amp;lt;/code&amp;gt;, the methods take positional arguments only.&lt;br /&gt;
&lt;br /&gt;
Plus &amp;lt;code&amp;gt;getGlobalSpectrum()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;getGlobalSpectrumInRect()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;saveSumFrame()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;saveDataAsFramesToFile()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;setXrfParams()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;processedPixelsPerSecond()&amp;lt;/code&amp;gt;, and XRF correction options on &amp;lt;code&amp;gt;ProcParameters&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==== &amp;lt;code&amp;gt;pyutils&amp;lt;/code&amp;gt; ====&lt;br /&gt;
* New &amp;lt;code&amp;gt;linearRegression(y, x)&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Results are named tuples now, so &amp;lt;code&amp;gt;result.mean&amp;lt;/code&amp;gt; works alongside &amp;lt;code&amp;gt;result[0]&amp;lt;/code&amp;gt;: &amp;lt;code&amp;gt;SpectrumPeak&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;GerfFitResult&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;FitPeakResult&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;PerformToTfitResult&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;LinearRegressionResult&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;ClustersWithParams&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;code&amp;gt;calibGetSpectrumPeak()&amp;lt;/code&amp;gt; was renamed to &amp;lt;code&amp;gt;calibSpectrumPeak()&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;code&amp;gt;performToTfit()&amp;lt;/code&amp;gt; no longer takes a &amp;lt;code&amp;gt;stddev_out&amp;lt;/code&amp;gt; argument — the value is in the result.&lt;br /&gt;
&lt;br /&gt;
==== &amp;lt;code&amp;gt;pyftdi&amp;lt;/code&amp;gt; ====&lt;br /&gt;
The module-level functions now raise &amp;lt;code&amp;gt;RuntimeError&amp;lt;/code&amp;gt; with the FTDI error text instead of returning a status code, and &amp;lt;code&amp;gt;open()&amp;lt;/code&amp;gt; closes a device left open by an earlier &amp;lt;code&amp;gt;open()&amp;lt;/code&amp;gt;. The &amp;lt;code&amp;gt;Ftdi&amp;lt;/code&amp;gt; class — which already existed in 1.8.5 and lets you drive several devices at once — keeps its status-code return values, so its methods are unchanged.&lt;br /&gt;
 # 1.8.5&lt;br /&gt;
 rc = pyftdi.open(&amp;quot;FT4232H&amp;quot;, 115200)&lt;br /&gt;
 if rc != 0:&lt;br /&gt;
     ...&lt;br /&gt;
 &lt;br /&gt;
 # 1.8.6&lt;br /&gt;
 try:&lt;br /&gt;
     pyftdi.open(&amp;quot;FT4232H&amp;quot;, 115200)&lt;br /&gt;
 except RuntimeError as exc:&lt;br /&gt;
     ...&lt;br /&gt;
&lt;br /&gt;
==== Editor support ====&lt;br /&gt;
Every module ships a &amp;lt;code&amp;gt;.pyi&amp;lt;/code&amp;gt; type stub — &amp;lt;code&amp;gt;pypixet&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pygui&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pyutils&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pyclustering&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pyspectraimg&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pyftdi&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pyhid&amp;lt;/code&amp;gt;. Editors and type checkers pick these up automatically and give you completion, parameter hints and type checking against the API.&lt;br /&gt;
&lt;br /&gt;
The stubs are generated, and two of them are behind the sources in this release: &amp;lt;code&amp;gt;pypixet.pyi&amp;lt;/code&amp;gt; lists only a few of &amp;lt;code&amp;gt;IPixet&amp;lt;/code&amp;gt;&#039;s methods and still declares the removed &amp;lt;code&amp;gt;getLasError()&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;pygui.pyi&amp;lt;/code&amp;gt; omits the static methods of &amp;lt;code&amp;gt;Application&amp;lt;/code&amp;gt;. The modules themselves are correct — use &amp;lt;code&amp;gt;help()&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;dir()&amp;lt;/code&amp;gt; when a stub looks incomplete.&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=== 4. Removed modules ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Module&lt;br /&gt;
!Replacement&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;pymeasutils&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;pyspectraimg&amp;lt;/code&amp;gt; — same functionality, object API&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;pybhfilter&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pyfffilter&amp;lt;/code&amp;gt;&lt;br /&gt;
|The filters themselves are unchanged; reach them through &amp;lt;code&amp;gt;pixet.filter_mgr&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;filters()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;filterByName()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;addFilter()&amp;lt;/code&amp;gt;)&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;pypxproc&amp;lt;/code&amp;gt;&lt;br /&gt;
|No direct replacement&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;pydevcontrol&amp;lt;/code&amp;gt;&lt;br /&gt;
|No direct replacement&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;pyequalization&amp;lt;/code&amp;gt;&lt;br /&gt;
|No direct replacement&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;pyfitpix&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pyminipix&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pymodupix&amp;lt;/code&amp;gt;&lt;br /&gt;
|Device-specific helpers; use the standard &amp;lt;code&amp;gt;IDev&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;IDevMpx&amp;lt;/code&amp;gt; API&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;pypyscripting&amp;lt;/code&amp;gt;&lt;br /&gt;
|No direct replacement&lt;br /&gt;
|}&lt;br /&gt;
The underlying Pixet features are unaffected — it is the thin Python wrapper modules that were retired. If you depend on one of these, contact support before upgrading so we can cover your use case.&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=== 5. Upgrade checklist ===&lt;br /&gt;
# Wrap acquisition and configuration calls in &amp;lt;code&amp;gt;try&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;except pypixet.PixetError&amp;lt;/code&amp;gt;; remove &amp;lt;code&amp;gt;-1&amp;lt;/code&amp;gt; checks and &amp;lt;code&amp;gt;pypixet.getLasError()&amp;lt;/code&amp;gt;.&lt;br /&gt;
# Delete every &amp;lt;code&amp;gt;destroy()&amp;lt;/code&amp;gt; call and rename &amp;lt;code&amp;gt;*RefInc()&amp;lt;/code&amp;gt; to the plain name.&lt;br /&gt;
# Replace &amp;lt;code&amp;gt;dev.parameters().get(name).getX()&amp;lt;/code&amp;gt; with &amp;lt;code&amp;gt;dev.params.getValue(name)&amp;lt;/code&amp;gt;.&lt;br /&gt;
# Drop the parentheses from &amp;lt;code&amp;gt;dev.dacs()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;dev.pixCfg()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pixet.dataMgr()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pixet.filterMgr()&amp;lt;/code&amp;gt;.&lt;br /&gt;
# Replace &amp;lt;code&amp;gt;dev.createCopyOfDacs()&amp;lt;/code&amp;gt; with &amp;lt;code&amp;gt;dev.dacs.copy()&amp;lt;/code&amp;gt; (and &amp;lt;code&amp;gt;dev.dacsMode(m)&amp;lt;/code&amp;gt; with &amp;lt;code&amp;gt;dev.dacs_opm[m]&amp;lt;/code&amp;gt;).&lt;br /&gt;
# Add &amp;lt;code&amp;gt;pixet.data_mgr&amp;lt;/code&amp;gt; as the first argument to &amp;lt;code&amp;gt;save()&amp;lt;/code&amp;gt;.&lt;br /&gt;
# Qualify mask calls with &amp;lt;code&amp;gt;User&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;Factory&amp;lt;/code&amp;gt;.&lt;br /&gt;
# Drop &amp;lt;code&amp;gt;asIMpxFrame()&amp;lt;/code&amp;gt; — the acquisition getters already return &amp;lt;code&amp;gt;IMpxFrame&amp;lt;/code&amp;gt; — and replace &amp;lt;code&amp;gt;canCastToDataFormat()&amp;lt;/code&amp;gt; with a &amp;lt;code&amp;gt;data.dataFormat()&amp;lt;/code&amp;gt; comparison.&lt;br /&gt;
# In &amp;lt;code&amp;gt;pygui&amp;lt;/code&amp;gt; code, swap &amp;lt;code&amp;gt;newXxx()&amp;lt;/code&amp;gt; factories for constructors and &amp;lt;code&amp;gt;setEventHandler()&amp;lt;/code&amp;gt; for &amp;lt;code&amp;gt;eventFilter().setHandler()&amp;lt;/code&amp;gt;.&lt;br /&gt;
# Replace the &amp;lt;code&amp;gt;pixet.PX_*&amp;lt;/code&amp;gt; constants with the enum class members (§2.12).&lt;br /&gt;
# Check §4 for any removed module you import.&lt;/div&gt;</summary>
		<author><name>Kocid</name></author>
	</entry>
	<entry>
		<id>https://wiki.advacam.cz/index.php?title=Pixet_1.8.5_%E2%86%92_1.8.6&amp;diff=1764</id>
		<title>Pixet 1.8.5 → 1.8.6</title>
		<link rel="alternate" type="text/html" href="https://wiki.advacam.cz/index.php?title=Pixet_1.8.5_%E2%86%92_1.8.6&amp;diff=1764"/>
		<updated>2026-10-13T09:17:00Z</updated>

		<summary type="html">&lt;p&gt;Kocid: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Pixet Python API ==&lt;br /&gt;
This release modernises the Python API. Scripts written against 1.8.5 will need changes — the list of what to fix is in §2, with before/after for each item.&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=== 1. At a glance ===&lt;br /&gt;
* Errors are Python exceptions now. Calls raise a &amp;lt;code&amp;gt;PixetError&amp;lt;/code&amp;gt; (a subclass by the kind of the error - &amp;lt;code&amp;gt;DeviceError&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;PixetFileError&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;PixetValueError&amp;lt;/code&amp;gt;, ...) instead of returning &amp;lt;code&amp;gt;-1&amp;lt;/code&amp;gt;.&lt;br /&gt;
* No more manual memory management. &amp;lt;code&amp;gt;destroy()&amp;lt;/code&amp;gt; and the &amp;lt;code&amp;gt;*RefInc()&amp;lt;/code&amp;gt; call variants are gone; objects are released for you.&lt;br /&gt;
* Common getters became properties — &amp;lt;code&amp;gt;dev.params&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;dev.pixcfg&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;dev.dacs&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pixet.data_mgr&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Parameter access is type-free — one &amp;lt;code&amp;gt;getValue()&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;setValue()&amp;lt;/code&amp;gt; pair instead of 39 typed accessors.&lt;br /&gt;
* Pixel masks are split into a factory mask, your own user mask, and a read-only combined view.&lt;br /&gt;
* &amp;lt;code&amp;gt;pygui&amp;lt;/code&amp;gt; is a real widget toolkit — constructors instead of factory methods, plus tables, trees, scroll areas, date/time editors, a reworked plot, and Qt enums.&lt;br /&gt;
* Clustering and spectral imaging are proper modules with object APIs and progress callbacks.&lt;br /&gt;
* Type stubs ship with every module, so editors give you autocompletion and signature help (with the gaps noted in §3).&lt;br /&gt;
* Ten helper modules were removed (§4).&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=== 2. Breaking changes — what to fix in your scripts ===&lt;br /&gt;
&lt;br /&gt;
==== 2.1 Check for exceptions, not return codes ====&lt;br /&gt;
Failures now raise a &amp;lt;code&amp;gt;pypixet.PixetError&amp;lt;/code&amp;gt;; bad arguments raise the usual &amp;lt;code&amp;gt;TypeError&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;ValueError&amp;lt;/code&amp;gt;. The subclass tells the kind of the error - &amp;lt;code&amp;gt;DeviceError&amp;lt;/code&amp;gt; (a failed device method, acquisition or communication), &amp;lt;code&amp;gt;PixetFileError&amp;lt;/code&amp;gt; (also an &amp;lt;code&amp;gt;OSError&amp;lt;/code&amp;gt;), &amp;lt;code&amp;gt;PixetTimeoutError&amp;lt;/code&amp;gt; (also a &amp;lt;code&amp;gt;TimeoutError&amp;lt;/code&amp;gt;), &amp;lt;code&amp;gt;PixetValueError&amp;lt;/code&amp;gt; (also a &amp;lt;code&amp;gt;ValueError&amp;lt;/code&amp;gt;) and &amp;lt;code&amp;gt;PixetNotFoundError&amp;lt;/code&amp;gt; (also a &amp;lt;code&amp;gt;LookupError&amp;lt;/code&amp;gt;). Every exception has &amp;lt;code&amp;gt;code&amp;lt;/code&amp;gt; (an &amp;lt;code&amp;gt;ErrorCode&amp;lt;/code&amp;gt; member) and &amp;lt;code&amp;gt;message&amp;lt;/code&amp;gt;. The classes exist as soon as &amp;lt;code&amp;gt;pypixet&amp;lt;/code&amp;gt; is imported. &amp;lt;code&amp;gt;pypixet.start()&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;pypixet.exit()&amp;lt;/code&amp;gt; themselves raise plain &amp;lt;code&amp;gt;RuntimeError&amp;lt;/code&amp;gt; — they run before the Pixet API is up.&lt;br /&gt;
 # 1.8.5&lt;br /&gt;
 rc = dev.doSimpleAcquisition(1, 0.1, pixet.PX_FTYPE_AUTODETECT, &amp;quot;out.pmf&amp;quot;)&lt;br /&gt;
 if rc &amp;lt; 0:&lt;br /&gt;
     print(&amp;quot;acquisition failed:&amp;quot;, pypixet.getLasError())&lt;br /&gt;
 &lt;br /&gt;
 # 1.8.6&lt;br /&gt;
 try:&lt;br /&gt;
     dev.doSimpleAcquisition(1, 0.1, &amp;quot;out.pmf&amp;quot;)&lt;br /&gt;
 except pypixet.PixetError as exc:&lt;br /&gt;
     print(&amp;quot;acquisition failed:&amp;quot;, exc)&lt;br /&gt;
&amp;lt;code&amp;gt;pypixet.getLasError()&amp;lt;/code&amp;gt; has been removed — the message is on the exception.&lt;br /&gt;
&lt;br /&gt;
==== 2.2 Delete every &amp;lt;code&amp;gt;destroy()&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;*RefInc()&amp;lt;/code&amp;gt; call ====&lt;br /&gt;
 # 1.8.5&lt;br /&gt;
 frame = dev.lastAcqFrameRefInc()&lt;br /&gt;
 data = frame.data()&lt;br /&gt;
 frame.destroy()&lt;br /&gt;
 &lt;br /&gt;
 # 1.8.6&lt;br /&gt;
 frame = dev.lastAcqFrame()&lt;br /&gt;
 data = frame.data()&lt;br /&gt;
Removed everywhere: &amp;lt;code&amp;gt;destroy()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;destroyCE()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;incRefCount()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;decRefCount()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;privateInterface()&amp;lt;/code&amp;gt;, and the &amp;lt;code&amp;gt;RefInc&amp;lt;/code&amp;gt; variants &amp;lt;code&amp;gt;acqDataRefInc&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;acqFrameRefInc&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;lastAcqDataRefInc&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;lastAcqFrameRefInc&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;lastAcqPixelsRefInc&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;lastAcqClustersRefInc&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==== 2.3 Device parameters: one generic accessor ====&lt;br /&gt;
&amp;lt;code&amp;gt;dev.parameters()&amp;lt;/code&amp;gt; returned a parameter manager with 13 typed create/get/set families. It is replaced by the &amp;lt;code&amp;gt;dev.params&amp;lt;/code&amp;gt; property and a single value API.&lt;br /&gt;
 # 1.8.5&lt;br /&gt;
 bias = dev.parameters().get(&amp;quot;BiasVoltage&amp;quot;).getDouble()&lt;br /&gt;
 dev.parameters().get(&amp;quot;BiasVoltage&amp;quot;).setDouble(200.0)&lt;br /&gt;
 &lt;br /&gt;
 # 1.8.6&lt;br /&gt;
 bias = dev.params.getValue(&amp;quot;BiasVoltage&amp;quot;)&lt;br /&gt;
 dev.params.setValue(&amp;quot;BiasVoltage&amp;quot;, 200.0)&lt;br /&gt;
&amp;lt;code&amp;gt;getValue()&amp;lt;/code&amp;gt; returns the natural Python type. If you need to know it, &amp;lt;code&amp;gt;dev.params.type(&amp;quot;BiasVoltage&amp;quot;)&amp;lt;/code&amp;gt; returns an &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt; you can compare against the new &amp;lt;code&amp;gt;pixet.DataType&amp;lt;/code&amp;gt; enum (&amp;lt;code&amp;gt;Double&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;String&amp;lt;/code&amp;gt;, …), which is an &amp;lt;code&amp;gt;IntEnum&amp;lt;/code&amp;gt; — &amp;lt;code&amp;gt;dev.params.type(name) == pixet.DataType.DOUBLE&amp;lt;/code&amp;gt;. Blobs come back through &amp;lt;code&amp;gt;getBlob()&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;isBlob()&amp;lt;/code&amp;gt; tells you when to use it. &amp;lt;code&amp;gt;addValue(name, value, description=&amp;lt;nowiki&amp;gt;&#039;&#039;&amp;lt;/nowiki&amp;gt;, dataType=-1)&amp;lt;/code&amp;gt; replaces &amp;lt;code&amp;gt;addBOOL&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;addI32&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;addString&amp;lt;/code&amp;gt; and the rest.&lt;br /&gt;
&lt;br /&gt;
==== 2.4 Getters that became properties ====&lt;br /&gt;
 dev.parameters()      →  dev.params&lt;br /&gt;
 dev.pixCfg()          →  dev.pixcfg&lt;br /&gt;
 dev.dacs()            →  dev.dacs&lt;br /&gt;
 pixet.dataMgr()       →  pixet.data_mgr&lt;br /&gt;
Drop the parentheses — these are attributes, not calls. &amp;lt;code&amp;gt;dacs&amp;lt;/code&amp;gt; keeps its name and only loses the parentheses; the rest of the DAC api changed as well, see §2.8.&lt;br /&gt;
&lt;br /&gt;
==== 2.5 Acquisition results ====&lt;br /&gt;
 dev.lastAcqFrameRefInc()    →  dev.lastAcqFrame()&lt;br /&gt;
 dev.lastAcqDataRefInc()     →  dev.lastAcqData()&lt;br /&gt;
 dev.acqFrameRefInc(i)       →  dev.acqFrame(i)&lt;br /&gt;
 dev.acqDataRefInc(i)        →  dev.acqData(i)&lt;br /&gt;
&amp;lt;code&amp;gt;doSimpleAcquisition()&amp;lt;/code&amp;gt; has no &amp;lt;code&amp;gt;fileType&amp;lt;/code&amp;gt; argument any more - the file type is always detected from the file name (&amp;lt;code&amp;gt;PX_FTYPE_AUTODETECT&amp;lt;/code&amp;gt;) - and &amp;lt;code&amp;gt;fileName&amp;lt;/code&amp;gt; defaults to &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&#039;&#039;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, so &amp;lt;code&amp;gt;dev.doSimpleAcquisition(1, 0.1)&amp;lt;/code&amp;gt; is enough for a measurement you only want in memory.&lt;br /&gt;
&lt;br /&gt;
New on Timepix3 devices:&lt;br /&gt;
 dev.lastAcqClustersRefInc()   →  dev.&amp;lt;code&amp;gt;lastAcqClusters&amp;lt;/code&amp;gt;()&lt;br /&gt;
 dev.lastAcqPixelsRefInc()     →  dev.lastAcqPixels()&lt;br /&gt;
&lt;br /&gt;
==== 2.6 &amp;lt;code&amp;gt;save()&amp;lt;/code&amp;gt; takes the data manager ====&lt;br /&gt;
 # 1.8.5&lt;br /&gt;
 frame.save(&amp;quot;out.pmf&amp;quot;, pixet.PX_FTYPE_AUTODETECT)&lt;br /&gt;
 &lt;br /&gt;
 # 1.8.6&lt;br /&gt;
 frame.save(pixet.data_mgr, &amp;quot;out.pmf&amp;quot;, pixet.FileType.AUTODETECT)&lt;br /&gt;
&amp;lt;code&amp;gt;load()&amp;lt;/code&amp;gt; is unchanged.&lt;br /&gt;
&lt;br /&gt;
==== 2.7 Pixel masking: factory mask vs user mask ====&lt;br /&gt;
The single mask was split into a factory mask (from the detector&#039;s calibration) and a user mask (yours), plus a read-only combined view. Every &amp;lt;code&amp;gt;mask*&amp;lt;/code&amp;gt; name gained a &amp;lt;code&amp;gt;Factory&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;User&amp;lt;/code&amp;gt; qualifier.&lt;br /&gt;
 # 1.8.5&lt;br /&gt;
 dev.pixCfg().mask(pixel, True)&lt;br /&gt;
 n = dev.pixCfg().maskedCount()&lt;br /&gt;
 m = dev.pixCfg().maskMatrix()&lt;br /&gt;
 &lt;br /&gt;
 # 1.8.6&lt;br /&gt;
 dev.pixcfg.maskUser(pixel, True)&lt;br /&gt;
 n = dev.pixcfg.userMaskedCount()          # or combinedMaskedCount()&lt;br /&gt;
 m = dev.pixcfg.userMaskMatrix()           # or combinedMaskMatrix()&lt;br /&gt;
&amp;lt;code&amp;gt;maskUser()&amp;lt;/code&amp;gt; takes a linear pixel index, as &amp;lt;code&amp;gt;mask()&amp;lt;/code&amp;gt; did; &amp;lt;code&amp;gt;maskUserRect(x, y, width, height, masked)&amp;lt;/code&amp;gt; is the one that works in coordinates.&lt;br /&gt;
&lt;br /&gt;
The same rule applies to the chip, row, column and rect variants (&amp;lt;code&amp;gt;maskUserChip&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;maskUserRow&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;maskUserColumn&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;maskUserRect&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;isUserMasked*&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;setUserMaskMatrix*&amp;lt;/code&amp;gt;, …) and to their &amp;lt;code&amp;gt;Factory&amp;lt;/code&amp;gt; counterparts. Also new: &amp;lt;code&amp;gt;clearUserMask()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;clearFactoryMask()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;copyUserMask()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;copyMasksFromPixCfg()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;isCombinedMasked()&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
On Medipix2/Timepix pixel configs, the whole-matrix &amp;lt;code&amp;gt;modeMatrix()&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;setModeMatrix()&amp;lt;/code&amp;gt; were removed; the per-chip &amp;lt;code&amp;gt;modeMatrixChip()&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;setModeMatrixChip()&amp;lt;/code&amp;gt; and the &amp;lt;code&amp;gt;setMode*&amp;lt;/code&amp;gt; calls are unchanged.&lt;br /&gt;
&lt;br /&gt;
==== 2.8 DACs: a property, and &amp;lt;code&amp;gt;copy()&amp;lt;/code&amp;gt; instead of &amp;lt;code&amp;gt;createCopyOfDacs()&amp;lt;/code&amp;gt; ====&lt;br /&gt;
 # 1.8.5&lt;br /&gt;
 dacs = dev.dacs()                     # the DACs of the device&lt;br /&gt;
 copy = dev.createCopyOfDacs()         # an independent set with the values of the device&lt;br /&gt;
 ...&lt;br /&gt;
 copy.destroy()&lt;br /&gt;
 &lt;br /&gt;
 # 1.8.6&lt;br /&gt;
 dacs = dev.dacs                       # a property, the same object on every access&lt;br /&gt;
 copy = dacs.copy()                    # an independent set with the values of &#039;dacs&#039;&lt;br /&gt;
&amp;lt;code&amp;gt;dev.createCopyOfDacs()&amp;lt;/code&amp;gt; no longer exists — &amp;lt;code&amp;gt;dev.dacs.copy()&amp;lt;/code&amp;gt; replaces it, and &amp;lt;code&amp;gt;copy.copy(dev.dacs)&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;copy.deepcopy(dev.dacs)&amp;lt;/code&amp;gt; do the same. Both hand back a set which already carries the values it was copied from and which nothing has to destroy. The difference is what is copied: &amp;lt;code&amp;gt;createCopyOfDacs()&amp;lt;/code&amp;gt; always took the DACs of the device, while &amp;lt;code&amp;gt;copy()&amp;lt;/code&amp;gt; takes the set you call it on — &amp;lt;code&amp;gt;dev.dacs_opm[&amp;quot;CSM&amp;quot;].copy()&amp;lt;/code&amp;gt; copies that operation mode. &amp;lt;code&amp;gt;copyFromDacs()&amp;lt;/code&amp;gt; is still there for copying between two sets you already have.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;dacs.is_main&amp;lt;/code&amp;gt; tells the DACs of the device (&amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt;) from a copy (&amp;lt;code&amp;gt;0&amp;lt;/code&amp;gt;), and writing a copy leaves the device untouched until you send the set to it.&lt;br /&gt;
&lt;br /&gt;
Setting values is unchanged: &amp;lt;code&amp;gt;dacs.setDac(index, chip, value)&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;dacs.setToDevice()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;dacs.setDefault()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;dev.setDacs(dacs)&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;dev.refreshDacs()&amp;lt;/code&amp;gt;. &amp;lt;code&amp;gt;dacs.names()&amp;lt;/code&amp;gt; returns the DAC names as a list of &amp;lt;code&amp;gt;str&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;thresholdToDac()&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;dacToThreshold()&amp;lt;/code&amp;gt; convert against the chip type of the device.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;dev.createCopyOfPixCfg()&amp;lt;/code&amp;gt; went the same way — &amp;lt;code&amp;gt;dev.pixcfg.copy()&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Medipix3 operation modes&lt;br /&gt;
 # 1.8.5&lt;br /&gt;
 dacs = dev.dacsMode(pixet.PX_MPX3_OPM_CSM)&lt;br /&gt;
 copy = dev.createCopyOfDacsMode(pixet.PX_MPX3_OPM_CSM)&lt;br /&gt;
 dev.setDacsMode(pixet.PX_MPX3_OPM_CSM, dacs)&lt;br /&gt;
 &lt;br /&gt;
 # 1.8.6&lt;br /&gt;
 dacs = dev.dacs_opm[pixet.Mpx3OpMode.CSM]     # or dev.dacs_opm[&amp;quot;CSM&amp;quot;]&lt;br /&gt;
 copyDacs = dacs.copy()&lt;br /&gt;
 copyDacs.setToDevice()                        # dev.setDacsMode(pixet.Mpx3OpMode.CSM, copyDacs)&lt;br /&gt;
&amp;lt;code&amp;gt;dacsMode()&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;createCopyOfDacsMode()&amp;lt;/code&amp;gt; are removed. &amp;lt;code&amp;gt;dev.dacs_opm&amp;lt;/code&amp;gt; is a sequence of the &amp;lt;code&amp;gt;IMpxDacs&amp;lt;/code&amp;gt; of every operation mode - &amp;lt;code&amp;gt;len()&amp;lt;/code&amp;gt;, iteration, &amp;lt;code&amp;gt;names()&amp;lt;/code&amp;gt;, and an index which is the mode number or its name (case insensitive, the &amp;lt;code&amp;gt;PX_MPX3_OPM_&amp;lt;/code&amp;gt; prefix optional). The object of a mode is cached, so &amp;lt;code&amp;gt;dev.dacs_opm[0] is dev.dacs_opm[0]&amp;lt;/code&amp;gt;, and modes which share one set of DACs in the device share the object. &amp;lt;code&amp;gt;dev.pixcfg_opm&amp;lt;/code&amp;gt; is the same for the pixel configurations, in place of &amp;lt;code&amp;gt;pixCfgMode()&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;createCopyOfPixCfgMode()&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==== 2.9 Type casting: check the data format ====&lt;br /&gt;
The wrapper classes now form a real hierarchy — &amp;lt;code&amp;gt;IDevMpx3&amp;lt;/code&amp;gt; derives from &amp;lt;code&amp;gt;IDevMpx&amp;lt;/code&amp;gt; derives from &amp;lt;code&amp;gt;IDev&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;IMpxFrame&amp;lt;/code&amp;gt; derives from &amp;lt;code&amp;gt;IData&amp;lt;/code&amp;gt;. Most of the time no cast is needed at all: &amp;lt;code&amp;gt;dev.lastAcqFrame()&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;dev.acqFrame(i)&amp;lt;/code&amp;gt; already hand you an &amp;lt;code&amp;gt;IMpxFrame&amp;lt;/code&amp;gt;.&lt;br /&gt;
 # 1.8.5&lt;br /&gt;
 frame = data.asIMpxFrame()&lt;br /&gt;
 if data.canCastToDataFormat(pixet.PX_DATAFORMAT_FRAME):&lt;br /&gt;
     ...&lt;br /&gt;
 &lt;br /&gt;
 # 1.8.6&lt;br /&gt;
 if data.dataFormat() == pixet.DataFormat.FRAME:&lt;br /&gt;
     ...&lt;br /&gt;
Removed: &amp;lt;code&amp;gt;asIData()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;asIMpxFrame()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;asIDev()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;canCastToDataFormat()&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The wrapper types themselves are not module attributes — there is no &amp;lt;code&amp;gt;pypixet.IMpxFrame&amp;lt;/code&amp;gt; to pass to &amp;lt;code&amp;gt;isinstance()&amp;lt;/code&amp;gt;. Test the data format as above, or compare &amp;lt;code&amp;gt;type(data).__name__&amp;lt;/code&amp;gt; with &amp;lt;code&amp;gt;&amp;quot;IMpxFrame&amp;quot;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==== 2.10 Other renamed calls ====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!1.8.5&lt;br /&gt;
!1.8.6&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;frame.convertToChipByChip()&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;frame.chipByChipImage()&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;frame.ignoreMasked()&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;frame.setIgnoreMasked()&amp;lt;/code&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
The plugin API is reduced, not removed: &amp;lt;code&amp;gt;pixet.plugins()&amp;lt;/code&amp;gt; still lists the loaded plugins and &amp;lt;code&amp;gt;IPlugin&amp;lt;/code&amp;gt; keeps &amp;lt;code&amp;gt;id()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;name()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;execute()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;params&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;registerEvent()&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;unregisterEvent()&amp;lt;/code&amp;gt;. Gone from it are &amp;lt;code&amp;gt;pixet.addPlugin()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pixet.plugin(name)&amp;lt;/code&amp;gt; and the &amp;lt;code&amp;gt;IMenuItem&amp;lt;/code&amp;gt; type.&lt;br /&gt;
&lt;br /&gt;
Also removed with no replacement in this release: the filter config-dialog hooks (&amp;lt;code&amp;gt;hasConfigGUI()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;showConfigGUI()&amp;lt;/code&amp;gt;), custom file-type registration (&amp;lt;code&amp;gt;dataMgr.registerFileType()&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;unregisterFileType()&amp;lt;/code&amp;gt;), and the &amp;lt;code&amp;gt;IByteBuff&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;IRefByteBuff&amp;lt;/code&amp;gt; buffer objects — buffer data is passed as plain Python lists.&lt;br /&gt;
&lt;br /&gt;
==== 2.11 &amp;lt;code&amp;gt;pygui&amp;lt;/code&amp;gt;: widgets are classes ====&lt;br /&gt;
If you build panels with &amp;lt;code&amp;gt;pygui&amp;lt;/code&amp;gt;, the factory methods are gone. Construct widgets directly.&lt;br /&gt;
 # 1.8.5&lt;br /&gt;
 app = pygui.App(sys.argv)&lt;br /&gt;
 win = pygui.newMainWindow()&lt;br /&gt;
 btn = win.newPushButton(&amp;quot;Start&amp;quot;)&lt;br /&gt;
 plot = win.newPlot()&lt;br /&gt;
 btn.setEventHandler(on_click)&lt;br /&gt;
 &lt;br /&gt;
 # 1.8.6&lt;br /&gt;
 app = pygui.Application(sys.argv)&lt;br /&gt;
 win = pygui.MainWindow()&lt;br /&gt;
 btn = pygui.PushButton(&amp;quot;Start&amp;quot;, win)&lt;br /&gt;
 plot = pygui.Plot(win)&lt;br /&gt;
 btn.eventFilter().setHandler(on_click)&lt;br /&gt;
&lt;br /&gt;
* All 24 &amp;lt;code&amp;gt;newXxx()&amp;lt;/code&amp;gt; factory methods are replaced by constructors of the same name minus &amp;lt;code&amp;gt;new&amp;lt;/code&amp;gt; — except &amp;lt;code&amp;gt;newButton()&amp;lt;/code&amp;gt;, which was an alias of &amp;lt;code&amp;gt;newPushButton()&amp;lt;/code&amp;gt;; use &amp;lt;code&amp;gt;PushButton&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;code&amp;gt;setEventHandler()&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;setFilterEvents()&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;updatefilterEvents()&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;getfilterEvents()&amp;lt;/code&amp;gt; are replaced by &amp;lt;code&amp;gt;eventFilter()&amp;lt;/code&amp;gt;, which gives the one &amp;lt;code&amp;gt;EventFilter&amp;lt;/code&amp;gt; object of the widget - &amp;lt;code&amp;gt;handler()&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;setHandler()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;events()&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;setEvents()&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;isEnabled()&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;setEnabled()&amp;lt;/code&amp;gt; are its methods.&lt;br /&gt;
* &amp;lt;code&amp;gt;App()&amp;lt;/code&amp;gt; became the &amp;lt;code&amp;gt;Application(argv)&amp;lt;/code&amp;gt; constructor.&lt;br /&gt;
* The remaining application module functions moved onto &amp;lt;code&amp;gt;Application&amp;lt;/code&amp;gt; as static methods — &amp;lt;code&amp;gt;appExists()&amp;lt;/code&amp;gt; is &amp;lt;code&amp;gt;Application.exists()&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;processEvents()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;getMainWindow()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;screens()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;screenGeometry()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;setCursor()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;cursorShape()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;beep()&amp;lt;/code&amp;gt; keep their names (&amp;lt;code&amp;gt;pygui.Application.processEvents()&amp;lt;/code&amp;gt;, …). &amp;lt;code&amp;gt;loadFromUiFile()&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;loadFromUiString()&amp;lt;/code&amp;gt; stay module functions.&lt;br /&gt;
* The &amp;lt;code&amp;gt;pygui.app&amp;lt;/code&amp;gt; module attribute is gone — keep the &amp;lt;code&amp;gt;Application&amp;lt;/code&amp;gt; object you construct.&lt;br /&gt;
* &amp;lt;code&amp;gt;WPlot&amp;lt;/code&amp;gt; is now &amp;lt;code&amp;gt;Plot&amp;lt;/code&amp;gt;. &amp;lt;code&amp;gt;setRangeZ()&amp;lt;/code&amp;gt; was removed; layers, lines, scatters, highlights and the axes are returned as objects instead of integer indices. A line, a bar line and a highlight are added on the layer (&amp;lt;code&amp;gt;plot.addLayer().addLine()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;plot.layer(0).addHighlight()&amp;lt;/code&amp;gt;), and the index based duplicates of the object methods are gone (&amp;lt;code&amp;gt;setLineColor()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;setLineWidth()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;setScatter*()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;setHighlight*()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;rangeX/Y()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;setRangeX/Y()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;setAutoRangeX/Y()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;setScaleTypeX/Y()&amp;lt;/code&amp;gt;, the counts, &amp;lt;code&amp;gt;clearLayer/Line/Scatter()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;showLine/Scatter()&amp;lt;/code&amp;gt;). &amp;lt;code&amp;gt;plot.setLineColor(0, 0, &#039;red&#039;)&amp;lt;/code&amp;gt; is &amp;lt;code&amp;gt;plot.layer(0).addLine(&#039;red&#039;)&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;plot.setRangeX(0, 10)&amp;lt;/code&amp;gt; is &amp;lt;code&amp;gt;plot.axisX.setRange(0, 10)&amp;lt;/code&amp;gt;. On the layer &amp;lt;code&amp;gt;setLineData()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;addLinePoint()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;replaceLinePoint()&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;addScatterPoint()&amp;lt;/code&amp;gt; keep taking indices.&lt;br /&gt;
* &amp;lt;code&amp;gt;MpxFrame.setAutoResize()&amp;lt;/code&amp;gt; was removed.&lt;br /&gt;
&lt;br /&gt;
==== 2.12 Constants became enum classes ====&lt;br /&gt;
The &amp;lt;code&amp;gt;PX_*&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;PLUGIN_*&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;PLGERR_*&amp;lt;/code&amp;gt; constants are no longer attributes of &amp;lt;code&amp;gt;pixet&amp;lt;/code&amp;gt;. Each group is an enum class of the &amp;lt;code&amp;gt;pypixet&amp;lt;/code&amp;gt; module, &amp;lt;code&amp;gt;pixet&amp;lt;/code&amp;gt; holds the same classes (&amp;lt;code&amp;gt;pypixet.FileType is pixet.FileType&amp;lt;/code&amp;gt;). The member name is the constant without its group prefix, in upper case (&amp;lt;code&amp;gt;PX_FTYPE_PNG&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;FileType.PNG&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;PX_CE_INIT_DEVICE&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;CeCmd.INIT_DEVICE&amp;lt;/code&amp;gt;).&lt;br /&gt;
 # 1.8.5&lt;br /&gt;
 frame.save(&amp;quot;out.png&amp;quot;, pixet.PX_FTYPE_PNG)&lt;br /&gt;
 &lt;br /&gt;
 # 1.8.6&lt;br /&gt;
 frame.save(&amp;quot;out.png&amp;quot;, pixet.FileType.PNG)&lt;br /&gt;
&amp;lt;code&amp;gt;IntEnum&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;IntFlag&amp;lt;/code&amp;gt; members still compare equal to the old numbers and &amp;lt;code&amp;gt;StrEnum&amp;lt;/code&amp;gt; members to the old strings, so a plain &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;str&amp;lt;/code&amp;gt; is accepted wherever a member is.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Constants&lt;br /&gt;
!Enum class&lt;br /&gt;
!Example&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_PAR_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;ParamFlag&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_PAR_READONLY&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;ParamFlag.READONLY&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_ATTR_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;ParamAttr&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_ATTR_READONLY&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;ParamAttr.READONLY&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_PAR_VALUE_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;ParamChange&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_PAR_VALUE_CHANGED&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;ParamChange.CHANGED&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_PARAM_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PixetParam&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_PARAM_APIVERSION&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;PixetParam.APIVERSION&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_DATAFORMAT_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;DataFormat&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_DATAFORMAT_FRAME&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;DataFormat.FRAME&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_FTYPE_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;FileType&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_FTYPE_AUTODETECT&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;FileType.AUTODETECT&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_DATAEVENT_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;DataEventType&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_DATAEVENT_BEFORE_SAVE&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;DataEventType.BEFORE_SAVE&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_FRAMETYPE_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;FramePixelType&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_FRAMETYPE_I16&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;FramePixelType.I16&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_FRAMESAVE_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;SaveFlag&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_FRAMESAVE_BINARY&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;SaveFlag.BINARY&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_MFFORMAT_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;MultiFrameFormat&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_MFFORMAT_BINARY_MULTIFRAME&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;MultiFrameFormat.BINARY_MULTIFRAME&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_DATAFILTER_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;DataFilterType&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_DATAFILTER_NORMAL&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;DataFilterType.NORMAL&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_DEVINFO_VENDOR_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Vendor&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_DEVINFO_VENDOR_IEAP&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;Vendor.IEAP&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_DEVINFO_TYPE_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;DevModel&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_DEVINFO_TYPE_DUMMY&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;DevModel.DUMMY&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_DEVTYPE_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;DevType&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_DEVTYPE_MPX2&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;DevType.MPX2&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_DEVSTATUS_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;DevStatus&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_DEVSTATUS_OK&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;DevStatus.OK&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_EVENT_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;EventName&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_EVENT_BUSY_CHANGED&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;EventName.BUSY_CHANGED&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_PAR_EVENT_VALUE_CHANGED&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;EventName&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_PAR_EVENT_VALUE_CHANGED&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;EventName.PARAMETER_VALUE_CHANGED&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_EVENT_XRAY_STATUS_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;XrayEventName&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_EVENT_XRAY_STATUS_XRAYON&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;XrayEventName.XRAYON&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_MSGTYPE_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;LogMsgType&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_MSGTYPE_INFO&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;LogMsgType.INFO&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_ACQTYPE_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;AcqType&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_ACQTYPE_FRAMES&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;AcqType.FRAMES&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_ACQMODE_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;AcqMode&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_ACQMODE_NORMAL&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;AcqMode.NORMAL&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_REPEAT_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;RepeatFlags&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_REPEAT_OVERWRITE_SERIES&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;RepeatFlags.OVERWRITE_SERIES&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_CHIPTYPE_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;ChipType&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_CHIPTYPE_MXR&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;ChipType.MXR&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_PIXCFG_MXR&amp;lt;/code&amp;gt;, … (chip types)&lt;br /&gt;
|&amp;lt;code&amp;gt;PixCfgType&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_PIXCFG_MXR&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;PixCfgType.MXR&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_PIXCFG_ALL&amp;lt;/code&amp;gt;, … (config items)&lt;br /&gt;
|&amp;lt;code&amp;gt;PixCfgPart&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_PIXCFG_ALL&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;PixCfgPart.ALL&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_THLFLG_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;ThlFlag&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_THLFLG_NONE&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;ThlFlag.NONE&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_MPX3_OPM_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Mpx3OpMode&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_MPX3_OPM_SPM_1CH&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;Mpx3OpMode.SPM_1CH&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_MPX3_CNT_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Mpx3Counter&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_MPX3_CNT_LOW&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;Mpx3Counter.LOW&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_MPX3_CNTD_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Mpx3Depth&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_MPX3_CNTD_12B&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;Mpx3Depth.BITS_12&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_MPX3_COLB_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Mpx3ColBlock&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_MPX3_COLB_ALL&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;Mpx3ColBlock.ALL&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_MPX3_ROWB_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Mpx3RowBlock&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_MPX3_ROWB_ALL&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;Mpx3RowBlock.ALL&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_MPX3_GAIN_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Mpx3Gain&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_MPX3_GAIN_SUPERHIGH&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;Mpx3Gain.SUPERHIGH&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_TPX3_OPM_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Tpx3OpMode&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_TPX3_OPM_TOATOT&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;Tpx3OpMode.TOATOT&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_TPX3_GRAYCNT_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Tpx3GrayCounter&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_TPX3_GRAYCNT_AUTO&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;Tpx3GrayCounter.AUTO&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_TPX3_FRAMETYPE_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Tpx3FrameType&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_TPX3_FRAMETYPE_SUM&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;Tpx3FrameType.SUM&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_TPX2_OPM_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Tpx2OpMode&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_TPX2_OPM_TOT10_TOA18&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;Tpx2OpMode.TOT10_TOA18&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_STGTYPE_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;SettingsFormat&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_STGTYPE_INI&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;SettingsFormat.INI&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PLUGIN_ID_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PluginId&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PLUGIN_ID_DEV_FEEDER&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;PluginId.DEV_FEEDER&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PLUGIN_EVENT_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PluginEvent&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PLUGIN_EVENT_INITIALIZED&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;PluginEvent.INITIALIZED&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PLGERR_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PluginErrorId&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PLGERR_NO_ERROR&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;PluginErrorId.NO_ERROR&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PXERR_*&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;pxerrors.h&amp;lt;/code&amp;gt;)&lt;br /&gt;
|&amp;lt;code&amp;gt;ErrorCode&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PXERR_FILE_OPEN&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;ErrorCode.FILE_OPEN&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_MXR_*&amp;lt;/code&amp;gt; (Medipix2 MXR DACs)&lt;br /&gt;
|&amp;lt;code&amp;gt;MxrDacs&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_MXR_IKRUM&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;MxrDacs.IKRUM&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_TPX_*&amp;lt;/code&amp;gt; (Timepix DACs)&lt;br /&gt;
|&amp;lt;code&amp;gt;TpxDacs&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_TPX_IKRUM&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;TpxDacs.IKRUM&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_MPX3_*&amp;lt;/code&amp;gt; (Medipix3 DACs)&lt;br /&gt;
|&amp;lt;code&amp;gt;Mpx3Dacs&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_MPX3_TH0&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;Mpx3Dacs.TH0&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_TPX3_*&amp;lt;/code&amp;gt; (Timepix3 DACs)&lt;br /&gt;
|&amp;lt;code&amp;gt;Tpx3Dacs&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_TPX3_IBIAS_PREAMP_ON&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;Tpx3Dacs.IBIAS_PREAMP_ON&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_TPX2_*&amp;lt;/code&amp;gt; (Timepix2 DACs)&lt;br /&gt;
|&amp;lt;code&amp;gt;Tpx2Dacs&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_TPX2_PREAMP_ON&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;Tpx2Dacs.PREAMP_ON&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_TPX2_DACOUT_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Tpx2DacOuts&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_TPX2_DACOUT_DOUT_PREAMP_ON&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;Tpx2DacOuts.DOUT_PREAMP_ON&amp;lt;/code&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
A class is created only when a method, an argument or a struct field uses it. No method uses &amp;lt;code&amp;gt;PX_DFUID_*&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;PX_EXT_*&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;PX_METADATA_*&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;PX_SENSOR_TYPE_*&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;PX_TPXMODE_*&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;PX_MPX2_DOUTPUT_*&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;PX_DEVMPX2_CALIB_*&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;PX_TPX3_VCO_*&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;PX_PIXETTYPE_*&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;PX_STATUS_*&amp;lt;/code&amp;gt;, so they are no longer available in Python - use the plain value.&lt;br /&gt;
&lt;br /&gt;
Only four values stay plain attributes of &amp;lt;code&amp;gt;pixet&amp;lt;/code&amp;gt;: &amp;lt;code&amp;gt;PX_PIXET_VERSION&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;pixet.VERSION&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;PX_CHIP_ALL&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;pixet.CHIP_ALL&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;PX_TPX3_PIXSAVE_FILTERDUMMY&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;pixet.TPX3_PIXSAVE_FILTERDUMMY&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;PX_TPX3_PIXADD_UPDATE_PREVIEW&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;pixet.TPX3_PIXADD_UPDATE_PREVIEW&amp;lt;/code&amp;gt;.&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=== 3. What&#039;s new ===&lt;br /&gt;
&lt;br /&gt;
==== Detector control ====&lt;br /&gt;
* &amp;lt;code&amp;gt;pixet.devicesTpx2()&amp;lt;/code&amp;gt; joins the existing per-type device lists.&lt;br /&gt;
* Device log events: &amp;lt;code&amp;gt;dev.registerLogEvent()&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;unregisterLogEvent()&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;code&amp;gt;registeredEvents()&amp;lt;/code&amp;gt; lists what &amp;lt;code&amp;gt;registerEvent()&amp;lt;/code&amp;gt; has registered on an object - one &amp;lt;code&amp;gt;EventItem&amp;lt;/code&amp;gt; per registration, with the read only members &amp;lt;code&amp;gt;name&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;callbackId&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;func&amp;lt;/code&amp;gt; (the registered callable). On &amp;lt;code&amp;gt;IDev&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;IDev2&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;IPixet&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;IParamSet&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;IPlugin&amp;lt;/code&amp;gt; - everything that registers events. Log events have their own handler and are not in the list.&lt;br /&gt;
* Constants are enum classes. &amp;lt;code&amp;gt;pixet.PX_FTYPE_AUTODETECT&amp;lt;/code&amp;gt; and friends were invisible to &amp;lt;code&amp;gt;dir()&amp;lt;/code&amp;gt; and to editors. They are now members of enum classes of the module - &amp;lt;code&amp;gt;pypixet.FileType.AUTODETECT&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pypixet.DataType.DOUBLE&amp;lt;/code&amp;gt; - listed in the stub, so autocompletion finds them, and the methods return members (&amp;lt;code&amp;gt;dev.deviceType()&amp;lt;/code&amp;gt; is &amp;lt;code&amp;gt;&amp;lt;DevType.TPX3: 3&amp;gt;&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
==== &amp;lt;code&amp;gt;pygui&amp;lt;/code&amp;gt; ====&lt;br /&gt;
New widgets and types: &amp;lt;code&amp;gt;Table&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;TreeWidget&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;ScrollArea&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;Frame&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;DateEdit&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;TimeEdit&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;DateTimeEdit&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;BoxLayout&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;FormLayout&amp;lt;/code&amp;gt;, and the value types &amp;lt;code&amp;gt;Point&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;Size&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;Rect&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;Color&amp;lt;/code&amp;gt;. Qt constants are exposed as proper enums — &amp;lt;code&amp;gt;CursorShape&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;WindowType&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;EventType&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;AligmentFlag&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;ScrollBarPolicy&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;LayoutSizeConstraint&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;FrameShape&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;FrameShadow&amp;lt;/code&amp;gt; and more.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;Plot&amp;lt;/code&amp;gt; gains per-object layers, lines, scatters, highlights and axes (&amp;lt;code&amp;gt;PlotAxis&amp;lt;/code&amp;gt; on &amp;lt;code&amp;gt;axisX&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;axisY&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;secAxisX&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;secAxisY&amp;lt;/code&amp;gt;), log/linear axis scales, colour maps, the nested &amp;lt;code&amp;gt;ScaleType&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;AxisType&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;AxisOrientation&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;LabelType&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;ColorMap&amp;lt;/code&amp;gt; enums, and &amp;lt;code&amp;gt;setLineData()&amp;lt;/code&amp;gt; for updating a curve in one call. &amp;lt;code&amp;gt;MpxFrame&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;MpxFramePanel&amp;lt;/code&amp;gt; gain &amp;lt;code&amp;gt;data()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;setGamma()&amp;lt;/code&amp;gt;, zoom control (&amp;lt;code&amp;gt;setZoom()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;setZoomRect()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;zoomFactor()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;zoomOut()&amp;lt;/code&amp;gt;), selection rectangles and a &amp;lt;code&amp;gt;toolTipCallback&amp;lt;/code&amp;gt; member, plus the nested &amp;lt;code&amp;gt;SizeType&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;MarkType&amp;lt;/code&amp;gt; enums. &amp;lt;code&amp;gt;ComboBox&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;PropertyTreeView&amp;lt;/code&amp;gt; are much more complete.&lt;br /&gt;
&lt;br /&gt;
The dialog module functions are unchanged — &amp;lt;code&amp;gt;showMessage()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;showWarning()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;showError()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;showQuestion()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;inputText()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;showItemSelection()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;getOpenFileName()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;getSaveFileName()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;getSaveFileNameAndFilter()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;getExistingDirectory()&amp;lt;/code&amp;gt; all keep their 1.8.5 names and signatures.&lt;br /&gt;
&lt;br /&gt;
==== &amp;lt;code&amp;gt;pyclustering&amp;lt;/code&amp;gt; ====&lt;br /&gt;
A real module rather than a plugin shim, with &amp;lt;code&amp;gt;Pixel&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;Cluster&amp;lt;/code&amp;gt; value types:&lt;br /&gt;
 import pypixet&lt;br /&gt;
 import pyclustering&lt;br /&gt;
 &lt;br /&gt;
 pixet = pypixet.start()&lt;br /&gt;
 device = pixet.devices()[0]&lt;br /&gt;
 &lt;br /&gt;
 c = pyclustering.Clustering(device)&lt;br /&gt;
 c.newClustersCb = lambda clusters, acqIndex: print(len(clusters), &amp;quot;clusters&amp;quot;)&lt;br /&gt;
 c.loadCalibrationFromDevice()&lt;br /&gt;
 c.startMeasurement(1.0, 60.0, &amp;quot;run.clog&amp;quot;)&lt;br /&gt;
&amp;lt;code&amp;gt;Clustering(device)&amp;lt;/code&amp;gt; takes the device the measurement runs on; without it only &amp;lt;code&amp;gt;replayData()&amp;lt;/code&amp;gt; works — &amp;lt;code&amp;gt;startMeasurement()&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;loadCalibrationFromDevice()&amp;lt;/code&amp;gt; need one. The methods take positional arguments only, keyword arguments raise &amp;lt;code&amp;gt;TypeError&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Also: &amp;lt;code&amp;gt;replayData()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;abort()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;isRunning()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;loadCalibrationFromFiles()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;isCalibrationLoaded()&amp;lt;/code&amp;gt;, and the callbacks &amp;lt;code&amp;gt;messageCb&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;progressCb&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;newClustersWithPixelsCb&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;acqStartedCb&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;acqFinishedCb&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==== &amp;lt;code&amp;gt;pyspectraimg&amp;lt;/code&amp;gt; ====&lt;br /&gt;
Replaces the flat &amp;lt;code&amp;gt;si*&amp;lt;/code&amp;gt; functions with a &amp;lt;code&amp;gt;SpectraImg&amp;lt;/code&amp;gt; object and a &amp;lt;code&amp;gt;ProcParameters&amp;lt;/code&amp;gt; settings object:&lt;br /&gt;
 import pyspectraimg&lt;br /&gt;
 &lt;br /&gt;
 si = pyspectraimg.SpectraImg(dev)&lt;br /&gt;
 si.progressCb = lambda finished, pct: print(f&amp;quot;{pct:.0f}%&amp;quot;)&lt;br /&gt;
 si.loadCalibrationFromDevice()&lt;br /&gt;
 si.startMeasurement(1.0, 60.0, &amp;quot;run.h5&amp;quot;, True)&lt;br /&gt;
 img = si.getFrameForEnergyRange(10, 40, True)&lt;br /&gt;
The device argument is mandatory — &amp;lt;code&amp;gt;SpectraImg&amp;lt;/code&amp;gt; reads the matrix size and the chip layout from it. As in &amp;lt;code&amp;gt;pyclustering&amp;lt;/code&amp;gt;, the methods take positional arguments only.&lt;br /&gt;
&lt;br /&gt;
Plus &amp;lt;code&amp;gt;getGlobalSpectrum()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;getGlobalSpectrumInRect()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;saveSumFrame()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;saveDataAsFramesToFile()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;setXrfParams()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;processedPixelsPerSecond()&amp;lt;/code&amp;gt;, and XRF correction options on &amp;lt;code&amp;gt;ProcParameters&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==== &amp;lt;code&amp;gt;pyutils&amp;lt;/code&amp;gt; ====&lt;br /&gt;
* New &amp;lt;code&amp;gt;linearRegression(y, x)&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Results are named tuples now, so &amp;lt;code&amp;gt;result.mean&amp;lt;/code&amp;gt; works alongside &amp;lt;code&amp;gt;result[0]&amp;lt;/code&amp;gt;: &amp;lt;code&amp;gt;SpectrumPeak&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;GerfFitResult&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;FitPeakResult&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;PerformToTfitResult&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;LinearRegressionResult&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;ClustersWithParams&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;code&amp;gt;calibGetSpectrumPeak()&amp;lt;/code&amp;gt; was renamed to &amp;lt;code&amp;gt;calibSpectrumPeak()&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;code&amp;gt;performToTfit()&amp;lt;/code&amp;gt; no longer takes a &amp;lt;code&amp;gt;stddev_out&amp;lt;/code&amp;gt; argument — the value is in the result.&lt;br /&gt;
&lt;br /&gt;
==== &amp;lt;code&amp;gt;pyftdi&amp;lt;/code&amp;gt; ====&lt;br /&gt;
The module-level functions now raise &amp;lt;code&amp;gt;RuntimeError&amp;lt;/code&amp;gt; with the FTDI error text instead of returning a status code, and &amp;lt;code&amp;gt;open()&amp;lt;/code&amp;gt; closes a device left open by an earlier &amp;lt;code&amp;gt;open()&amp;lt;/code&amp;gt;. The &amp;lt;code&amp;gt;Ftdi&amp;lt;/code&amp;gt; class — which already existed in 1.8.5 and lets you drive several devices at once — keeps its status-code return values, so its methods are unchanged.&lt;br /&gt;
 # 1.8.5&lt;br /&gt;
 rc = pyftdi.open(&amp;quot;FT4232H&amp;quot;, 115200)&lt;br /&gt;
 if rc != 0:&lt;br /&gt;
     ...&lt;br /&gt;
 &lt;br /&gt;
 # 1.8.6&lt;br /&gt;
 try:&lt;br /&gt;
     pyftdi.open(&amp;quot;FT4232H&amp;quot;, 115200)&lt;br /&gt;
 except RuntimeError as exc:&lt;br /&gt;
     ...&lt;br /&gt;
&lt;br /&gt;
==== Editor support ====&lt;br /&gt;
Every module ships a &amp;lt;code&amp;gt;.pyi&amp;lt;/code&amp;gt; type stub — &amp;lt;code&amp;gt;pypixet&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pygui&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pyutils&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pyclustering&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pyspectraimg&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pyftdi&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pyhid&amp;lt;/code&amp;gt;. Editors and type checkers pick these up automatically and give you completion, parameter hints and type checking against the API.&lt;br /&gt;
&lt;br /&gt;
The stubs are generated, and two of them are behind the sources in this release: &amp;lt;code&amp;gt;pypixet.pyi&amp;lt;/code&amp;gt; lists only a few of &amp;lt;code&amp;gt;IPixet&amp;lt;/code&amp;gt;&#039;s methods and still declares the removed &amp;lt;code&amp;gt;getLasError()&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;pygui.pyi&amp;lt;/code&amp;gt; omits the static methods of &amp;lt;code&amp;gt;Application&amp;lt;/code&amp;gt;. The modules themselves are correct — use &amp;lt;code&amp;gt;help()&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;dir()&amp;lt;/code&amp;gt; when a stub looks incomplete.&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=== 4. Removed modules ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Module&lt;br /&gt;
!Replacement&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;pymeasutils&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;pyspectraimg&amp;lt;/code&amp;gt; — same functionality, object API&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;pybhfilter&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pyfffilter&amp;lt;/code&amp;gt;&lt;br /&gt;
|The filters themselves are unchanged; reach them through &amp;lt;code&amp;gt;pixet.filter_mgr&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;filters()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;filterByName()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;addFilter()&amp;lt;/code&amp;gt;)&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;pypxproc&amp;lt;/code&amp;gt;&lt;br /&gt;
|No direct replacement&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;pydevcontrol&amp;lt;/code&amp;gt;&lt;br /&gt;
|No direct replacement&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;pyequalization&amp;lt;/code&amp;gt;&lt;br /&gt;
|No direct replacement&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;pyfitpix&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pyminipix&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pymodupix&amp;lt;/code&amp;gt;&lt;br /&gt;
|Device-specific helpers; use the standard &amp;lt;code&amp;gt;IDev&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;IDevMpx&amp;lt;/code&amp;gt; API&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;pypyscripting&amp;lt;/code&amp;gt;&lt;br /&gt;
|No direct replacement&lt;br /&gt;
|}&lt;br /&gt;
The underlying Pixet features are unaffected — it is the thin Python wrapper modules that were retired. If you depend on one of these, contact support before upgrading so we can cover your use case.&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=== 5. Upgrade checklist ===&lt;br /&gt;
# Wrap acquisition and configuration calls in &amp;lt;code&amp;gt;try&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;except pypixet.PixetError&amp;lt;/code&amp;gt;; remove &amp;lt;code&amp;gt;-1&amp;lt;/code&amp;gt; checks and &amp;lt;code&amp;gt;pypixet.getLasError()&amp;lt;/code&amp;gt;.&lt;br /&gt;
# Delete every &amp;lt;code&amp;gt;destroy()&amp;lt;/code&amp;gt; call and rename &amp;lt;code&amp;gt;*RefInc()&amp;lt;/code&amp;gt; to the plain name.&lt;br /&gt;
# Replace &amp;lt;code&amp;gt;dev.parameters().get(name).getX()&amp;lt;/code&amp;gt; with &amp;lt;code&amp;gt;dev.params.getValue(name)&amp;lt;/code&amp;gt;.&lt;br /&gt;
# Drop the parentheses from &amp;lt;code&amp;gt;dev.dacs()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;dev.pixCfg()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pixet.dataMgr()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pixet.filterMgr()&amp;lt;/code&amp;gt;.&lt;br /&gt;
# Replace &amp;lt;code&amp;gt;dev.createCopyOfDacs()&amp;lt;/code&amp;gt; with &amp;lt;code&amp;gt;dev.dacs.copy()&amp;lt;/code&amp;gt; (and &amp;lt;code&amp;gt;dev.dacsMode(m)&amp;lt;/code&amp;gt; with &amp;lt;code&amp;gt;dev.dacs_opm[m]&amp;lt;/code&amp;gt;).&lt;br /&gt;
# Add &amp;lt;code&amp;gt;pixet.data_mgr&amp;lt;/code&amp;gt; as the first argument to &amp;lt;code&amp;gt;save()&amp;lt;/code&amp;gt;.&lt;br /&gt;
# Qualify mask calls with &amp;lt;code&amp;gt;User&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;Factory&amp;lt;/code&amp;gt;.&lt;br /&gt;
# Drop &amp;lt;code&amp;gt;asIMpxFrame()&amp;lt;/code&amp;gt; — the acquisition getters already return &amp;lt;code&amp;gt;IMpxFrame&amp;lt;/code&amp;gt; — and replace &amp;lt;code&amp;gt;canCastToDataFormat()&amp;lt;/code&amp;gt; with a &amp;lt;code&amp;gt;data.dataFormat()&amp;lt;/code&amp;gt; comparison.&lt;br /&gt;
# In &amp;lt;code&amp;gt;pygui&amp;lt;/code&amp;gt; code, swap &amp;lt;code&amp;gt;newXxx()&amp;lt;/code&amp;gt; factories for constructors and &amp;lt;code&amp;gt;setEventHandler()&amp;lt;/code&amp;gt; for &amp;lt;code&amp;gt;eventFilter().setHandler()&amp;lt;/code&amp;gt;.&lt;br /&gt;
# Replace the &amp;lt;code&amp;gt;pixet.PX_*&amp;lt;/code&amp;gt; constants with the enum class members (§2.12).&lt;br /&gt;
# Check §4 for any removed module you import.&lt;/div&gt;</summary>
		<author><name>Kocid</name></author>
	</entry>
	<entry>
		<id>https://wiki.advacam.cz/index.php?title=Pixet_1.8.5_%E2%86%92_1.8.6&amp;diff=1763</id>
		<title>Pixet 1.8.5 → 1.8.6</title>
		<link rel="alternate" type="text/html" href="https://wiki.advacam.cz/index.php?title=Pixet_1.8.5_%E2%86%92_1.8.6&amp;diff=1763"/>
		<updated>2026-10-13T09:12:23Z</updated>

		<summary type="html">&lt;p&gt;Kocid: Add python release notes&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Pixet Python API ===&lt;br /&gt;
This release modernises the Python API. Scripts written against 1.8.5 will need changes — the list of what to fix is in §2, with before/after for each item.&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== 1. At a glance ==&lt;br /&gt;
&lt;br /&gt;
* Errors are Python exceptions now. Calls raise a &amp;lt;code&amp;gt;PixetError&amp;lt;/code&amp;gt; (a subclass by the kind of the error - &amp;lt;code&amp;gt;DeviceError&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;PixetFileError&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;PixetValueError&amp;lt;/code&amp;gt;, ...) instead of returning &amp;lt;code&amp;gt;-1&amp;lt;/code&amp;gt;.&lt;br /&gt;
* No more manual memory management. &amp;lt;code&amp;gt;destroy()&amp;lt;/code&amp;gt; and the &amp;lt;code&amp;gt;*RefInc()&amp;lt;/code&amp;gt; call variants are gone; objects are released for you.&lt;br /&gt;
* Common getters became properties — &amp;lt;code&amp;gt;dev.params&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;dev.pixcfg&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;dev.dacs&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pixet.data_mgr&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Parameter access is type-free — one &amp;lt;code&amp;gt;getValue()&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;setValue()&amp;lt;/code&amp;gt; pair instead of 39 typed accessors.&lt;br /&gt;
* Pixel masks are split into a factory mask, your own user mask, and a read-only combined view.&lt;br /&gt;
* &amp;lt;code&amp;gt;pygui&amp;lt;/code&amp;gt; is a real widget toolkit — constructors instead of factory methods, plus tables, trees, scroll areas, date/time editors, a reworked plot, and Qt enums.&lt;br /&gt;
* Clustering and spectral imaging are proper modules with object APIs and progress callbacks.&lt;br /&gt;
* Type stubs ship with every module, so editors give you autocompletion and signature help (with the gaps noted in §3).&lt;br /&gt;
* Ten helper modules were removed (§4).&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== 2. Breaking changes — what to fix in your scripts ==&lt;br /&gt;
&lt;br /&gt;
=== 2.1 Check for exceptions, not return codes ===&lt;br /&gt;
Failures now raise a &amp;lt;code&amp;gt;pypixet.PixetError&amp;lt;/code&amp;gt;; bad arguments raise the usual &amp;lt;code&amp;gt;TypeError&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;ValueError&amp;lt;/code&amp;gt;. The subclass tells the kind of the error - &amp;lt;code&amp;gt;DeviceError&amp;lt;/code&amp;gt; (a failed device method, acquisition or communication), &amp;lt;code&amp;gt;PixetFileError&amp;lt;/code&amp;gt; (also an &amp;lt;code&amp;gt;OSError&amp;lt;/code&amp;gt;), &amp;lt;code&amp;gt;PixetTimeoutError&amp;lt;/code&amp;gt; (also a &amp;lt;code&amp;gt;TimeoutError&amp;lt;/code&amp;gt;), &amp;lt;code&amp;gt;PixetValueError&amp;lt;/code&amp;gt; (also a &amp;lt;code&amp;gt;ValueError&amp;lt;/code&amp;gt;) and &amp;lt;code&amp;gt;PixetNotFoundError&amp;lt;/code&amp;gt; (also a &amp;lt;code&amp;gt;LookupError&amp;lt;/code&amp;gt;). Every exception has &amp;lt;code&amp;gt;code&amp;lt;/code&amp;gt; (an &amp;lt;code&amp;gt;ErrorCode&amp;lt;/code&amp;gt; member) and &amp;lt;code&amp;gt;message&amp;lt;/code&amp;gt;. The classes exist as soon as &amp;lt;code&amp;gt;pypixet&amp;lt;/code&amp;gt; is imported. &amp;lt;code&amp;gt;pypixet.start()&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;pypixet.exit()&amp;lt;/code&amp;gt; themselves raise plain &amp;lt;code&amp;gt;RuntimeError&amp;lt;/code&amp;gt; — they run before the Pixet API is up.&lt;br /&gt;
 # 1.8.5&lt;br /&gt;
 rc = dev.doSimpleAcquisition(1, 0.1, pixet.PX_FTYPE_AUTODETECT, &amp;quot;out.pmf&amp;quot;)&lt;br /&gt;
 if rc &amp;lt; 0:&lt;br /&gt;
     print(&amp;quot;acquisition failed:&amp;quot;, pypixet.getLasError())&lt;br /&gt;
 &lt;br /&gt;
 # 1.8.6&lt;br /&gt;
 try:&lt;br /&gt;
     dev.doSimpleAcquisition(1, 0.1, &amp;quot;out.pmf&amp;quot;)&lt;br /&gt;
 except pypixet.PixetError as exc:&lt;br /&gt;
     print(&amp;quot;acquisition failed:&amp;quot;, exc)&lt;br /&gt;
&amp;lt;code&amp;gt;pypixet.getLasError()&amp;lt;/code&amp;gt; has been removed — the message is on the exception.&lt;br /&gt;
&lt;br /&gt;
=== 2.2 Delete every &amp;lt;code&amp;gt;destroy()&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;*RefInc()&amp;lt;/code&amp;gt; call ===&lt;br /&gt;
 # 1.8.5&lt;br /&gt;
 frame = dev.lastAcqFrameRefInc()&lt;br /&gt;
 data = frame.data()&lt;br /&gt;
 frame.destroy()&lt;br /&gt;
 &lt;br /&gt;
 # 1.8.6&lt;br /&gt;
 frame = dev.lastAcqFrame()&lt;br /&gt;
 data = frame.data()&lt;br /&gt;
Removed everywhere: &amp;lt;code&amp;gt;destroy()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;destroyCE()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;incRefCount()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;decRefCount()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;privateInterface()&amp;lt;/code&amp;gt;, and the &amp;lt;code&amp;gt;RefInc&amp;lt;/code&amp;gt; variants &amp;lt;code&amp;gt;acqDataRefInc&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;acqFrameRefInc&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;lastAcqDataRefInc&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;lastAcqFrameRefInc&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;lastAcqPixelsRefInc&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;lastAcqClustersRefInc&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== 2.3 Device parameters: one generic accessor ===&lt;br /&gt;
&amp;lt;code&amp;gt;dev.parameters()&amp;lt;/code&amp;gt; returned a parameter manager with 13 typed create/get/set families. It is replaced by the &amp;lt;code&amp;gt;dev.params&amp;lt;/code&amp;gt; property and a single value API.&lt;br /&gt;
 # 1.8.5&lt;br /&gt;
 bias = dev.parameters().get(&amp;quot;BiasVoltage&amp;quot;).getDouble()&lt;br /&gt;
 dev.parameters().get(&amp;quot;BiasVoltage&amp;quot;).setDouble(200.0)&lt;br /&gt;
 &lt;br /&gt;
 # 1.8.6&lt;br /&gt;
 bias = dev.params.getValue(&amp;quot;BiasVoltage&amp;quot;)&lt;br /&gt;
 dev.params.setValue(&amp;quot;BiasVoltage&amp;quot;, 200.0)&lt;br /&gt;
&amp;lt;code&amp;gt;getValue()&amp;lt;/code&amp;gt; returns the natural Python type. If you need to know it, &amp;lt;code&amp;gt;dev.params.type(&amp;quot;BiasVoltage&amp;quot;)&amp;lt;/code&amp;gt; returns an &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt; you can compare against the new &amp;lt;code&amp;gt;pixet.DataType&amp;lt;/code&amp;gt; enum (&amp;lt;code&amp;gt;Double&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;String&amp;lt;/code&amp;gt;, …), which is an &amp;lt;code&amp;gt;IntEnum&amp;lt;/code&amp;gt; — &amp;lt;code&amp;gt;dev.params.type(name) == pixet.DataType.DOUBLE&amp;lt;/code&amp;gt;. Blobs come back through &amp;lt;code&amp;gt;getBlob()&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;isBlob()&amp;lt;/code&amp;gt; tells you when to use it. &amp;lt;code&amp;gt;addValue(name, value, description=&amp;lt;nowiki&amp;gt;&#039;&#039;&amp;lt;/nowiki&amp;gt;, dataType=-1)&amp;lt;/code&amp;gt; replaces &amp;lt;code&amp;gt;addBOOL&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;addI32&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;addString&amp;lt;/code&amp;gt; and the rest.&lt;br /&gt;
&lt;br /&gt;
=== 2.4 Getters that became properties ===&lt;br /&gt;
 dev.parameters()      →  dev.params&lt;br /&gt;
 dev.pixCfg()          →  dev.pixcfg&lt;br /&gt;
 dev.dacs()            →  dev.dacs&lt;br /&gt;
 pixet.dataMgr()       →  pixet.data_mgr&lt;br /&gt;
Drop the parentheses — these are attributes, not calls. &amp;lt;code&amp;gt;dacs&amp;lt;/code&amp;gt; keeps its name and only loses the parentheses; the rest of the DAC api changed as well, see §2.8.&lt;br /&gt;
&lt;br /&gt;
=== 2.5 Acquisition results ===&lt;br /&gt;
 dev.lastAcqFrameRefInc()    →  dev.lastAcqFrame()&lt;br /&gt;
 dev.lastAcqDataRefInc()     →  dev.lastAcqData()&lt;br /&gt;
 dev.acqFrameRefInc(i)       →  dev.acqFrame(i)&lt;br /&gt;
 dev.acqDataRefInc(i)        →  dev.acqData(i)&lt;br /&gt;
&amp;lt;code&amp;gt;doSimpleAcquisition()&amp;lt;/code&amp;gt; has no &amp;lt;code&amp;gt;fileType&amp;lt;/code&amp;gt; argument any more - the file type is always detected from the file name (&amp;lt;code&amp;gt;PX_FTYPE_AUTODETECT&amp;lt;/code&amp;gt;) - and &amp;lt;code&amp;gt;fileName&amp;lt;/code&amp;gt; defaults to &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&#039;&#039;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, so &amp;lt;code&amp;gt;dev.doSimpleAcquisition(1, 0.1)&amp;lt;/code&amp;gt; is enough for a measurement you only want in memory.&lt;br /&gt;
&lt;br /&gt;
New on Timepix3 devices:&lt;br /&gt;
 dev.lastAcqClustersRefInc()   →  dev.&amp;lt;code&amp;gt;lastAcqClusters&amp;lt;/code&amp;gt;()&lt;br /&gt;
 dev.lastAcqPixelsRefInc()     →  dev.lastAcqPixels()&lt;br /&gt;
&lt;br /&gt;
=== 2.6 &amp;lt;code&amp;gt;save()&amp;lt;/code&amp;gt; takes the data manager ===&lt;br /&gt;
 # 1.8.5&lt;br /&gt;
 frame.save(&amp;quot;out.pmf&amp;quot;, pixet.PX_FTYPE_AUTODETECT)&lt;br /&gt;
 &lt;br /&gt;
 # 1.8.6&lt;br /&gt;
 frame.save(pixet.data_mgr, &amp;quot;out.pmf&amp;quot;, pixet.FileType.AUTODETECT)&lt;br /&gt;
&amp;lt;code&amp;gt;load()&amp;lt;/code&amp;gt; is unchanged.&lt;br /&gt;
&lt;br /&gt;
=== 2.7 Pixel masking: factory mask vs user mask ===&lt;br /&gt;
The single mask was split into a factory mask (from the detector&#039;s calibration) and a user mask (yours), plus a read-only combined view. Every &amp;lt;code&amp;gt;mask*&amp;lt;/code&amp;gt; name gained a &amp;lt;code&amp;gt;Factory&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;User&amp;lt;/code&amp;gt; qualifier.&lt;br /&gt;
 # 1.8.5&lt;br /&gt;
 dev.pixCfg().mask(pixel, True)&lt;br /&gt;
 n = dev.pixCfg().maskedCount()&lt;br /&gt;
 m = dev.pixCfg().maskMatrix()&lt;br /&gt;
 &lt;br /&gt;
 # 1.8.6&lt;br /&gt;
 dev.pixcfg.maskUser(pixel, True)&lt;br /&gt;
 n = dev.pixcfg.userMaskedCount()          # or combinedMaskedCount()&lt;br /&gt;
 m = dev.pixcfg.userMaskMatrix()           # or combinedMaskMatrix()&lt;br /&gt;
&amp;lt;code&amp;gt;maskUser()&amp;lt;/code&amp;gt; takes a linear pixel index, as &amp;lt;code&amp;gt;mask()&amp;lt;/code&amp;gt; did; &amp;lt;code&amp;gt;maskUserRect(x, y, width, height, masked)&amp;lt;/code&amp;gt; is the one that works in coordinates.&lt;br /&gt;
&lt;br /&gt;
The same rule applies to the chip, row, column and rect variants (&amp;lt;code&amp;gt;maskUserChip&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;maskUserRow&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;maskUserColumn&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;maskUserRect&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;isUserMasked*&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;setUserMaskMatrix*&amp;lt;/code&amp;gt;, …) and to their &amp;lt;code&amp;gt;Factory&amp;lt;/code&amp;gt; counterparts. Also new: &amp;lt;code&amp;gt;clearUserMask()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;clearFactoryMask()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;copyUserMask()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;copyMasksFromPixCfg()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;isCombinedMasked()&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
On Medipix2/Timepix pixel configs, the whole-matrix &amp;lt;code&amp;gt;modeMatrix()&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;setModeMatrix()&amp;lt;/code&amp;gt; were removed; the per-chip &amp;lt;code&amp;gt;modeMatrixChip()&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;setModeMatrixChip()&amp;lt;/code&amp;gt; and the &amp;lt;code&amp;gt;setMode*&amp;lt;/code&amp;gt; calls are unchanged.&lt;br /&gt;
&lt;br /&gt;
=== 2.8 DACs: a property, and &amp;lt;code&amp;gt;copy()&amp;lt;/code&amp;gt; instead of &amp;lt;code&amp;gt;createCopyOfDacs()&amp;lt;/code&amp;gt; ===&lt;br /&gt;
 # 1.8.5&lt;br /&gt;
 dacs = dev.dacs()                     # the DACs of the device&lt;br /&gt;
 copy = dev.createCopyOfDacs()         # an independent set with the values of the device&lt;br /&gt;
 ...&lt;br /&gt;
 copy.destroy()&lt;br /&gt;
 &lt;br /&gt;
 # 1.8.6&lt;br /&gt;
 dacs = dev.dacs                       # a property, the same object on every access&lt;br /&gt;
 copy = dacs.copy()                    # an independent set with the values of &#039;dacs&#039;&lt;br /&gt;
&amp;lt;code&amp;gt;dev.createCopyOfDacs()&amp;lt;/code&amp;gt; no longer exists — &amp;lt;code&amp;gt;dev.dacs.copy()&amp;lt;/code&amp;gt; replaces it, and &amp;lt;code&amp;gt;copy.copy(dev.dacs)&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;copy.deepcopy(dev.dacs)&amp;lt;/code&amp;gt; do the same. Both hand back a set which already carries the values it was copied from and which nothing has to destroy. The difference is what is copied: &amp;lt;code&amp;gt;createCopyOfDacs()&amp;lt;/code&amp;gt; always took the DACs of the device, while &amp;lt;code&amp;gt;copy()&amp;lt;/code&amp;gt; takes the set you call it on — &amp;lt;code&amp;gt;dev.dacs_opm[&amp;quot;CSM&amp;quot;].copy()&amp;lt;/code&amp;gt; copies that operation mode. &amp;lt;code&amp;gt;copyFromDacs()&amp;lt;/code&amp;gt; is still there for copying between two sets you already have.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;dacs.is_main&amp;lt;/code&amp;gt; tells the DACs of the device (&amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt;) from a copy (&amp;lt;code&amp;gt;0&amp;lt;/code&amp;gt;), and writing a copy leaves the device untouched until you send the set to it.&lt;br /&gt;
&lt;br /&gt;
Setting values is unchanged: &amp;lt;code&amp;gt;dacs.setDac(index, chip, value)&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;dacs.setToDevice()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;dacs.setDefault()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;dev.setDacs(dacs)&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;dev.refreshDacs()&amp;lt;/code&amp;gt;. &amp;lt;code&amp;gt;dacs.names()&amp;lt;/code&amp;gt; returns the DAC names as a list of &amp;lt;code&amp;gt;str&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;thresholdToDac()&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;dacToThreshold()&amp;lt;/code&amp;gt; convert against the chip type of the device.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;dev.createCopyOfPixCfg()&amp;lt;/code&amp;gt; went the same way — &amp;lt;code&amp;gt;dev.pixcfg.copy()&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Medipix3 operation modes&lt;br /&gt;
 # 1.8.5&lt;br /&gt;
 dacs = dev.dacsMode(pixet.PX_MPX3_OPM_CSM)&lt;br /&gt;
 copy = dev.createCopyOfDacsMode(pixet.PX_MPX3_OPM_CSM)&lt;br /&gt;
 dev.setDacsMode(pixet.PX_MPX3_OPM_CSM, dacs)&lt;br /&gt;
 &lt;br /&gt;
 # 1.8.6&lt;br /&gt;
 dacs = dev.dacs_opm[pixet.Mpx3OpMode.CSM]     # or dev.dacs_opm[&amp;quot;CSM&amp;quot;]&lt;br /&gt;
 copyDacs = dacs.copy()&lt;br /&gt;
 copyDacs.setToDevice()                        # dev.setDacsMode(pixet.Mpx3OpMode.CSM, copyDacs)&lt;br /&gt;
&amp;lt;code&amp;gt;dacsMode()&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;createCopyOfDacsMode()&amp;lt;/code&amp;gt; are removed. &amp;lt;code&amp;gt;dev.dacs_opm&amp;lt;/code&amp;gt; is a sequence of the &amp;lt;code&amp;gt;IMpxDacs&amp;lt;/code&amp;gt; of every operation mode - &amp;lt;code&amp;gt;len()&amp;lt;/code&amp;gt;, iteration, &amp;lt;code&amp;gt;names()&amp;lt;/code&amp;gt;, and an index which is the mode number or its name (case insensitive, the &amp;lt;code&amp;gt;PX_MPX3_OPM_&amp;lt;/code&amp;gt; prefix optional). The object of a mode is cached, so &amp;lt;code&amp;gt;dev.dacs_opm[0] is dev.dacs_opm[0]&amp;lt;/code&amp;gt;, and modes which share one set of DACs in the device share the object. &amp;lt;code&amp;gt;dev.pixcfg_opm&amp;lt;/code&amp;gt; is the same for the pixel configurations, in place of &amp;lt;code&amp;gt;pixCfgMode()&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;createCopyOfPixCfgMode()&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== 2.9 Type casting: check the data format ===&lt;br /&gt;
The wrapper classes now form a real hierarchy — &amp;lt;code&amp;gt;IDevMpx3&amp;lt;/code&amp;gt; derives from &amp;lt;code&amp;gt;IDevMpx&amp;lt;/code&amp;gt; derives from &amp;lt;code&amp;gt;IDev&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;IMpxFrame&amp;lt;/code&amp;gt; derives from &amp;lt;code&amp;gt;IData&amp;lt;/code&amp;gt;. Most of the time no cast is needed at all: &amp;lt;code&amp;gt;dev.lastAcqFrame()&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;dev.acqFrame(i)&amp;lt;/code&amp;gt; already hand you an &amp;lt;code&amp;gt;IMpxFrame&amp;lt;/code&amp;gt;.&lt;br /&gt;
 # 1.8.5&lt;br /&gt;
 frame = data.asIMpxFrame()&lt;br /&gt;
 if data.canCastToDataFormat(pixet.PX_DATAFORMAT_FRAME):&lt;br /&gt;
     ...&lt;br /&gt;
 &lt;br /&gt;
 # 1.8.6&lt;br /&gt;
 if data.dataFormat() == pixet.DataFormat.FRAME:&lt;br /&gt;
     ...&lt;br /&gt;
Removed: &amp;lt;code&amp;gt;asIData()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;asIMpxFrame()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;asIDev()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;canCastToDataFormat()&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The wrapper types themselves are not module attributes — there is no &amp;lt;code&amp;gt;pypixet.IMpxFrame&amp;lt;/code&amp;gt; to pass to &amp;lt;code&amp;gt;isinstance()&amp;lt;/code&amp;gt;. Test the data format as above, or compare &amp;lt;code&amp;gt;type(data).__name__&amp;lt;/code&amp;gt; with &amp;lt;code&amp;gt;&amp;quot;IMpxFrame&amp;quot;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== 2.10 Other renamed calls ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!1.8.5&lt;br /&gt;
!1.8.6&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;frame.convertToChipByChip()&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;frame.chipByChipImage()&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;frame.ignoreMasked()&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;frame.setIgnoreMasked()&amp;lt;/code&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
The plugin API is reduced, not removed: &amp;lt;code&amp;gt;pixet.plugins()&amp;lt;/code&amp;gt; still lists the loaded plugins and &amp;lt;code&amp;gt;IPlugin&amp;lt;/code&amp;gt; keeps &amp;lt;code&amp;gt;id()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;name()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;execute()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;params&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;registerEvent()&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;unregisterEvent()&amp;lt;/code&amp;gt;. Gone from it are &amp;lt;code&amp;gt;pixet.addPlugin()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pixet.plugin(name)&amp;lt;/code&amp;gt; and the &amp;lt;code&amp;gt;IMenuItem&amp;lt;/code&amp;gt; type.&lt;br /&gt;
&lt;br /&gt;
Also removed with no replacement in this release: the filter config-dialog hooks (&amp;lt;code&amp;gt;hasConfigGUI()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;showConfigGUI()&amp;lt;/code&amp;gt;), custom file-type registration (&amp;lt;code&amp;gt;dataMgr.registerFileType()&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;unregisterFileType()&amp;lt;/code&amp;gt;), and the &amp;lt;code&amp;gt;IByteBuff&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;IRefByteBuff&amp;lt;/code&amp;gt; buffer objects — buffer data is passed as plain Python lists.&lt;br /&gt;
&lt;br /&gt;
=== 2.11 &amp;lt;code&amp;gt;pygui&amp;lt;/code&amp;gt;: widgets are classes ===&lt;br /&gt;
If you build panels with &amp;lt;code&amp;gt;pygui&amp;lt;/code&amp;gt;, the factory methods are gone. Construct widgets directly.&lt;br /&gt;
 # 1.8.5&lt;br /&gt;
 app = pygui.App(sys.argv)&lt;br /&gt;
 win = pygui.newMainWindow()&lt;br /&gt;
 btn = win.newPushButton(&amp;quot;Start&amp;quot;)&lt;br /&gt;
 plot = win.newPlot()&lt;br /&gt;
 btn.setEventHandler(on_click)&lt;br /&gt;
 &lt;br /&gt;
 # 1.8.6&lt;br /&gt;
 app = pygui.Application(sys.argv)&lt;br /&gt;
 win = pygui.MainWindow()&lt;br /&gt;
 btn = pygui.PushButton(&amp;quot;Start&amp;quot;, win)&lt;br /&gt;
 plot = pygui.Plot(win)&lt;br /&gt;
 btn.eventFilter().setHandler(on_click)&lt;br /&gt;
&lt;br /&gt;
* All 24 &amp;lt;code&amp;gt;newXxx()&amp;lt;/code&amp;gt; factory methods are replaced by constructors of the same name minus &amp;lt;code&amp;gt;new&amp;lt;/code&amp;gt; — except &amp;lt;code&amp;gt;newButton()&amp;lt;/code&amp;gt;, which was an alias of &amp;lt;code&amp;gt;newPushButton()&amp;lt;/code&amp;gt;; use &amp;lt;code&amp;gt;PushButton&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;code&amp;gt;setEventHandler()&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;setFilterEvents()&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;updatefilterEvents()&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;getfilterEvents()&amp;lt;/code&amp;gt; are replaced by &amp;lt;code&amp;gt;eventFilter()&amp;lt;/code&amp;gt;, which gives the one &amp;lt;code&amp;gt;EventFilter&amp;lt;/code&amp;gt; object of the widget - &amp;lt;code&amp;gt;handler()&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;setHandler()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;events()&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;setEvents()&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;isEnabled()&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;setEnabled()&amp;lt;/code&amp;gt; are its methods.&lt;br /&gt;
* &amp;lt;code&amp;gt;App()&amp;lt;/code&amp;gt; became the &amp;lt;code&amp;gt;Application(argv)&amp;lt;/code&amp;gt; constructor.&lt;br /&gt;
* The remaining application module functions moved onto &amp;lt;code&amp;gt;Application&amp;lt;/code&amp;gt; as static methods — &amp;lt;code&amp;gt;appExists()&amp;lt;/code&amp;gt; is &amp;lt;code&amp;gt;Application.exists()&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;processEvents()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;getMainWindow()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;screens()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;screenGeometry()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;setCursor()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;cursorShape()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;beep()&amp;lt;/code&amp;gt; keep their names (&amp;lt;code&amp;gt;pygui.Application.processEvents()&amp;lt;/code&amp;gt;, …). &amp;lt;code&amp;gt;loadFromUiFile()&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;loadFromUiString()&amp;lt;/code&amp;gt; stay module functions.&lt;br /&gt;
* The &amp;lt;code&amp;gt;pygui.app&amp;lt;/code&amp;gt; module attribute is gone — keep the &amp;lt;code&amp;gt;Application&amp;lt;/code&amp;gt; object you construct.&lt;br /&gt;
* &amp;lt;code&amp;gt;WPlot&amp;lt;/code&amp;gt; is now &amp;lt;code&amp;gt;Plot&amp;lt;/code&amp;gt;. &amp;lt;code&amp;gt;setRangeZ()&amp;lt;/code&amp;gt; was removed; layers, lines, scatters, highlights and the axes are returned as objects instead of integer indices. A line, a bar line and a highlight are added on the layer (&amp;lt;code&amp;gt;plot.addLayer().addLine()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;plot.layer(0).addHighlight()&amp;lt;/code&amp;gt;), and the index based duplicates of the object methods are gone (&amp;lt;code&amp;gt;setLineColor()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;setLineWidth()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;setScatter*()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;setHighlight*()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;rangeX/Y()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;setRangeX/Y()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;setAutoRangeX/Y()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;setScaleTypeX/Y()&amp;lt;/code&amp;gt;, the counts, &amp;lt;code&amp;gt;clearLayer/Line/Scatter()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;showLine/Scatter()&amp;lt;/code&amp;gt;). &amp;lt;code&amp;gt;plot.setLineColor(0, 0, &#039;red&#039;)&amp;lt;/code&amp;gt; is &amp;lt;code&amp;gt;plot.layer(0).addLine(&#039;red&#039;)&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;plot.setRangeX(0, 10)&amp;lt;/code&amp;gt; is &amp;lt;code&amp;gt;plot.axisX.setRange(0, 10)&amp;lt;/code&amp;gt;. On the layer &amp;lt;code&amp;gt;setLineData()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;addLinePoint()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;replaceLinePoint()&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;addScatterPoint()&amp;lt;/code&amp;gt; keep taking indices.&lt;br /&gt;
* &amp;lt;code&amp;gt;MpxFrame.setAutoResize()&amp;lt;/code&amp;gt; was removed.&lt;br /&gt;
&lt;br /&gt;
=== 2.12 Constants became enum classes ===&lt;br /&gt;
The &amp;lt;code&amp;gt;PX_*&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;PLUGIN_*&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;PLGERR_*&amp;lt;/code&amp;gt; constants are no longer attributes of &amp;lt;code&amp;gt;pixet&amp;lt;/code&amp;gt;. Each group is an enum class of the &amp;lt;code&amp;gt;pypixet&amp;lt;/code&amp;gt; module, &amp;lt;code&amp;gt;pixet&amp;lt;/code&amp;gt; holds the same classes (&amp;lt;code&amp;gt;pypixet.FileType is pixet.FileType&amp;lt;/code&amp;gt;). The member name is the constant without its group prefix, in upper case (&amp;lt;code&amp;gt;PX_FTYPE_PNG&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;FileType.PNG&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;PX_CE_INIT_DEVICE&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;CeCmd.INIT_DEVICE&amp;lt;/code&amp;gt;).&lt;br /&gt;
 # 1.8.5&lt;br /&gt;
 frame.save(&amp;quot;out.png&amp;quot;, pixet.PX_FTYPE_PNG)&lt;br /&gt;
 &lt;br /&gt;
 # 1.8.6&lt;br /&gt;
 frame.save(&amp;quot;out.png&amp;quot;, pixet.FileType.PNG)&lt;br /&gt;
&amp;lt;code&amp;gt;IntEnum&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;IntFlag&amp;lt;/code&amp;gt; members still compare equal to the old numbers and &amp;lt;code&amp;gt;StrEnum&amp;lt;/code&amp;gt; members to the old strings, so a plain &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;str&amp;lt;/code&amp;gt; is accepted wherever a member is.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Constants&lt;br /&gt;
!Enum class&lt;br /&gt;
!Example&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_PAR_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;ParamFlag&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_PAR_READONLY&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;ParamFlag.READONLY&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_ATTR_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;ParamAttr&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_ATTR_READONLY&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;ParamAttr.READONLY&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_PAR_VALUE_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;ParamChange&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_PAR_VALUE_CHANGED&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;ParamChange.CHANGED&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_PARAM_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PixetParam&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_PARAM_APIVERSION&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;PixetParam.APIVERSION&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_DATAFORMAT_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;DataFormat&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_DATAFORMAT_FRAME&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;DataFormat.FRAME&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_FTYPE_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;FileType&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_FTYPE_AUTODETECT&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;FileType.AUTODETECT&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_DATAEVENT_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;DataEventType&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_DATAEVENT_BEFORE_SAVE&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;DataEventType.BEFORE_SAVE&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_FRAMETYPE_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;FramePixelType&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_FRAMETYPE_I16&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;FramePixelType.I16&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_FRAMESAVE_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;SaveFlag&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_FRAMESAVE_BINARY&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;SaveFlag.BINARY&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_MFFORMAT_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;MultiFrameFormat&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_MFFORMAT_BINARY_MULTIFRAME&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;MultiFrameFormat.BINARY_MULTIFRAME&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_DATAFILTER_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;DataFilterType&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_DATAFILTER_NORMAL&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;DataFilterType.NORMAL&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_DEVINFO_VENDOR_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Vendor&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_DEVINFO_VENDOR_IEAP&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;Vendor.IEAP&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_DEVINFO_TYPE_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;DevModel&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_DEVINFO_TYPE_DUMMY&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;DevModel.DUMMY&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_DEVTYPE_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;DevType&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_DEVTYPE_MPX2&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;DevType.MPX2&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_DEVSTATUS_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;DevStatus&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_DEVSTATUS_OK&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;DevStatus.OK&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_EVENT_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;EventName&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_EVENT_BUSY_CHANGED&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;EventName.BUSY_CHANGED&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_PAR_EVENT_VALUE_CHANGED&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;EventName&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_PAR_EVENT_VALUE_CHANGED&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;EventName.PARAMETER_VALUE_CHANGED&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_EVENT_XRAY_STATUS_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;XrayEventName&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_EVENT_XRAY_STATUS_XRAYON&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;XrayEventName.XRAYON&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_MSGTYPE_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;LogMsgType&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_MSGTYPE_INFO&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;LogMsgType.INFO&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_ACQTYPE_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;AcqType&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_ACQTYPE_FRAMES&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;AcqType.FRAMES&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_ACQMODE_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;AcqMode&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_ACQMODE_NORMAL&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;AcqMode.NORMAL&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_REPEAT_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;RepeatFlags&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_REPEAT_OVERWRITE_SERIES&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;RepeatFlags.OVERWRITE_SERIES&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_CHIPTYPE_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;ChipType&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_CHIPTYPE_MXR&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;ChipType.MXR&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_PIXCFG_MXR&amp;lt;/code&amp;gt;, … (chip types)&lt;br /&gt;
|&amp;lt;code&amp;gt;PixCfgType&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_PIXCFG_MXR&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;PixCfgType.MXR&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_PIXCFG_ALL&amp;lt;/code&amp;gt;, … (config items)&lt;br /&gt;
|&amp;lt;code&amp;gt;PixCfgPart&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_PIXCFG_ALL&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;PixCfgPart.ALL&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_THLFLG_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;ThlFlag&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_THLFLG_NONE&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;ThlFlag.NONE&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_MPX3_OPM_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Mpx3OpMode&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_MPX3_OPM_SPM_1CH&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;Mpx3OpMode.SPM_1CH&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_MPX3_CNT_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Mpx3Counter&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_MPX3_CNT_LOW&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;Mpx3Counter.LOW&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_MPX3_CNTD_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Mpx3Depth&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_MPX3_CNTD_12B&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;Mpx3Depth.BITS_12&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_MPX3_COLB_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Mpx3ColBlock&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_MPX3_COLB_ALL&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;Mpx3ColBlock.ALL&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_MPX3_ROWB_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Mpx3RowBlock&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_MPX3_ROWB_ALL&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;Mpx3RowBlock.ALL&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_MPX3_GAIN_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Mpx3Gain&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_MPX3_GAIN_SUPERHIGH&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;Mpx3Gain.SUPERHIGH&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_TPX3_OPM_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Tpx3OpMode&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_TPX3_OPM_TOATOT&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;Tpx3OpMode.TOATOT&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_TPX3_GRAYCNT_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Tpx3GrayCounter&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_TPX3_GRAYCNT_AUTO&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;Tpx3GrayCounter.AUTO&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_TPX3_FRAMETYPE_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Tpx3FrameType&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_TPX3_FRAMETYPE_SUM&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;Tpx3FrameType.SUM&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_TPX2_OPM_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Tpx2OpMode&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_TPX2_OPM_TOT10_TOA18&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;Tpx2OpMode.TOT10_TOA18&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_STGTYPE_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;SettingsFormat&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_STGTYPE_INI&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;SettingsFormat.INI&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PLUGIN_ID_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PluginId&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PLUGIN_ID_DEV_FEEDER&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;PluginId.DEV_FEEDER&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PLUGIN_EVENT_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PluginEvent&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PLUGIN_EVENT_INITIALIZED&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;PluginEvent.INITIALIZED&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PLGERR_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PluginErrorId&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PLGERR_NO_ERROR&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;PluginErrorId.NO_ERROR&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PXERR_*&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;pxerrors.h&amp;lt;/code&amp;gt;)&lt;br /&gt;
|&amp;lt;code&amp;gt;ErrorCode&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PXERR_FILE_OPEN&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;ErrorCode.FILE_OPEN&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_MXR_*&amp;lt;/code&amp;gt; (Medipix2 MXR DACs)&lt;br /&gt;
|&amp;lt;code&amp;gt;MxrDacs&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_MXR_IKRUM&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;MxrDacs.IKRUM&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_TPX_*&amp;lt;/code&amp;gt; (Timepix DACs)&lt;br /&gt;
|&amp;lt;code&amp;gt;TpxDacs&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_TPX_IKRUM&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;TpxDacs.IKRUM&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_MPX3_*&amp;lt;/code&amp;gt; (Medipix3 DACs)&lt;br /&gt;
|&amp;lt;code&amp;gt;Mpx3Dacs&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_MPX3_TH0&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;Mpx3Dacs.TH0&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_TPX3_*&amp;lt;/code&amp;gt; (Timepix3 DACs)&lt;br /&gt;
|&amp;lt;code&amp;gt;Tpx3Dacs&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_TPX3_IBIAS_PREAMP_ON&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;Tpx3Dacs.IBIAS_PREAMP_ON&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_TPX2_*&amp;lt;/code&amp;gt; (Timepix2 DACs)&lt;br /&gt;
|&amp;lt;code&amp;gt;Tpx2Dacs&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_TPX2_PREAMP_ON&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;Tpx2Dacs.PREAMP_ON&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_TPX2_DACOUT_*&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;Tpx2DacOuts&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;PX_TPX2_DACOUT_DOUT_PREAMP_ON&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;Tpx2DacOuts.DOUT_PREAMP_ON&amp;lt;/code&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
A class is created only when a method, an argument or a struct field uses it. No method uses &amp;lt;code&amp;gt;PX_DFUID_*&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;PX_EXT_*&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;PX_METADATA_*&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;PX_SENSOR_TYPE_*&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;PX_TPXMODE_*&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;PX_MPX2_DOUTPUT_*&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;PX_DEVMPX2_CALIB_*&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;PX_TPX3_VCO_*&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;PX_PIXETTYPE_*&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;PX_STATUS_*&amp;lt;/code&amp;gt;, so they are no longer available in Python - use the plain value.&lt;br /&gt;
&lt;br /&gt;
Only four values stay plain attributes of &amp;lt;code&amp;gt;pixet&amp;lt;/code&amp;gt;: &amp;lt;code&amp;gt;PX_PIXET_VERSION&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;pixet.VERSION&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;PX_CHIP_ALL&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;pixet.CHIP_ALL&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;PX_TPX3_PIXSAVE_FILTERDUMMY&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;pixet.TPX3_PIXSAVE_FILTERDUMMY&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;PX_TPX3_PIXADD_UPDATE_PREVIEW&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;pixet.TPX3_PIXADD_UPDATE_PREVIEW&amp;lt;/code&amp;gt;.&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== 3. What&#039;s new ==&lt;br /&gt;
&lt;br /&gt;
=== Detector control ===&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;pixet.devicesTpx2()&amp;lt;/code&amp;gt; joins the existing per-type device lists.&lt;br /&gt;
* Device log events: &amp;lt;code&amp;gt;dev.registerLogEvent()&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;unregisterLogEvent()&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;code&amp;gt;registeredEvents()&amp;lt;/code&amp;gt; lists what &amp;lt;code&amp;gt;registerEvent()&amp;lt;/code&amp;gt; has registered on an object - one &amp;lt;code&amp;gt;EventItem&amp;lt;/code&amp;gt; per registration, with the read only members &amp;lt;code&amp;gt;name&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;callbackId&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;func&amp;lt;/code&amp;gt; (the registered callable). On &amp;lt;code&amp;gt;IDev&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;IDev2&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;IPixet&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;IParamSet&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;IPlugin&amp;lt;/code&amp;gt; - everything that registers events. Log events have their own handler and are not in the list.&lt;br /&gt;
* Constants are enum classes. &amp;lt;code&amp;gt;pixet.PX_FTYPE_AUTODETECT&amp;lt;/code&amp;gt; and friends were invisible to &amp;lt;code&amp;gt;dir()&amp;lt;/code&amp;gt; and to editors. They are now members of enum classes of the module - &amp;lt;code&amp;gt;pypixet.FileType.AUTODETECT&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pypixet.DataType.DOUBLE&amp;lt;/code&amp;gt; - listed in the stub, so autocompletion finds them, and the methods return members (&amp;lt;code&amp;gt;dev.deviceType()&amp;lt;/code&amp;gt; is &amp;lt;code&amp;gt;&amp;lt;DevType.TPX3: 3&amp;gt;&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;code&amp;gt;pygui&amp;lt;/code&amp;gt; ===&lt;br /&gt;
New widgets and types: &amp;lt;code&amp;gt;Table&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;TreeWidget&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;ScrollArea&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;Frame&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;DateEdit&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;TimeEdit&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;DateTimeEdit&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;BoxLayout&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;FormLayout&amp;lt;/code&amp;gt;, and the value types &amp;lt;code&amp;gt;Point&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;Size&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;Rect&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;Color&amp;lt;/code&amp;gt;. Qt constants are exposed as proper enums — &amp;lt;code&amp;gt;CursorShape&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;WindowType&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;EventType&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;AligmentFlag&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;ScrollBarPolicy&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;LayoutSizeConstraint&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;FrameShape&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;FrameShadow&amp;lt;/code&amp;gt; and more.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;Plot&amp;lt;/code&amp;gt; gains per-object layers, lines, scatters, highlights and axes (&amp;lt;code&amp;gt;PlotAxis&amp;lt;/code&amp;gt; on &amp;lt;code&amp;gt;axisX&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;axisY&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;secAxisX&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;secAxisY&amp;lt;/code&amp;gt;), log/linear axis scales, colour maps, the nested &amp;lt;code&amp;gt;ScaleType&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;AxisType&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;AxisOrientation&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;LabelType&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;ColorMap&amp;lt;/code&amp;gt; enums, and &amp;lt;code&amp;gt;setLineData()&amp;lt;/code&amp;gt; for updating a curve in one call. &amp;lt;code&amp;gt;MpxFrame&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;MpxFramePanel&amp;lt;/code&amp;gt; gain &amp;lt;code&amp;gt;data()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;setGamma()&amp;lt;/code&amp;gt;, zoom control (&amp;lt;code&amp;gt;setZoom()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;setZoomRect()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;zoomFactor()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;zoomOut()&amp;lt;/code&amp;gt;), selection rectangles and a &amp;lt;code&amp;gt;toolTipCallback&amp;lt;/code&amp;gt; member, plus the nested &amp;lt;code&amp;gt;SizeType&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;MarkType&amp;lt;/code&amp;gt; enums. &amp;lt;code&amp;gt;ComboBox&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;PropertyTreeView&amp;lt;/code&amp;gt; are much more complete.&lt;br /&gt;
&lt;br /&gt;
The dialog module functions are unchanged — &amp;lt;code&amp;gt;showMessage()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;showWarning()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;showError()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;showQuestion()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;inputText()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;showItemSelection()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;getOpenFileName()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;getSaveFileName()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;getSaveFileNameAndFilter()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;getExistingDirectory()&amp;lt;/code&amp;gt; all keep their 1.8.5 names and signatures.&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;code&amp;gt;pyclustering&amp;lt;/code&amp;gt; ===&lt;br /&gt;
A real module rather than a plugin shim, with &amp;lt;code&amp;gt;Pixel&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;Cluster&amp;lt;/code&amp;gt; value types:&lt;br /&gt;
 import pypixet&lt;br /&gt;
 import pyclustering&lt;br /&gt;
 &lt;br /&gt;
 pixet = pypixet.start()&lt;br /&gt;
 device = pixet.devices()[0]&lt;br /&gt;
 &lt;br /&gt;
 c = pyclustering.Clustering(device)&lt;br /&gt;
 c.newClustersCb = lambda clusters, acqIndex: print(len(clusters), &amp;quot;clusters&amp;quot;)&lt;br /&gt;
 c.loadCalibrationFromDevice()&lt;br /&gt;
 c.startMeasurement(1.0, 60.0, &amp;quot;run.clog&amp;quot;)&lt;br /&gt;
&amp;lt;code&amp;gt;Clustering(device)&amp;lt;/code&amp;gt; takes the device the measurement runs on; without it only &amp;lt;code&amp;gt;replayData()&amp;lt;/code&amp;gt; works — &amp;lt;code&amp;gt;startMeasurement()&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;loadCalibrationFromDevice()&amp;lt;/code&amp;gt; need one. The methods take positional arguments only, keyword arguments raise &amp;lt;code&amp;gt;TypeError&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Also: &amp;lt;code&amp;gt;replayData()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;abort()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;isRunning()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;loadCalibrationFromFiles()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;isCalibrationLoaded()&amp;lt;/code&amp;gt;, and the callbacks &amp;lt;code&amp;gt;messageCb&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;progressCb&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;newClustersWithPixelsCb&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;acqStartedCb&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;acqFinishedCb&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;code&amp;gt;pyspectraimg&amp;lt;/code&amp;gt; ===&lt;br /&gt;
Replaces the flat &amp;lt;code&amp;gt;si*&amp;lt;/code&amp;gt; functions with a &amp;lt;code&amp;gt;SpectraImg&amp;lt;/code&amp;gt; object and a &amp;lt;code&amp;gt;ProcParameters&amp;lt;/code&amp;gt; settings object:&lt;br /&gt;
 import pyspectraimg&lt;br /&gt;
 &lt;br /&gt;
 si = pyspectraimg.SpectraImg(dev)&lt;br /&gt;
 si.progressCb = lambda finished, pct: print(f&amp;quot;{pct:.0f}%&amp;quot;)&lt;br /&gt;
 si.loadCalibrationFromDevice()&lt;br /&gt;
 si.startMeasurement(1.0, 60.0, &amp;quot;run.h5&amp;quot;, True)&lt;br /&gt;
 img = si.getFrameForEnergyRange(10, 40, True)&lt;br /&gt;
The device argument is mandatory — &amp;lt;code&amp;gt;SpectraImg&amp;lt;/code&amp;gt; reads the matrix size and the chip layout from it. As in &amp;lt;code&amp;gt;pyclustering&amp;lt;/code&amp;gt;, the methods take positional arguments only.&lt;br /&gt;
&lt;br /&gt;
Plus &amp;lt;code&amp;gt;getGlobalSpectrum()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;getGlobalSpectrumInRect()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;saveSumFrame()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;saveDataAsFramesToFile()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;setXrfParams()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;processedPixelsPerSecond()&amp;lt;/code&amp;gt;, and XRF correction options on &amp;lt;code&amp;gt;ProcParameters&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;code&amp;gt;pyutils&amp;lt;/code&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
* New &amp;lt;code&amp;gt;linearRegression(y, x)&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Results are named tuples now, so &amp;lt;code&amp;gt;result.mean&amp;lt;/code&amp;gt; works alongside &amp;lt;code&amp;gt;result[0]&amp;lt;/code&amp;gt;: &amp;lt;code&amp;gt;SpectrumPeak&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;GerfFitResult&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;FitPeakResult&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;PerformToTfitResult&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;LinearRegressionResult&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;ClustersWithParams&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;code&amp;gt;calibGetSpectrumPeak()&amp;lt;/code&amp;gt; was renamed to &amp;lt;code&amp;gt;calibSpectrumPeak()&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;code&amp;gt;performToTfit()&amp;lt;/code&amp;gt; no longer takes a &amp;lt;code&amp;gt;stddev_out&amp;lt;/code&amp;gt; argument — the value is in the result.&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;code&amp;gt;pyftdi&amp;lt;/code&amp;gt; ===&lt;br /&gt;
The module-level functions now raise &amp;lt;code&amp;gt;RuntimeError&amp;lt;/code&amp;gt; with the FTDI error text instead of returning a status code, and &amp;lt;code&amp;gt;open()&amp;lt;/code&amp;gt; closes a device left open by an earlier &amp;lt;code&amp;gt;open()&amp;lt;/code&amp;gt;. The &amp;lt;code&amp;gt;Ftdi&amp;lt;/code&amp;gt; class — which already existed in 1.8.5 and lets you drive several devices at once — keeps its status-code return values, so its methods are unchanged.&lt;br /&gt;
 # 1.8.5&lt;br /&gt;
 rc = pyftdi.open(&amp;quot;FT4232H&amp;quot;, 115200)&lt;br /&gt;
 if rc != 0:&lt;br /&gt;
     ...&lt;br /&gt;
 &lt;br /&gt;
 # 1.8.6&lt;br /&gt;
 try:&lt;br /&gt;
     pyftdi.open(&amp;quot;FT4232H&amp;quot;, 115200)&lt;br /&gt;
 except RuntimeError as exc:&lt;br /&gt;
     ...&lt;br /&gt;
&lt;br /&gt;
=== Editor support ===&lt;br /&gt;
Every module ships a &amp;lt;code&amp;gt;.pyi&amp;lt;/code&amp;gt; type stub — &amp;lt;code&amp;gt;pypixet&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pygui&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pyutils&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pyclustering&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pyspectraimg&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pyftdi&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pyhid&amp;lt;/code&amp;gt;. Editors and type checkers pick these up automatically and give you completion, parameter hints and type checking against the API.&lt;br /&gt;
&lt;br /&gt;
The stubs are generated, and two of them are behind the sources in this release: &amp;lt;code&amp;gt;pypixet.pyi&amp;lt;/code&amp;gt; lists only a few of &amp;lt;code&amp;gt;IPixet&amp;lt;/code&amp;gt;&#039;s methods and still declares the removed &amp;lt;code&amp;gt;getLasError()&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;pygui.pyi&amp;lt;/code&amp;gt; omits the static methods of &amp;lt;code&amp;gt;Application&amp;lt;/code&amp;gt;. The modules themselves are correct — use &amp;lt;code&amp;gt;help()&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;dir()&amp;lt;/code&amp;gt; when a stub looks incomplete.&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== 4. Removed modules ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Module&lt;br /&gt;
!Replacement&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;pymeasutils&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;pyspectraimg&amp;lt;/code&amp;gt; — same functionality, object API&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;pybhfilter&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pyfffilter&amp;lt;/code&amp;gt;&lt;br /&gt;
|The filters themselves are unchanged; reach them through &amp;lt;code&amp;gt;pixet.filter_mgr&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;filters()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;filterByName()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;addFilter()&amp;lt;/code&amp;gt;)&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;pypxproc&amp;lt;/code&amp;gt;&lt;br /&gt;
|No direct replacement&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;pydevcontrol&amp;lt;/code&amp;gt;&lt;br /&gt;
|No direct replacement&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;pyequalization&amp;lt;/code&amp;gt;&lt;br /&gt;
|No direct replacement&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;pyfitpix&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pyminipix&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pymodupix&amp;lt;/code&amp;gt;&lt;br /&gt;
|Device-specific helpers; use the standard &amp;lt;code&amp;gt;IDev&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;IDevMpx&amp;lt;/code&amp;gt; API&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;pypyscripting&amp;lt;/code&amp;gt;&lt;br /&gt;
|No direct replacement&lt;br /&gt;
|}&lt;br /&gt;
The underlying Pixet features are unaffected — it is the thin Python wrapper modules that were retired. If you depend on one of these, contact support before upgrading so we can cover your use case.&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== 5. Upgrade checklist ==&lt;br /&gt;
&lt;br /&gt;
# Wrap acquisition and configuration calls in &amp;lt;code&amp;gt;try&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;except pypixet.PixetError&amp;lt;/code&amp;gt;; remove &amp;lt;code&amp;gt;-1&amp;lt;/code&amp;gt; checks and &amp;lt;code&amp;gt;pypixet.getLasError()&amp;lt;/code&amp;gt;.&lt;br /&gt;
# Delete every &amp;lt;code&amp;gt;destroy()&amp;lt;/code&amp;gt; call and rename &amp;lt;code&amp;gt;*RefInc()&amp;lt;/code&amp;gt; to the plain name.&lt;br /&gt;
# Replace &amp;lt;code&amp;gt;dev.parameters().get(name).getX()&amp;lt;/code&amp;gt; with &amp;lt;code&amp;gt;dev.params.getValue(name)&amp;lt;/code&amp;gt;.&lt;br /&gt;
# Drop the parentheses from &amp;lt;code&amp;gt;dev.dacs()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;dev.pixCfg()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pixet.dataMgr()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pixet.filterMgr()&amp;lt;/code&amp;gt;.&lt;br /&gt;
# Replace &amp;lt;code&amp;gt;dev.createCopyOfDacs()&amp;lt;/code&amp;gt; with &amp;lt;code&amp;gt;dev.dacs.copy()&amp;lt;/code&amp;gt; (and &amp;lt;code&amp;gt;dev.dacsMode(m)&amp;lt;/code&amp;gt; with &amp;lt;code&amp;gt;dev.dacs_opm[m]&amp;lt;/code&amp;gt;).&lt;br /&gt;
# Add &amp;lt;code&amp;gt;pixet.data_mgr&amp;lt;/code&amp;gt; as the first argument to &amp;lt;code&amp;gt;save()&amp;lt;/code&amp;gt;.&lt;br /&gt;
# Qualify mask calls with &amp;lt;code&amp;gt;User&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;Factory&amp;lt;/code&amp;gt;.&lt;br /&gt;
# Drop &amp;lt;code&amp;gt;asIMpxFrame()&amp;lt;/code&amp;gt; — the acquisition getters already return &amp;lt;code&amp;gt;IMpxFrame&amp;lt;/code&amp;gt; — and replace &amp;lt;code&amp;gt;canCastToDataFormat()&amp;lt;/code&amp;gt; with a &amp;lt;code&amp;gt;data.dataFormat()&amp;lt;/code&amp;gt; comparison.&lt;br /&gt;
# In &amp;lt;code&amp;gt;pygui&amp;lt;/code&amp;gt; code, swap &amp;lt;code&amp;gt;newXxx()&amp;lt;/code&amp;gt; factories for constructors and &amp;lt;code&amp;gt;setEventHandler()&amp;lt;/code&amp;gt; for &amp;lt;code&amp;gt;eventFilter().setHandler()&amp;lt;/code&amp;gt;.&lt;br /&gt;
# Replace the &amp;lt;code&amp;gt;pixet.PX_*&amp;lt;/code&amp;gt; constants with the enum class members (§2.12).&lt;br /&gt;
# Check §4 for any removed module you import.&lt;/div&gt;</summary>
		<author><name>Kocid</name></author>
	</entry>
	<entry>
		<id>https://wiki.advacam.cz/index.php?title=Pixet_1.8.5_%E2%86%92_1.8.6&amp;diff=1762</id>
		<title>Pixet 1.8.5 → 1.8.6</title>
		<link rel="alternate" type="text/html" href="https://wiki.advacam.cz/index.php?title=Pixet_1.8.5_%E2%86%92_1.8.6&amp;diff=1762"/>
		<updated>2026-10-13T08:55:38Z</updated>

		<summary type="html">&lt;p&gt;Kocid: Created page with &amp;quot;Pixet Python API&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Pixet Python API&lt;/div&gt;</summary>
		<author><name>Kocid</name></author>
	</entry>
	<entry>
		<id>https://wiki.advacam.cz/index.php?title=PIXet_Release_Notes&amp;diff=1761</id>
		<title>PIXet Release Notes</title>
		<link rel="alternate" type="text/html" href="https://wiki.advacam.cz/index.php?title=PIXet_Release_Notes&amp;diff=1761"/>
		<updated>2026-10-13T08:54:31Z</updated>

		<summary type="html">&lt;p&gt;Kocid: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Pixet 1.8.5 → 1.8.6]]&lt;/div&gt;</summary>
		<author><name>Kocid</name></author>
	</entry>
	<entry>
		<id>https://wiki.advacam.cz/index.php?title=PIXet_Release_Notes&amp;diff=1760</id>
		<title>PIXet Release Notes</title>
		<link rel="alternate" type="text/html" href="https://wiki.advacam.cz/index.php?title=PIXet_Release_Notes&amp;diff=1760"/>
		<updated>2026-10-13T08:54:12Z</updated>

		<summary type="html">&lt;p&gt;Kocid: Created page with &amp;quot;Pixet 1.8.5 → 1.8.6&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Pixet 1.8.5 → 1.8.6&lt;/div&gt;</summary>
		<author><name>Kocid</name></author>
	</entry>
	<entry>
		<id>https://wiki.advacam.cz/index.php?title=Main_Page&amp;diff=1759</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.advacam.cz/index.php?title=Main_Page&amp;diff=1759"/>
		<updated>2026-10-13T08:52:43Z</updated>

		<summary type="html">&lt;p&gt;Kocid: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Software support texts =&lt;br /&gt;
* [[PIXet|Manual of the PIXet program]]&lt;br /&gt;
* [[PIXet EDU|Manual of the PIXet EDU]]&lt;br /&gt;
* [[PIXet Release Notes]]&lt;br /&gt;
* [[EDU Kit experiments cookbook]]&lt;br /&gt;
* [[Files_and_directories_of_the_Pixet_and_SDK|Files and directories of the Pixet program and SDK]]&lt;br /&gt;
* [[File types]]&lt;br /&gt;
* [[Pixet_SDK|The Pixet SDK]]&lt;br /&gt;
* [[TraX Engine|TraX Engine (former DPE) - data processing engine for tracking analysis]]&lt;br /&gt;
&lt;br /&gt;
= Devices support texts =&lt;br /&gt;
* [[Devices support]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
(Note: The wiki is under construction - some pages not complete)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
&amp;lt;strong&amp;gt;MediaWiki has been installed.&amp;lt;/strong&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Consult the [https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents User&#039;s Guide] for information on using the wiki software.&lt;br /&gt;
&lt;br /&gt;
== Getting started ==&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings Configuration settings list]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ MediaWiki FAQ]&lt;br /&gt;
* [https://lists.wikimedia.org/postorius/lists/mediawiki-announce.lists.wikimedia.org/ MediaWiki release mailing list]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources Localise MediaWiki for your language]&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam Learn how to combat spam on your wiki]&lt;br /&gt;
--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kocid</name></author>
	</entry>
	<entry>
		<id>https://wiki.advacam.cz/index.php?title=File:1698696404Warrior7c.svg&amp;diff=1157</id>
		<title>File:1698696404Warrior7c.svg</title>
		<link rel="alternate" type="text/html" href="https://wiki.advacam.cz/index.php?title=File:1698696404Warrior7c.svg&amp;diff=1157"/>
		<updated>2024-08-01T08:46:52Z</updated>

		<summary type="html">&lt;p&gt;Kocid: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Kocid</name></author>
	</entry>
</feed>