Skip to content

Commit

Permalink
merge changes from master (#1)
Browse files Browse the repository at this point in the history
* Update 00-quick-start.ipynb

Should be a typo here for the grid-spacing

* Bump version: 0.2.6 → 0.2.7

* fix setting of conductivity in objects.py (flaport#55)

* Bump version: 0.2.7 → 0.2.8

---------

Co-authored-by: Floris Laporte <[email protected]>
Co-authored-by: TTstone <[email protected]>
  • Loading branch information
3 people authored May 9, 2023
1 parent ec20823 commit 8e829a4
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.2.6
current_version = 0.2.8
commit = True
tag = True
tag_name = {new_version}
Expand Down
2 changes: 1 addition & 1 deletion examples/00-quick-start.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
"\n",
"A grid is defined by its `shape`, which is just a 3D tuple of `Number`-types (integers or floats). If the shape is given in floats, it denotes the width, height and length of the grid in meters. If the shape is given in integers, it denotes the width, height and length of the grid in terms of the `grid_spacing`. Internally, these numbers will be translated to three integers: `grid.Nx`, `grid.Ny` and `grid.Nz`.\n",
"\n",
"A `grid_spacing` can be given. For stability reasons, it is recommended to choose a grid spacing that is at least 10 times smaller than the *smallest* wavelength in the grid. This means that for a grid containing a source with wavelength `1550nm` and a material with refractive index of `3.1`, the recommended minimum `grid_spacing` turns out to be `50pm`\n",
"A `grid_spacing` can be given. For stability reasons, it is recommended to choose a grid spacing that is at least 10 times smaller than the *smallest* wavelength in the grid. This means that for a grid containing a source with wavelength `1550nm` and a material with refractive index of `3.1`, the recommended minimum `grid_spacing` turns out to be `50nm`\n",
"\n",
"For the `permittivity` and `permeability` floats or arrays with the following shapes\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion fdtd/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
""" Python 3D FDTD Simulator """

__author__ = "Floris laporte"
__version__ = "0.2.6"
__version__ = "0.2.8"

from .grid import Grid
from .sources import PointSource, LineSource, PlaneSource
Expand Down
2 changes: 1 addition & 1 deletion fdtd/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def __init__(
name: name of the object (will become available as attribute to the grid)
"""
super().__init__(permittivity, name)
self.conductivity = conductivity
self.conductivity = bd.array(conductivity)

def _register_grid(
self, grid: Grid, x: slice = None, y: slice = None, z: slice = None
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = fdtd
version = 0.2.6
version = 0.2.8
description = a 3D electromagnetic FDTD simulator written in Python
author = Floris Laporte
author_email = [email protected]
Expand Down

0 comments on commit 8e829a4

Please sign in to comment.