Skip to content

Commit

Permalink
Fix some formatting issues
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Münker <mail@chipmuenk.de>
  • Loading branch information
chipmuenk committed Sep 19, 2023
1 parent 45861e1 commit 9899aa0
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 12 deletions.
6 changes: 3 additions & 3 deletions docs/source/development/dev_general.rst
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ Data can be transmitted via the global ``sig_tx`` signal (referenced by the impo

.. code::
dict_sig = {'fx_sim':'update_data', 'fx_results':some_new_data}
self.emit(dict_sig)
dict_sig = {'fx_sim':'update_data', 'fx_results':some_new_data}
self.emit(dict_sig)
The following dictionary keys are generally used, individual ones can be created
as needed.
Expand Down Expand Up @@ -122,7 +122,7 @@ as needed.
:'ui_local_changed': Propagate a change of the UI to the containing widget but not
to other widgets, examples are:
- ``'ui_local_changed': self.sender().objectName()'`` to propagate the name of
the emitting subwidget
the emitting subwidget

:'ui_global_changed': Propagate a change of the UI to other widgets, examples are:

Expand Down
2 changes: 1 addition & 1 deletion docs/source/manual/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ that can be resized with the handles (red dots):

.. toctree::
:maxdepth: 1
:caption: Subwwindow for Input Widgets
:caption: Subwindow for Input Widgets

input_specs
input_coeffs
Expand Down
17 changes: 9 additions & 8 deletions pyfda/libs/pyfda_io_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,11 +533,10 @@ def csv2array(f: TextIO):
Parameters
----------
f: handle to file or file-like object
e.g.
f: handle to file or file-like object, e.g.
>>> f = open(file_name, 'r') # or
>>> f = io.StringIO(text)
>>> f = open(file_name, 'r') # or
>>> f = io.StringIO(text)
Returns
-------
Expand Down Expand Up @@ -570,10 +569,12 @@ def csv2array(f: TextIO):
Example: convert from Windows-style line endings to Linux:
fileContents = open(filename,"r").read()
f = open(filename,"w", newline="\n")
f.write(fileContents)
f.close()
.. code-block:: python
fileContents = open(filename,"r").read()
f = open(filename,"w", newline="\n")
f.write(fileContents)
f.close()
https://pythonconquerstheuniverse.wordpress.com/2011/05/08/newline-conversion-in-python-3/
"""
Expand Down
2 changes: 2 additions & 0 deletions pyfda/libs/pyfda_qt_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ def emit(self, dict_sig: dict = {}, sig_name: str = 'sig_tx') -> None:
signal. Otherwise, reduce the value by one.
- If the sender has passed an objectName, add it with the key "sender_name"
to the dict.
"""

if 'id' not in dict_sig:
dict_sig.update({'id': id(self)})
if 'class' not in dict_sig:
Expand Down

0 comments on commit 9899aa0

Please sign in to comment.