-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into release/0.9
- Loading branch information
Showing
79 changed files
with
618 additions
and
885 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
Visualization | ||
============= | ||
This section lists modules for creating and editing data outside AEDT. | ||
|
||
Plot fields and data outside AEDT | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
PyAEDT supports external report capabilities available with installed third-party | ||
packages like `numpy <https://numpy.org/doc/stable/>`_, | ||
`pandas <https://pandas.pydata.org/>`_, `matplotlib <https://matplotlib.org/>`_, | ||
and `pyvista <https://docs.pyvista.org/>`_. | ||
|
||
|
||
.. currentmodule:: pyaedt.modules | ||
|
||
.. autosummary:: | ||
:toctree: _autosummary | ||
:nosignatures: | ||
|
||
solutions.SolutionData | ||
solutions.FieldPlot | ||
solutions.FfdSolutionData | ||
|
||
|
||
ModelPlotter is a class that benefits of `pyvista <https://docs.pyvista.org/>`_ package and allows to generate | ||
models and 3D plots. | ||
|
||
|
||
.. currentmodule:: pyaedt.generic.plot | ||
|
||
.. autosummary:: | ||
:toctree: _autosummary | ||
:nosignatures: | ||
|
||
ModelPlotter | ||
|
||
|
||
The following methods allows to read and check touchstone files. | ||
|
||
.. currentmodule:: pyaedt.generic.touchstone_parser | ||
|
||
.. autosummary:: | ||
:toctree: _autosummary | ||
:nosignatures: | ||
|
||
read_touchstone | ||
check_touchstone_files | ||
|
||
|
||
|
||
Using the above methods you are getting an object of a class TouchstoneData. | ||
The class TouchstoneData is based on `scikit-rf <https://scikit-rf.readthedocs.io/en/latest/>`_, | ||
Additional methods are added to provide easy access to touchstone curves. | ||
|
||
|
||
.. currentmodule:: pyaedt.generic.touchstone_parser | ||
|
||
.. autosummary:: | ||
:toctree: _autosummary | ||
:nosignatures: | ||
|
||
TouchstoneData.get_insertion_loss_index | ||
TouchstoneData.plot_insertion_losses | ||
TouchstoneData.plot | ||
TouchstoneData.plot_return_losses | ||
TouchstoneData.get_mixed_mode_touchstone_data | ||
TouchstoneData.get_return_loss_index | ||
TouchstoneData.get_insertion_loss_index_from_prefix | ||
TouchstoneData.get_next_xtalk_index | ||
TouchstoneData.get_fext_xtalk_index_from_prefix | ||
TouchstoneData.plot_next_xtalk_losses | ||
TouchstoneData.plot_fext_xtalk_losses | ||
TouchstoneData.get_worst_curve | ||
|
||
|
||
|
||
Here an example on how to use TouchstoneData class. | ||
|
||
.. code:: python | ||
from pyaedt.generic.touchstone_parser import TouchstoneData | ||
ts1 = TouchstoneData(touchstone_file=os.path.join(test_T44_dir, "port_order_1234.s8p")) | ||
assert ts1.get_mixed_mode_touchstone_data() | ||
ts2 = TouchstoneData(touchstone_file=os.path.join(test_T44_dir, "port_order_1324.s8p")) | ||
assert ts2.get_mixed_mode_touchstone_data(port_ordering="1324") | ||
assert ts1.plot_insertion_losses(plot=False) | ||
assert ts1.get_worst_curve(curve_list=ts1.get_return_loss_index(), plot=False) | ||
... | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 3 additions & 14 deletions
17
...r_guide/pyaedt_extensions_doc/project.rst → ...ide/pyaedt_extensions_doc/commandline.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.