Skip to content

Commit

Permalink
Version 0.5.9
Browse files Browse the repository at this point in the history
* New pixelated region class: CirclePixelsRegionwithGroup.
  • Loading branch information
Hideousmon committed Sep 4, 2024
1 parent 6c77814 commit e66dc56
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion history.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,5 +233,5 @@
### Version 0.5.6 (Aug 25, 2024)
* Defining material with float refractive index enabled for FDTDSimulation.add_structure_from_gdsii().

### Version 0.5.8 (Sep 4, 2024)
### Version 0.5.9 (Sep 4, 2024)
* New pixelated region class: CirclePixelsRegionwithGroup.
2 changes: 1 addition & 1 deletion splayout/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.5.8"
__version__ = "0.5.9"

## Submodules
from . import utils
Expand Down
7 changes: 4 additions & 3 deletions splayout/components/pixelsregion.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,9 +330,10 @@ def update(self, matrix):
self.__initialize()
else:
self.__lastest_array = np.array(masked_matrix,dtype=np.double)
self.__last_array = np.array(masked_matrix,dtype=np.double)
self.fdtd_engine.fdtd.putv("radius_matrix", self.__lastest_array)
self.fdtd_engine.eval("setnamed(\"::model::"+self.group_name+"\",\"radius_matrix\",radius_matrix);")
if not (self.__lastest_array == self.__last_array).all():
self.__last_array = np.array(masked_matrix,dtype=np.double)
self.fdtd_engine.fdtd.putv("radius_matrix", self.__lastest_array)
self.fdtd_engine.eval("setnamed(\"::model::"+self.group_name+"\",\"radius_matrix\",radius_matrix);")

def draw_layout(self, matrix, cell, layer):
'''
Expand Down

0 comments on commit e66dc56

Please sign in to comment.