|
22 | 22 | from .structure import Structure |
23 | 23 | from .source import SourceType, PlaneWave, GaussianBeam, AstigmaticGaussianBeam |
24 | 24 | from .monitor import MonitorType, Monitor, FreqMonitor |
25 | | -from .monitor import AbstractFieldMonitor, AbstractNear2FarMonitor |
| 25 | +from .monitor import AbstractFieldMonitor |
26 | 26 | from .viz import add_ax_if_none, equal_aspect |
27 | 27 |
|
28 | 28 | from .viz import MEDIUM_CMAP, PlotParams, plot_params_symmetry |
@@ -437,21 +437,6 @@ def _warn_monitor_simulation_frequency_range(cls, val, values): |
437 | 437 | ) |
438 | 438 | return val |
439 | 439 |
|
440 | | - @pydantic.validator("monitors", always=True) |
441 | | - def n2f_monitors_with_symmetry(cls, val, values): |
442 | | - """Error if a server-side near-to-far monitor is used with symmetry""" |
443 | | - monitors = val |
444 | | - symmetry = values.get("symmetry") |
445 | | - if not any(symmetry): |
446 | | - return val |
447 | | - for monitor in monitors: |
448 | | - if isinstance(monitor, AbstractNear2FarMonitor): |
449 | | - raise SetupError( |
450 | | - "Server-side near-to-far calculation is not available with symmetry. " |
451 | | - "Use the local near-to-far available through the 'RadiationVectors' class." |
452 | | - ) |
453 | | - return val |
454 | | - |
455 | 440 | @pydantic.validator("grid_spec", always=True) |
456 | 441 | def _warn_grid_size_too_small(cls, val, values): # pylint:disable=too-many-locals |
457 | 442 | """Warn user if any grid size is too large compared to minimum wavelength in material.""" |
|
0 commit comments