CoolFace
Apppublic

Aluode/PerceptionLabPortable

sourceHugging Faceupdated 9mo agoView on Hugging Face
0likes
Flowchart.cpython-310.pyc26 linesDownload Raw Back to __pycache__
1o

2�YiN�@s�dZddlZddlZddlmZddlmZe�	d�Z3e��Ze�
d�e��Ze�e�e��Ze�e�eddidd	id4�d�Ze��Ze�e��dddd
�e��Ze��Ze�edd
�e�ed
d
�e��ejjdd�Zedd�d
7<ee�e� ddd��7Zej!ed�eed�Z"ej#ddd�Z$e$�%e"�e$�&e�ej#ddd�Z'e'�%e"�e'�&e�ej#ddd�Z(e(j)d�*d�e�+ede(d�e�+ede$d�e�+e(de'd�e�+e(ded �e,d!kr�e�-�dSdS)"a�5This example demonstrates a very basic use of flowcharts: filter data,6displaying both the input and output of the filter. The behavior of7the filter can be reprogrammed by the user.8 9Basic steps are:10  - create a flowchart and two plots11  - input noisy data to the flowchart12  - flowchart connects data to the first plot, where it is displayed13  - add a gaussian filter to lowpass the data, then display it in the second plot.14�N)�	Flowchart)�	QtWidgetszFlowchart Examplezpyqtgraph example: Flowchart�io�in�out)�dataIn�dataOut)Z	terminals��i�)�size��i,�d)r)zTop PlotzBottom Plot�15PlotWidget)r�j���)�pos)�rZGaussianFilter)rr�sigma�r�InZOutr�__main__).�__doc__�numpy�npZ	pyqtgraphZpgZpyqtgraph.flowchartrZpyqtgraph.QtrZmkQAppZappZQMainWindow�winZsetWindowTitleZQWidgetZcwZsetCentralWidgetZQGridLayoutZlayoutZ	setLayout�fcZwidget�wZ	addWidgetrZpw1Zpw2�show�random�normal�data�sinZlinspaceZsetInputZplotListZ16createNodeZpw1NodeZsetPlotListZsetPlotZpw2NodeZfNodeZctrlsZsetValueZconnectTerminals�__name__�exec�r#r#��E:\DocsHouse\542 percep lab latest\PerceptionLab\PerceptionLab_Portable\python_embed\Lib\site-packages\pyqtgraph/examples/Flowchart.py�<module>sV1718192021�2223242526�
Aluode/PerceptionLabPortable · CoolFace