GUI Utilities¶
B-ASIC GUI utilities.
This module contains GUI classes that have a general use and are not strictly related to either the Block Diagram GUI or Scheduler GUI.
gui_utils.decorators module¶
B-ASIC GUI Decorators Module.
- b_asic.gui_utils.decorators.decorate_class(decorator)¶
- b_asic.gui_utils.decorators.handle_error(fn)¶
gui_utils.about_window module¶
B-ASIC GUI About Window Module.
Contains a GUI class for the about window.
- class b_asic.gui_utils.about_window.AboutWindow(window)¶
About window.
gui_utils.plot_window module¶
PlotWindow is a window in which simulation results are plotted.
- class b_asic.gui_utils.plot_window.PlotWindow(sim_result: Mapping[ResultKey, Sequence[int | float | complex | DTypeLike | APyFixed | APyCFixed | APyFloat | APyCFloat]], sfg_name: str | None = None)¶
Dialog for plotting the result of a simulation.
Time, frequency magnitude, and frequency phase can be selected independently and are stacked vertically. Frequency plots use
scipy.signal.freqz()with each selected signal as the numerator coefficients. Complex time-domain views share the frequency response of their underlying complex signal. Parallel simulation streams can be interleaved into additional signals.- Parameters:
- sim_resultdict
Simulation results of the form obtained from
results.- sfg_namestr, optional
The name of the SFG.