Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
paulxshen committed Jan 24, 2025
1 parent dedc255 commit d215128
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build/build.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ create_app(".", "../Luminescent",
precompile_execution_file="build/precompile_app.jl",
force=true,
# incremental=true,
include_lazy_artifacts=true,
# include_lazy_artifacts=true,
# include_transitive_dependencies=false
)

1 change: 1 addition & 0 deletions build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ cd Luminescent.jl
julia "build/build.jl"
# ../Luminescent/bin/Luminescent
# export PATH=~/LuminescentAI/bin:$PATH
# export PATH=Luminescent/bin:$PATH
tar czf Luminescent.tar.gz Luminescent
# split -b 1500M Luminescent.tar.gz "Luminescent.tar.gz.part"
13 changes: 10 additions & 3 deletions luminescent/test.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
import itertools
import os
import luminescent as lumi
import gdsfactory as gf

# dir = "runs"
dir = os.path.join("build", "precompile_execution")
for name in ["tiny", "tinycu", ]:
path = os.path.join(dir, name)
lumi.solve(path)

c = gf.components.straight(length=.1, width=0.5,)
wavelengths = 1.5

path = "a"
approx_2D_mode = "TE"
lumi.make_pic_sim_prob(path, c, wavelengths=wavelengths, keys=[
"2,1"], nres=15, approx_2D_mode=approx_2D_mode, gpu="CUDA")
lumi.solve(path)

0 comments on commit d215128

Please sign in to comment.