From 7912cbd5b934c13c65516022a68ca9def973eb93 Mon Sep 17 00:00:00 2001 From: Ad5001 Date: Thu, 30 Sep 2021 20:36:05 +0200 Subject: [PATCH 1/4] Fixing quite a few bugs. v0.1.2 --- .../eu/ad5001/LogarithmPlotter/ObjectLists/EditorDialog.qml | 2 +- .../qml/eu/ad5001/LogarithmPlotter/js/objs/gainbode.js | 2 +- .../qml/eu/ad5001/LogarithmPlotter/js/objs/phasebode.js | 2 +- .../eu/ad5001/LogarithmPlotter/js/objs/sommegainsbode.js | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/EditorDialog.qml b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/EditorDialog.qml index 9256ab5..803faea 100644 --- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/EditorDialog.qml +++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/EditorDialog.qml @@ -60,7 +60,7 @@ D.Dialog { icon: "icons/settings/custom/label.svg" min: 1 width: dlgProperties.width - defValue: objEditor.obj.name + value: objEditor.obj.name onChanged: function(newValue) { var newName = Utils.parseName(newValue) if(newName != '' && objEditor.obj.name != newName) { diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/gainbode.js b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/gainbode.js index a0cca33..d385862 100644 --- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/gainbode.js +++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/gainbode.js @@ -158,7 +158,7 @@ class GainBode extends Common.ExecutableObject { update() { super.update() - if(Objects.currentObjects['Somme gains Bode'] != undefined) { + if(Objects.currentObjects['Somme gains Bode'] != undefined && Objects.currentObjects['Somme gains Bode'].length > 0) { Objects.currentObjects['Somme gains Bode'][0].recalculateCache() } else { Objects.createNewRegisteredObject('Somme gains Bode') diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/phasebode.js b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/phasebode.js index 4fb296c..c2f2bbd 100644 --- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/phasebode.js +++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/phasebode.js @@ -147,7 +147,7 @@ class PhaseBode extends Common.ExecutableObject { } update() { - if(Objects.currentObjects['Somme phases Bode'] != undefined) { + if(Objects.currentObjects['Somme phases Bode'] != undefined && Objects.currentObjects['Somme phases Bode'].length > 0) { Objects.currentObjects['Somme phases Bode'][0].recalculateCache() } else { Objects.createNewRegisteredObject('Somme phases Bode') diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/sommegainsbode.js b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/sommegainsbode.js index 9412bbe..27af613 100644 --- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/sommegainsbode.js +++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/sommegainsbode.js @@ -83,8 +83,8 @@ class SommeGainsBode extends Common.DrawableObject { var drawMin = 0.001 var baseY = 0 - var om0xGains = {100000: 0} // To draw the last part - var om0xPass = {100000: 'high'} // To draw the last part + var om0xGains = {1000000000: 0} // To draw the last part + var om0xPass = {1000000000: 'high'} // To draw the last part Objects.currentObjects['Gain Bode'].forEach(function(gainObj) { // Sorting by their om_0 position. var om0x = gainObj.om_0.x.execute() if(om0xGains[om0x] == undefined) { @@ -115,7 +115,7 @@ class SommeGainsBode extends Common.DrawableObject { } // Calculating parts var previousPallier = drawMin - for(var pallier = 0; pallier <= om0xList.length; pallier++) { + for(var pallier = 0; pallier < om0xList.length; pallier++) { var dbfn = new MathLib.Expression(`${gainTotal}*(ln(x)-ln(${previousPallier}))/ln(10)+${baseY}`) var inDrawDom = MathLib.parseDomain(`]${previousPallier};${om0xList[pallier]}]`) this.cachedParts.push([dbfn, inDrawDom]) From b7f4b0fea5a330ddfa8705da2182fead8dbf6980 Mon Sep 17 00:00:00 2001 From: Ad5001 Date: Thu, 30 Sep 2021 20:41:27 +0200 Subject: [PATCH 2/4] Updating version of all packaging systems. v0.1.2 --- LogarithmPlotter/__init__.py | 2 +- linux/debian/control | 2 +- snapcraft.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/LogarithmPlotter/__init__.py b/LogarithmPlotter/__init__.py index c5e0b10..aa63184 100644 --- a/LogarithmPlotter/__init__.py +++ b/LogarithmPlotter/__init__.py @@ -17,7 +17,7 @@ """ from shutil import which -__VERSION__ = "0.1.1" +__VERSION__ = "0.1.2" is_release = False diff --git a/linux/debian/control b/linux/debian/control index 110bbcd..54e8d0a 100644 --- a/linux/debian/control +++ b/linux/debian/control @@ -1,6 +1,6 @@ Package: logarithmplotter Source: logarithmplotter -Version: 0.1 +Version: 0.1.2 Architecture: all Maintainer: Ad5001 Depends: python3, python3-pip, qml-module-qtquick-controls2 (>= 5.12.0), qml-module-qtmultimedia (>= 5.12.0), qml-module-qtgraphicaleffects (>= 5.12.0), qml-module-qtquick2 (>= 5.12.0), qml-module-qtqml-models2 (>= 5.12.0), qml-module-qtquick-controls (>= 5.12.0), python3-pyside2.qtcore (>= 5.12.0), python3-pyside2.qtqml (>= 5.12.0), python3-pyside2.qtgui (>= 5.12.0), python3-pyside2.qtquick (>= 5.12.0), python3-pyside2.qtwidgets (>= 5.12.0), python3-pyside2.qtmultimedia (>= 5.12.0), python3-pyside2.qtnetwork (>= 5.12.0) diff --git a/snapcraft.yaml b/snapcraft.yaml index 42a0f64..99646dd 100644 --- a/snapcraft.yaml +++ b/snapcraft.yaml @@ -1,6 +1,6 @@ name: logarithmplotter title: LogarithmPlotter -version: '0.1' +version: '0.1.2' summary: 2D plotter software to make BODE plots, sequences and repartition functions. description: | LogarithmPlotter is, as it's name suggests, a plotter made with logarithm scales in mind. With an object system similar to [Geogebra](https://geogebra.org)'s, it allows dynamic creation of plots with very few limitations. From 0713d66cb034f29aaf5903336f2bbfea6d4ef7d6 Mon Sep 17 00:00:00 2001 From: Ad5001 Date: Thu, 30 Sep 2021 20:46:58 +0200 Subject: [PATCH 3/4] Forgot to add debian changelog. --- linux/debian/changelog | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/linux/debian/changelog b/linux/debian/changelog index 33029f8..c1fdfa0 100644 --- a/linux/debian/changelog +++ b/linux/debian/changelog @@ -1,3 +1,13 @@ +logarithmplotter (0.1.2) unstable; urgency=medium + + * Fixed bug: Unable to move Bode diagrams elements when having deleted the sum element. + * Fixed bug: Names were not not being changed from previous object when editing a new one. + * Fixed bug: Bode Magnitude was not drawn far enough + * Fixed bug: Bode Magnitude had undefined ending. + * Fixed other bugs from v0.1.1. + + -- Ad5001 Mon, 06 Jun 2021 08:48:28 +0200 + logarithmplotter (0.1.dev0) UNRELEASED; urgency=medium * Initial release. From 9833e7ae65d6c5c4b9dcb2707bf632e3a3e4ca96 Mon Sep 17 00:00:00 2001 From: Ad5001 Date: Thu, 30 Sep 2021 20:49:34 +0200 Subject: [PATCH 4/4] Forgot to add timestamp for version. --- linux/debian/changelog | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux/debian/changelog b/linux/debian/changelog index c1fdfa0..da00b9a 100644 --- a/linux/debian/changelog +++ b/linux/debian/changelog @@ -6,7 +6,7 @@ logarithmplotter (0.1.2) unstable; urgency=medium * Fixed bug: Bode Magnitude had undefined ending. * Fixed other bugs from v0.1.1. - -- Ad5001 Mon, 06 Jun 2021 08:48:28 +0200 + -- Ad5001 Mon, 30 Sep 2021 20:00:00 +0200 logarithmplotter (0.1.dev0) UNRELEASED; urgency=medium