-
Notifications
You must be signed in to change notification settings - Fork 66
chore: rf namespace and consolidation (FXC-3912, FXC-3965) #3017
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,10 @@ | ||
| """Test that the rf namespace is correctly populated.""" | ||
|
|
||
| from __future__ import annotations | ||
|
|
||
| import tidy3d.rf | ||
|
|
||
|
|
||
| def test_rf_import(): | ||
| """Test that tidy3d.rf can be imported.""" | ||
| assert tidy3d.rf is not None |
This file contains hidden or 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 hidden or 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 hidden or 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,211 @@ | ||
| from __future__ import annotations | ||
|
|
||
| import warnings | ||
|
|
||
| # Boundary | ||
| from tidy3d.components.boundary import InternalAbsorber | ||
|
|
||
| # Directivity monitor | ||
| from tidy3d.components.data.monitor_data import DirectivityData | ||
|
|
||
| # Frequency extrapolation | ||
| from tidy3d.components.frequency_extrapolation import LowFrequencySmoothingSpec | ||
|
|
||
| # Grid spec | ||
| from tidy3d.components.grid.grid_spec import CornerFinderSpec, LayerRefinementSpec | ||
|
|
||
| # Lumped elements | ||
| from tidy3d.components.lumped_element import ( | ||
| AdmittanceNetwork, | ||
| CoaxialLumpedResistor, | ||
| LinearLumpedElement, | ||
| LumpedResistor, | ||
| RectangularLumpedElement, | ||
| RLCNetwork, | ||
| ) | ||
|
|
||
| # Material | ||
| from tidy3d.components.medium import ( | ||
| HammerstadSurfaceRoughness, | ||
| HuraySurfaceRoughness, | ||
| LossyMetalMedium, | ||
| SurfaceImpedanceFitterParam, | ||
| ) | ||
|
|
||
| # Microwave data | ||
| from tidy3d.components.microwave.data.monitor_data import ( | ||
| AntennaMetricsData, | ||
| MicrowaveModeData, | ||
| MicrowaveModeSolverData, | ||
| ) | ||
|
|
||
| # Impedance calculator | ||
| from tidy3d.components.microwave.impedance_calculator import ( | ||
| CurrentIntegralType, | ||
| ImpedanceCalculator, | ||
| VoltageIntegralType, | ||
| ) | ||
|
|
||
| # Microwave mode spec | ||
| from tidy3d.components.microwave.mode_spec import MicrowaveModeSpec | ||
|
|
||
| # Microwave monitors | ||
| from tidy3d.components.microwave.monitor import MicrowaveModeMonitor, MicrowaveModeSolverMonitor | ||
|
|
||
| # Path integrals (actual integrals, not specs) | ||
| from tidy3d.components.microwave.path_integrals.integrals.auto import ( | ||
| path_integrals_from_lumped_element, | ||
| ) | ||
| from tidy3d.components.microwave.path_integrals.integrals.base import ( | ||
| AxisAlignedPathIntegral, | ||
| Custom2DPathIntegral, | ||
| ) | ||
| from tidy3d.components.microwave.path_integrals.integrals.current import ( | ||
| AxisAlignedCurrentIntegral, | ||
| CompositeCurrentIntegral, | ||
| Custom2DCurrentIntegral, | ||
| ) | ||
| from tidy3d.components.microwave.path_integrals.integrals.voltage import ( | ||
| AxisAlignedVoltageIntegral, | ||
| Custom2DVoltageIntegral, | ||
| ) | ||
|
|
||
| # Path integral specs | ||
| from tidy3d.components.microwave.path_integrals.specs.current import ( | ||
| AxisAlignedCurrentIntegralSpec, | ||
| CompositeCurrentIntegralSpec, | ||
| Custom2DCurrentIntegralSpec, | ||
| ) | ||
| from tidy3d.components.microwave.path_integrals.specs.impedance import ( | ||
| AutoImpedanceSpec, | ||
| CustomImpedanceSpec, | ||
| ) | ||
| from tidy3d.components.microwave.path_integrals.specs.voltage import ( | ||
| AxisAlignedVoltageIntegralSpec, | ||
| Custom2DVoltageIntegralSpec, | ||
| ) | ||
| from tidy3d.components.monitor import DirectivityMonitor | ||
|
|
||
| # Source frame | ||
| from tidy3d.components.source.frame import PECFrame | ||
|
|
||
| # Subpixel spec | ||
| from tidy3d.components.subpixel_spec import SurfaceImpedance | ||
| from tidy3d.plugins.microwave import models | ||
| from tidy3d.plugins.microwave.array_factor import ( | ||
| BlackmanHarrisWindow, | ||
| BlackmanWindow, | ||
| ChebWindow, | ||
| HammingWindow, | ||
| HannWindow, | ||
| KaiserWindow, | ||
| RadialTaper, | ||
| RectangularAntennaArrayCalculator, | ||
| RectangularTaper, | ||
| TaylorWindow, | ||
| ) | ||
| from tidy3d.plugins.microwave.lobe_measurer import LobeMeasurer | ||
| from tidy3d.plugins.microwave.rf_material_library import rf_material_library | ||
| from tidy3d.plugins.smatrix.component_modelers.base import ( | ||
| AbstractComponentModeler, | ||
| ) | ||
| from tidy3d.plugins.smatrix.component_modelers.terminal import ( | ||
| DirectivityMonitorSpec, | ||
| ModelerLowFrequencySmoothingSpec, | ||
| TerminalComponentModeler, | ||
| ) | ||
| from tidy3d.plugins.smatrix.component_modelers.types import ComponentModelerType | ||
| from tidy3d.plugins.smatrix.data.data_array import ( | ||
| PortDataArray, | ||
| TerminalPortDataArray, | ||
| ) | ||
| from tidy3d.plugins.smatrix.data.terminal import ( | ||
| MicrowaveSMatrixData, | ||
| TerminalComponentModelerData, | ||
| ) | ||
| from tidy3d.plugins.smatrix.data.types import ComponentModelerDataType | ||
| from tidy3d.plugins.smatrix.ports.coaxial_lumped import CoaxialLumpedPort | ||
| from tidy3d.plugins.smatrix.ports.rectangular_lumped import LumpedPort | ||
| from tidy3d.plugins.smatrix.ports.wave import WavePort | ||
|
|
||
| # Backwards compatibility | ||
| CurrentIntegralTypes = CurrentIntegralType | ||
| VoltageIntegralTypes = VoltageIntegralType | ||
| # Instantiate on plugin import till we unite with toplevel | ||
| warnings.filterwarnings( | ||
| "once", | ||
| message="ℹ️ ⚠️ RF simulations are subject to new license requirements in the future. You have instantiated at least one RF-specific component.", | ||
| category=FutureWarning, | ||
| ) | ||
daquinteroflex marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
|
|
||
| __all__ = [ | ||
| "AbstractComponentModeler", | ||
| "AdmittanceNetwork", | ||
| "AntennaMetricsData", | ||
| "AutoImpedanceSpec", | ||
| "AxisAlignedCurrentIntegral", | ||
| "AxisAlignedCurrentIntegralSpec", | ||
| "AxisAlignedPathIntegral", | ||
| "AxisAlignedVoltageIntegral", | ||
| "AxisAlignedVoltageIntegralSpec", | ||
| "BlackmanHarrisWindow", | ||
| "BlackmanWindow", | ||
| "ChebWindow", | ||
| "CoaxialLumpedPort", | ||
| "CoaxialLumpedResistor", | ||
| "ComponentModelerDataType", | ||
| "ComponentModelerType", | ||
| "CompositeCurrentIntegral", | ||
| "CompositeCurrentIntegralSpec", | ||
| "CornerFinderSpec", | ||
| "CurrentIntegralTypes", | ||
| "Custom2DCurrentIntegral", | ||
| "Custom2DCurrentIntegralSpec", | ||
| "Custom2DPathIntegral", | ||
| "Custom2DVoltageIntegral", | ||
| "Custom2DVoltageIntegralSpec", | ||
| "CustomImpedanceSpec", | ||
| "DirectivityData", | ||
| "DirectivityMonitor", | ||
| "DirectivityMonitorSpec", | ||
| "HammerstadSurfaceRoughness", | ||
| "HammingWindow", | ||
| "HannWindow", | ||
| "HuraySurfaceRoughness", | ||
| "ImpedanceCalculator", | ||
| "InternalAbsorber", | ||
| "KaiserWindow", | ||
| "LayerRefinementSpec", | ||
| "LinearLumpedElement", | ||
| "LobeMeasurer", | ||
| "LossyMetalMedium", | ||
| "LowFrequencySmoothingSpec", | ||
| "LumpedPort", | ||
| "LumpedResistor", | ||
| "MicrowaveModeData", | ||
| "MicrowaveModeMonitor", | ||
| "MicrowaveModeSolverData", | ||
| "MicrowaveModeSolverMonitor", | ||
| "MicrowaveModeSpec", | ||
| "MicrowaveSMatrixData", | ||
| "ModelerLowFrequencySmoothingSpec", | ||
| "PECFrame", | ||
| "PortDataArray", | ||
| "RLCNetwork", | ||
| "RadialTaper", | ||
| "RectangularAntennaArrayCalculator", | ||
| "RectangularLumpedElement", | ||
| "RectangularTaper", | ||
| "SurfaceImpedance", | ||
| "SurfaceImpedanceFitterParam", | ||
| "TaylorWindow", | ||
| "TerminalComponentModeler", | ||
| "TerminalComponentModelerData", | ||
| "TerminalPortDataArray", | ||
| "VoltageIntegralTypes", | ||
| "WavePort", | ||
| "models", | ||
| "path_integrals_from_lumped_element", | ||
| "rf_material_library", | ||
| ] | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.