This commit is contained in:
Adsooi 2021-09-30 23:00:43 +02:00
commit 4e3fd84cf8
Signed by: Ad5001
GPG key ID: 7251B1AF90B960F9
8 changed files with 19 additions and 9 deletions

View file

@ -17,7 +17,7 @@
""" """
from shutil import which from shutil import which
__VERSION__ = "0.1.1" __VERSION__ = "0.1.2"
is_release = False is_release = False

View file

@ -60,7 +60,7 @@ D.Dialog {
icon: "icons/settings/custom/label.svg" icon: "icons/settings/custom/label.svg"
min: 1 min: 1
width: dlgProperties.width width: dlgProperties.width
defValue: objEditor.obj.name value: objEditor.obj.name
onChanged: function(newValue) { onChanged: function(newValue) {
var newName = Utils.parseName(newValue) var newName = Utils.parseName(newValue)
if(newName != '' && objEditor.obj.name != newName) { if(newName != '' && objEditor.obj.name != newName) {

View file

@ -158,7 +158,7 @@ class GainBode extends Common.ExecutableObject {
update() { update() {
super.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() Objects.currentObjects['Somme gains Bode'][0].recalculateCache()
} else { } else {
Objects.createNewRegisteredObject('Somme gains Bode') Objects.createNewRegisteredObject('Somme gains Bode')

View file

@ -147,7 +147,7 @@ class PhaseBode extends Common.ExecutableObject {
} }
update() { 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() Objects.currentObjects['Somme phases Bode'][0].recalculateCache()
} else { } else {
Objects.createNewRegisteredObject('Somme phases Bode') Objects.createNewRegisteredObject('Somme phases Bode')

View file

@ -83,8 +83,8 @@ class SommeGainsBode extends Common.DrawableObject {
var drawMin = 0.001 var drawMin = 0.001
var baseY = 0 var baseY = 0
var om0xGains = {100000: 0} // To draw the last part var om0xGains = {1000000000: 0} // To draw the last part
var om0xPass = {100000: 'high'} // 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. Objects.currentObjects['Gain Bode'].forEach(function(gainObj) { // Sorting by their om_0 position.
var om0x = gainObj.om_0.x.execute() var om0x = gainObj.om_0.x.execute()
if(om0xGains[om0x] == undefined) { if(om0xGains[om0x] == undefined) {
@ -115,7 +115,7 @@ class SommeGainsBode extends Common.DrawableObject {
} }
// Calculating parts // Calculating parts
var previousPallier = drawMin 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 dbfn = new MathLib.Expression(`${gainTotal}*(ln(x)-ln(${previousPallier}))/ln(10)+${baseY}`)
var inDrawDom = MathLib.parseDomain(`]${previousPallier};${om0xList[pallier]}]`) var inDrawDom = MathLib.parseDomain(`]${previousPallier};${om0xList[pallier]}]`)
this.cachedParts.push([dbfn, inDrawDom]) this.cachedParts.push([dbfn, inDrawDom])

View file

@ -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 <mail@ad5001.eu> Mon, 30 Sep 2021 20:00:00 +0200
logarithmplotter (0.1.dev0) UNRELEASED; urgency=medium logarithmplotter (0.1.dev0) UNRELEASED; urgency=medium
* Initial release. * Initial release.

View file

@ -1,6 +1,6 @@
Package: logarithmplotter Package: logarithmplotter
Source: logarithmplotter Source: logarithmplotter
Version: 0.1 Version: 0.1.2
Architecture: all Architecture: all
Maintainer: Ad5001 <mail@ad5001.eu> Maintainer: Ad5001 <mail@ad5001.eu>
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) 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)

View file

@ -1,6 +1,6 @@
name: logarithmplotter name: logarithmplotter
title: LogarithmPlotter title: LogarithmPlotter
version: '0.1' version: '0.1.2'
summary: 2D plotter software to make BODE plots, sequences and repartition functions. summary: 2D plotter software to make BODE plots, sequences and repartition functions.
description: | 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. 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.