From 71a22c6a121d1294a05ef35020c525fa70cae2fd Mon Sep 17 00:00:00 2001
From: Brianna Rainey
Date: Thu, 29 Jan 2026 14:50:29 -0500
Subject: v2.2.2 - fix flaky tests, fix UnboundLocalError in
MainWindow.createNewProject (#94)
* search more than one filename for compName
* remove extra QVBoxLayout
* insert default components using name instead of index
* bump version 2.2.1 to 2.2.2
* tests do not use `.config` for settings
Core.storeSettings() is no longer called as a side effect any time avp.core is imported. Thus the tests use a new `initCore` method and the normal user path now relies on entering via `cli.py`. This means certain toolkit functions (e.g., ones using `FFMPEG_BIN`) no longer work if imported from a different python script, unless they call Core.storeSettings() themselves to initialize the settings.ini file
* fix UnboundLocalError in createNewProject---
src/avp/components/spectrum.ui | 1686 ++++++++++++++++++++--------------------
1 file changed, 838 insertions(+), 848 deletions(-)
(limited to 'src/avp/components')
diff --git a/src/avp/components/spectrum.ui b/src/avp/components/spectrum.ui
index c6a8a15..3bde075 100644
--- a/src/avp/components/spectrum.ui
+++ b/src/avp/components/spectrum.ui
@@ -27,909 +27,899 @@
-
-
-
- 4
-
+
-
-
+
+
+
+ 0
+ 0
+
+
+
+ Type
+
+
-
-
-
-
-
-
-
- 0
- 0
-
-
-
- Type
-
-
-
+
-
-
-
-
-
- Spectrum
-
-
- -
-
- Histogram
-
-
- -
-
- Vector Scope
-
-
- -
-
- Musical Scale
-
-
- -
-
- Phase
-
-
-
+
+ Spectrum
+
-
-
-
- Qt::Horizontal
-
-
- QSizePolicy::Fixed
-
-
-
- 5
- 20
-
-
-
+
+ Histogram
+
-
-
-
-
- 0
- 0
-
-
-
- X
-
-
+
+ Vector Scope
+
-
-
-
-
- 0
- 0
-
-
-
-
- 80
- 16777215
-
-
-
- -10000
-
-
- 10000
-
-
+
+ Musical Scale
+
-
-
-
-
- 0
- 0
-
-
-
- Y
-
-
+
+ Phase
+
- -
-
-
-
- 0
- 0
-
-
-
-
- 80
- 16777215
-
-
-
-
- 0
- 0
-
-
-
- -10000
-
-
- 10000
-
-
- 0
-
-
-
-
+
-
-
-
-
-
-
- Compress
-
-
-
- -
-
-
- Mono
-
-
-
- -
-
-
- Mirror
-
-
-
- -
-
-
- Qt::Horizontal
-
-
-
- 40
- 20
-
-
-
-
- -
-
-
- Hue
-
-
- 4
-
-
-
- -
-
-
- °
-
-
- 359
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
- Scale
-
-
- Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
-
-
-
- -
-
-
- QAbstractSpinBox::UpDownArrows
-
-
- %
-
-
- 10
-
-
- 400
-
-
- 100
-
-
-
-
+
+
+ Qt::Orientation::Horizontal
+
+
+ QSizePolicy::Policy::Fixed
+
+
+
+ 5
+ 20
+
+
+
-
-
+
-
+
0
0
-
- false
+
+ X
-
- QFrame::NoFrame
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 80
+ 16777215
+
+
+
+ -10000
+
+
+ 10000
+
+
+
+ -
+
+
+
+ 0
+ 0
+
-
- QFrame::Plain
+
+ Y
-
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 80
+ 16777215
+
+
+
+
+ 0
+ 0
+
+
+
+ -10000
+
+
+ 10000
+
+
0
-
-
-
-
- 0
- 0
- 561
- 66
-
-
-
+
+
+
+
+ -
+
+
-
+
+
+ Compress
+
+
+
+ -
+
+
+ Mono
+
+
+
+ -
+
+
+ Mirror
+
+
+
+ -
+
+
+ Qt::Orientation::Horizontal
+
+
+
+ 40
+ 20
+
+
+
+
+ -
+
+
+ Hue
+
+
+ 4
+
+
+
+ -
+
+
+ °
+
+
+ 359
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+ Scale
+
+
+ Qt::AlignmentFlag::AlignRight|Qt::AlignmentFlag::AlignTrailing|Qt::AlignmentFlag::AlignVCenter
+
+
+
+ -
+
+
+ QAbstractSpinBox::ButtonSymbols::UpDownArrows
+
+
+ %
+
+
+ 10
+
+
+ 400
+
+
+ 100
+
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+ false
+
+
+ QFrame::Shape::NoFrame
+
+
+ QFrame::Shadow::Plain
+
+
+ 0
+
+
+
+
+
+ 0
+ 0
+ 561
+ 76
+
+
+
+
+ QLayout::SizeConstraint::SetMaximumSize
+
+
+ 0
+
+
-
+
- QLayout::SetMaximumSize
-
-
- 0
+ QLayout::SizeConstraint::SetDefaultConstraint
-
-
-
- QLayout::SetDefaultConstraint
-
-
-
-
-
-
- 0
- 0
-
-
-
-
- 31
- 0
-
-
-
- Window
-
-
- 4
-
-
-
- -
-
-
-
-
- hann
-
-
- -
-
- gauss
-
-
- -
-
- tukey
-
-
- -
-
- dolph
-
-
- -
-
- cauchy
-
-
- -
-
- parzen
-
-
- -
-
- poisson
-
-
- -
-
- rect
-
-
- -
-
- bartlett
-
-
- -
-
- hanning
-
-
- -
-
- hamming
-
-
- -
-
- blackman
-
-
- -
-
- welch
-
-
- -
-
- flattop
-
-
- -
-
- bharris
-
-
- -
-
- bnuttall
-
-
- -
-
- lanczos
-
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
- Amplitude
-
-
- 4
-
-
-
- -
-
-
-
-
- Square root
-
-
- -
-
- Cubic root
-
-
- -
-
- 4thrt
-
-
- -
-
- 5thrt
-
-
- -
-
- Linear
-
-
- -
-
- Logarithmic
-
-
-
-
- -
-
-
- Qt::Horizontal
-
-
- QSizePolicy::MinimumExpanding
-
-
-
- 10
- 20
-
-
-
-
-
+
+
+
+ 0
+ 0
+
+
+
+
+ 31
+ 0
+
+
+
+ Window
+
+
+ 4
+
+
-
-
-
-
-
-
-
- 0
- 0
-
-
-
- Color
-
-
- 4
-
-
-
- -
-
-
-
-
- Channel
-
-
- -
-
- Intensity
-
-
- -
-
- Rainbow
-
-
- -
-
- Moreland
-
-
- -
-
- Nebulae
-
-
- -
-
- Fire
-
-
- -
-
- Fiery
-
-
- -
-
- Fruit
-
-
- -
-
- Cool
-
-
-
-
- -
-
-
- Qt::Horizontal
-
-
- QSizePolicy::MinimumExpanding
-
-
-
- 10
- 20
-
-
-
-
-
+
+ -
+
+ hann
+
+
+ -
+
+ gauss
+
+
+ -
+
+ tukey
+
+
+ -
+
+ dolph
+
+
+ -
+
+ cauchy
+
+
+ -
+
+ parzen
+
+
+ -
+
+ poisson
+
+
+ -
+
+ rect
+
+
+ -
+
+ bartlett
+
+
+ -
+
+ hanning
+
+
+ -
+
+ hamming
+
+
+ -
+
+ blackman
+
+
+ -
+
+ welch
+
+
+ -
+
+ flattop
+
+
+ -
+
+ bharris
+
+
+ -
+
+ bnuttall
+
+
+ -
+
+ lanczos
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+ Amplitude
+
+
+ 4
+
+
+
+ -
+
+
-
+
+ Square root
+
+
+ -
+
+ Cubic root
+
+
+ -
+
+ 4thrt
+
+
+ -
+
+ 5thrt
+
+
+ -
+
+ Linear
+
+
+ -
+
+ Logarithmic
+
+
+
+
+ -
+
+
+ Qt::Orientation::Horizontal
+
+
+ QSizePolicy::Policy::MinimumExpanding
+
+
+
+ 10
+ 20
+
+
+
-
-
-
-
-
-
- -1
- -1
- 561
- 31
-
-
-
+
+ -
+
-
-
-
-
-
-
-
- 0
- 0
-
-
-
- Display Scale
-
-
- 4
-
-
-
- -
-
-
-
-
- Logarithmic
-
-
- -
-
- Square root
-
-
- -
-
- Cubic root
-
-
- -
-
- Linear
-
-
- -
-
- Reverse Log
-
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
- Amplitude
-
-
- 4
-
-
-
- -
-
-
-
-
- Logarithmic
-
-
- -
-
- Linear
-
-
-
-
- -
-
-
- Qt::Horizontal
-
-
- QSizePolicy::Minimum
-
-
-
- 40
- 20
-
-
-
-
-
+
+
+
+ 0
+ 0
+
+
+
+ Color
+
+
+ 4
+
+
+
+ -
+
+
-
+
+ Channel
+
+
+ -
+
+ Intensity
+
+
+ -
+
+ Rainbow
+
+
+ -
+
+ Moreland
+
+
+ -
+
+ Nebulae
+
+
+ -
+
+ Fire
+
+
+ -
+
+ Fiery
+
+
+ -
+
+ Fruit
+
+
+ -
+
+ Cool
+
+
+
+
+ -
+
+
+ Qt::Orientation::Horizontal
+
+
+ QSizePolicy::Policy::MinimumExpanding
+
+
+
+ 10
+ 20
+
+
+
-
-
-
-
-
-
- -1
- -1
- 585
- 64
-
-
-
+
+
+
+
+
+
+
+
+ -1
+ -1
+ 561
+ 36
+
+
+
+ -
+
-
-
-
-
-
-
- Mode
-
-
-
- -
-
-
-
-
- lissajous
-
-
- -
-
- lissajous_xy
-
-
- -
-
- polar
-
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
- Amplitude
-
-
- 4
-
-
-
- -
-
-
-
-
- Linear
-
-
- -
-
- Square root
-
-
- -
-
- Cubic root
-
-
- -
-
- Logarithmic
-
-
-
-
- -
-
-
- Qt::Horizontal
-
-
-
- 40
- 20
-
-
-
-
-
+
+
+
+ 0
+ 0
+
+
+
+ Display Scale
+
+
+ 4
+
+
-
-
-
-
-
-
-
- 0
- 0
-
-
-
- Zoom
-
-
- 4
-
-
-
- -
-
-
- 1
-
-
- 10
-
-
-
- -
-
-
- Line
-
-
-
- -
-
-
- Qt::Horizontal
-
-
-
- 40
- 20
-
-
-
-
-
+
+ -
+
+ Logarithmic
+
+
+ -
+
+ Square root
+
+
+ -
+
+ Cubic root
+
+
+ -
+
+ Linear
+
+
+ -
+
+ Reverse Log
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+ Amplitude
+
+
+ 4
+
+
+
+ -
+
+
-
+
+ Logarithmic
+
+
+ -
+
+ Linear
+
+
+
+
+ -
+
+
+ Qt::Orientation::Horizontal
+
+
+ QSizePolicy::Policy::Minimum
+
+
+
+ 40
+ 20
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -1
+ -1
+ 585
+ 76
+
+
+
+ -
+
+
-
+
+
+ Mode
+
+
+
+ -
+
+
-
+
+ lissajous
+
+
+ -
+
+ lissajous_xy
+
+
+ -
+
+ polar
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+ Amplitude
+
+
+ 4
+
+
+
+ -
+
+
-
+
+ Linear
+
+
+ -
+
+ Square root
+
+
+ -
+
+ Cubic root
+
+
+ -
+
+ Logarithmic
+
+
+
+
+ -
+
+
+ Qt::Orientation::Horizontal
+
+
+
+ 40
+ 20
+
+
+
-
-
-
-
-
-
- 0
- 0
- 561
- 31
-
-
-
+
+ -
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+ Zoom
+
+
+ 4
+
+
+
+ -
+
+
+ 1
+
+
+ 10
+
+
+
+ -
+
+
+ Line
+
+
+
-
-
-
-
-
-
-
- 0
- 0
-
-
-
- Timeclamp
-
-
- 4
-
-
-
- -
-
-
- s
-
-
- 3
-
-
- 0.002000000000000
-
-
- 1.000000000000000
-
-
- 0.010000000000000
-
-
- 0.017000000000000
-
-
-
- -
-
-
- Qt::Horizontal
-
-
-
- 40
- 20
-
-
-
-
-
+
+
+ Qt::Orientation::Horizontal
+
+
+
+ 40
+ 20
+
+
+
-
-
-
-
-
-
- 0
- 0
- 551
- 31
-
-
-
+
+
+
+
+
+
+
+
+ 0
+ 0
+ 561
+ 36
+
+
+
+ -
+
-
-
+
+
+
+ 0
+ 0
+
+
+
+ Timeclamp
+
+
+ 4
+
+
+
+ -
+
+
+ s
+
+
+ 3
+
+
+ 0.002000000000000
+
+
+ 1.000000000000000
+
+
+ 0.010000000000000
+
+
+ 0.017000000000000
+
+
+
+ -
+
+
+ Qt::Orientation::Horizontal
+
+
+
+ 40
+ 20
+
+
+
-
-
+
+
-
-
+
+
+
+
+
+ 0
+ 0
+ 551
+ 31
+
+
+
+ -
+
+
+
+
+
+
-
- Qt::Vertical
+ Qt::Orientation::Vertical
- QSizePolicy::Fixed
+ QSizePolicy::Policy::Fixed
--
cgit v1.2.3