Releases: signaloid/signaloid-python
Releases · signaloid/signaloid-python
Version 1.9.0
Changelog
- Added histogram plotting fallback logic for non-TTR input. In
PlotData._construct_plot_data, if the TTR pipeline fails or the input is not a valid TTR, the code uses a uniform-width histogram approach, ensuring more robust and meaningful binning for arbitrary Dirac deltas. - Removed all
from __future__ import annotationsstatements. - Updated some typing annotations.
- Updated dependencies.
Version 1.8.0
Changelog
- Added Python 3.14 to supported versions.
- Added Python 3.12 and 3.14 to test targets.
- Updated dependencies on
pyproject.tomlfor better/wider compatibility, only allowing prebuilds of numpy and matplotlib. - Added the
DistributionalValue.from_samplesand thePlotData.from_samplesmethods with their corresponding tests. - Added support for plotting samples.
- Changed to open the
test_ux_value_pairs.csvrelatively to script's path for maximum compatibility. - Optimized plotting and TTR binning performance.
- Updated the
distributional_information_plotting/README.md. - Fixes related signaloid-python issue 1.
Version 1.7.3
Changelog
- Create 00-public-bug-issue-template-v1.yml by @LaurenceSignaloid in #12
- Updated to version
1.7.3by @michaelselby-signaloid in #13
Version 1.7.2
Changelog
- Updated type hinting.
- Project reformatting.
Version 1.7.0
Changelog
- Updated all dependencies to their latest version that support at least Python 3.9.
- Moved to NumPy 2.
Version 1.6.1
Changelog
- Updated wheel to version
0.46.2to fix security issue "Arbitrary File Permission Modification via Path Traversal in wheel unpack".
Version 1.6.0
Changelog
- Added the
uxdata_tools.py: A set of tools for working with Signaloid Ux data. Currently supporting a simple plot-to-image command. - Added support for automatic format detection and parsing of a given distribution on the
DistributionalValue.parsemethod.- Tries to parse the given
distas Ux-bytes when it is a string, but is not in a valid Ux-string format. - Tries to detect the floating point precision (single/double) when the
double_precisionparameter is not defined.
- Tries to parse the given
Example use
# Set Python environment
python3 -m venv .venv
source .venv/bin/activate
poetry install
# Run plot command with a Ux-string
signaloid-uxdata-toolkit plot 0.40007Ux0000000000000000013FD99AC12423C7C7000000013FD99AC12423C7C78000000000000000
# Run plot command with a Ux-bytes
signaloid-uxdata-toolkit plot 09168733bf9ad93f000100000000000000c7c72324c19ad93f01000000c7c72324c19ad93f0000000000000080
# Run plot command with a specified output path
signaloid-uxdata-toolkit plot -o output.png 0.40007Ux0000000000000000013FD99AC12423C7C7000000013FD99AC12423C7C78000000000000000```Version 1.5.0
Changelog
- Created the
DiracDeltaclass to hold the position and mass of each Dirac Delta of theDistributionalValue, and apply arithmetic operations on them. - Applied multiple fixes and simplifications to the
DistributionalValueclass for better performance, readability, and maintainability.- Added support for scientific (E) notation and non-finite particle values in UX-string parsing.
- Refactored bytes export to
__bytes__. - Explicitly defined endianness for data packing/unpacking.
- Added more parameters for initializing a
DistributionalValueobject. - Added
dirac_deltasandfinite_dirac_deltascalculated properties. - Removed unused properties
- Removed unused
calculate_stepsfunction.
- Created the
PlotDataclass to encapsulate plotting data (boundaries/heights). - Centralized plot rendering in
plot_wrapper.py, for easier integration with different environments. - Added CircuitPython support with a dedicated
NumpyWrappermodule for supporting all numpy functions used, and a CircuitPython plot wrapper module based on uplot. - Added new tests and typing improvements across modules.
- Removed redundant imports from package
__init__files to improve CircuitPython compatibility. - Removed redundant
py.typedfile.
Version 1.3.0
Changelog
Updated DistributionalValue to support parsing Ux strings and Ux bytes that encode the DD positions as single-precision floats.
Version 1.2.0
v1.2.0 Bump up to version 1.2