Skip to content
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

WI ensuring runnable code #50

Merged
merged 17 commits into from
Feb 24, 2022
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions nidn/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
from loguru import logger

# Add exposed features here
from .fdtd_int.init_fdtd import init_fdtd
from .fdtd_int.FDTD_compute_spectrum import FDTD_compute_spectrum
from .materials.layer_builder import LayerBuilder
from .materials.material_collection import MaterialCollection
from .plots.plot_epsilon_grid import plot_epsilon_grid
Expand All @@ -22,7 +20,7 @@
from .training.save_run import save_run
from .trcwa.compute_target_frequencies import compute_target_frequencies
from .trcwa.get_frequency_points import get_frequency_points
from .trcwa.compute_spectrum import compute_spectrum
from .utils.compute_spectrum import compute_spectrum
from .utils.convert_units import freq_to_wl, wl_to_phys_wl, phys_freq_to_phys_wl
from .utils.fix_random_seeds import fix_random_seeds
from .utils.load_default_cfg import load_default_cfg
Expand All @@ -47,7 +45,6 @@
"get_frequency_points",
"fix_random_seeds",
"freq_to_wl",
"init_fdtd",
"LayerBuilder",
"load_default_cfg",
"load_run",
Expand Down
14 changes: 14 additions & 0 deletions nidn/fdtd/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
""" Python 3D FDTD Simulator """

__author__ = "Floris laporte"
__version__ = "0.2.4"

from .grid import Grid
from .sources import PointSource, LineSource, PlaneSource
from .detectors import LineDetector, BlockDetector, CurrentDetector
from .objects import Object, AbsorbingObject, AnisotropicObject
from .boundaries import PeriodicBoundary, PML
from .backend import backend
from .backend import set_backend
from .fourier import FrequencyRoutines
from .visualization import dB_map_2D, plot_detection
Loading