Puzzlepiece

Latest version: v0.11.0

Safety actively analyzes 688803 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 2

0.5.0

It's now easier for multiple Pieces to share a device SDK with each other - they can put a hold on it in `puzzle.globals` and release it when done, only setting up and closing the SDK once for all Pieces.

See https://puzzlepiece.readthedocs.io/en/latest/puzzlepiece.puzzle.html#puzzlepiece.puzzle.Globals for examples

0.4.0

**Array params** let you properly communicate more complex data, like images or spectra, through the unified puzzlepiece API. They use numpy arrays as the data format.

**Dropdown params** can be populated with default values at startup and make it much easier to select device serial numbers.

The setup method of a Piece is now called ahead of param definition, so that dropdown params can use a device SDK to search for available devices.

0.3.0

The previous design of how params handled being set programmatically and from input fields mostly worked, but was rather convoluted, and limited the precision of the stored value to the display precision, which is very silly.

The back-end way params work and the associated signalling has thus been reworked, and new tests were introduced to test for correctness of the new behaviour.

See https://github.com/jdranczewski/puzzlepiece/commit/af352443ceb9f10afc556b706d7af7e4d208b597 for the exact changes, but most of the behaviour should be unchanged. Most notably:

- params no longer have limited precision, should go as precise as float allows
- the `changed` Signal is now emitted every time `set_value` is called, even if the value didn't necessarily change
- if implementing custom params, `_input_set_value` should block any Signals emitted by changing the input using this method. This can be achieved using `self.input.blockSignals(True)` and `self.input.blockSignals(False)`

v0.2.0-bumped
This update introduces an official way to handle threaded jobs to the library with `Workers` and `LiveWorkers`! For implementation details see https://puzzlepiece.readthedocs.io/en/latest/puzzlepiece.threads.html and for an example of how to use the new `PuzzleTimer` and the `returned` Signal, see https://github.com/jdranczewski/puzzlepiece/blob/v0.2.0/puzzlepiece/pieces/plotter.py

Some convenience functions were also added to the `Puzzle` object, see https://github.com/jdranczewski/puzzlepiece/commit/7319dbdbf521be4e3eadaae20dd253e23856c731

0.1.0

The package can now be installed from PyPI:
pip install puzzlepiece

release

Page 2 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.