Skip to content

Commit

Permalink
use micromamba
Browse files Browse the repository at this point in the history
  • Loading branch information
joamatab committed Oct 17, 2023
1 parent 253a460 commit a7b0863
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .github/install_meep.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
eval "$(micromamba shell hook --shell bash)"
micromamba create -p ./env
micromamba activate ./env/
micromamba install -c conda-forge pymeep=*=mpi_mpich_* nlopt -y
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

install:
pip install -e .[dev,docs,database,devsim,femwell,gmsh,meow,meshwell,ray,sax,schematic,tidy3d,web,vlsir]
pip install -e .[dev,docs,devsim,femwell,gmsh,meow,meshwell,ray,sax,schematic,tidy3d,web,vlsir]
pre-commit install

dev: test-data meep gmsh elmer install
Expand All @@ -9,7 +9,7 @@ gmsh:
sudo apt-get install -y python3-gmsh gmsh libglu1-mesa libxi-dev libxmu-dev libglu1-mesa-dev

meep:
micromamba install -c conda-forge pymeep=*=mpi_mpich_* nlopt -y
bash .github/install_meep.sh

elmer:
sudo apt-add-repository ppa:elmer-csc-ubuntu/elmer-csc-ppa
Expand Down
5 changes: 3 additions & 2 deletions gplugins/meow/meow_eme.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from gdsfactory.generic_tech import LAYER
from gdsfactory.pdk import get_active_pdk, get_layer_stack
from gdsfactory.technology import LayerStack
from gdsfactory.typings import PathType
from gdsfactory.typings import Component, PathType
from meow.base_model import _array as mw_array
from tqdm.auto import tqdm

Expand Down Expand Up @@ -149,6 +149,7 @@ def __init__(
z_min, x_min, z_max, x_max = component.bbox.ravel()
z_min, z_max = min(z_min, z_max) + 1e-10, max(z_min, z_max) - 1e-10
x_min, x_max = min(x_min, x_max) + 1e-10, max(x_min, x_max) - 1e-10
layer_stack = layer_stack.model_dump()
ys = list_unique_layer_stack_z(layer_stack)
y_min, y_max = np.min(ys) + 1e-10, np.max(ys) - 1e-10

Expand Down Expand Up @@ -240,7 +241,7 @@ def add_global_layers(
layer_stack,
buffer_y: float = 1,
global_layer_index: int = 10000,
):
) -> tuple[Component, LayerStack]:
"""Adds bbox polygons for global layers.
LAYER.WAFER layers are represented as polygons of size [bbox.x, xspan (meow coords)]
Expand Down

0 comments on commit a7b0863

Please sign in to comment.