From 6f3ae5a64fd107808bb84c89aea5d73cfe935e3d Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Sun, 28 Jul 2024 23:22:21 -0700 Subject: [PATCH] explicitly re-export some names --- meanas/fdfd/__init__.py | 9 ++++++++- meanas/fdmath/__init__.py | 24 ++++++++++++++++++++---- meanas/fdtd/__init__.py | 24 +++++++++++++++++++----- 3 files changed, 47 insertions(+), 10 deletions(-) diff --git a/meanas/fdfd/__init__.py b/meanas/fdfd/__init__.py index 1829cf9..ba57fc4 100644 --- a/meanas/fdfd/__init__.py +++ b/meanas/fdfd/__init__.py @@ -91,5 +91,12 @@ $$ """ -from . import solvers, operators, functional, scpml, waveguide_2d, waveguide_3d +from . import ( + solvers as solvers, + operators as operators, + functional as functional, + scpml as scpml, + waveguide_2d as waveguide_2d, + waveguide_3d as waveguide_3d, + ) # from . import farfield, bloch TODO diff --git a/meanas/fdmath/__init__.py b/meanas/fdmath/__init__.py index 8a6b784..b1d8354 100644 --- a/meanas/fdmath/__init__.py +++ b/meanas/fdmath/__init__.py @@ -741,8 +741,24 @@ the true values can be multiplied back in after the simulation is complete if no normalized results are needed. """ -from .types import fdfield_t, vfdfield_t, cfdfield_t, vcfdfield_t, dx_lists_t, dx_lists_mut -from .types import fdfield_updater_t, cfdfield_updater_t -from .vectorization import vec, unvec -from . import operators, functional, types, vectorization +from .types import ( + fdfield_t as fdfield_t, + vfdfield_t as vfdfield_t, + cfdfield_t as cfdfield_t, + vcfdfield_t as vcfdfield_t, + dx_lists_t as dx_lists_t, + dx_lists_mut as dx_lists_mut, + fdfield_updater_t as fdfield_updater_t, + cfdfield_updater_t as cfdfield_updater_t, + ) +from .vectorization import ( + vec as vec, + unvec as unvec, + ) +from . import ( + operators as operators, + functional as functional, + types as types, + vectorization as vectorization, + ) diff --git a/meanas/fdtd/__init__.py b/meanas/fdtd/__init__.py index 171c4f4..33b1995 100644 --- a/meanas/fdtd/__init__.py +++ b/meanas/fdtd/__init__.py @@ -159,8 +159,22 @@ Boundary conditions # TODO notes about boundaries / PMLs """ -from .base import maxwell_e, maxwell_h -from .pml import cpml_params, updates_with_cpml -from .energy import (poynting, poynting_divergence, energy_hstep, energy_estep, - delta_energy_h2e, delta_energy_j) -from .boundaries import conducting_boundary +from .base import ( + maxwell_e as maxwell_e, + maxwell_h as maxwell_h, + ) +from .pml import ( + cpml_params as cpml_params, + updates_with_cpml as updates_with_cpml, + ) +from .energy import ( + poynting as poynting, + poynting_divergence as poynting_divergence, + energy_hstep as energy_hstep, + energy_estep as energy_estep, + delta_energy_h2e as delta_energy_h2e, + delta_energy_j as delta_energy_j, + ) +from .boundaries import ( + conducting_boundary as conducting_boundary, + )