diff --git a/docs/notebooks/11_sparameters_gratings.py b/docs/notebooks/11_sparameters_gratings.py index d0808043..fe5f4beb 100644 --- a/docs/notebooks/11_sparameters_gratings.py +++ b/docs/notebooks/11_sparameters_gratings.py @@ -68,25 +68,29 @@ def log(x): fiber_xoffset=fiber_xoffset, dirpath=PATH.sparameters, filepath=PATH.sparameters - / f"{c.name}_{fiber_angle_deg:.1f}deg_{fiber_xoffset:.1f}um.npz", + / f"gc_{fiber_angle_deg:.1f}deg_{fiber_xoffset:.1f}um.npz", ) for fiber_xoffset in offsets ] sps = gt.write_sparameters_grating_coupler_batch(jobs) # %% -for offset in offsets: +sps[0].result() + +# %% +for fiber_xoffset in offsets: sp = gt.write_sparameters_grating_coupler( c, is_3d=False, fiber_angle_deg=fiber_angle_deg, - fiber_xoffset=offset, - filepath=PATH.sparameters / f"gc_{offset}.npz", + fiber_xoffset=fiber_xoffset, + filepath=PATH.sparameters + / f"gc_{fiber_angle_deg:.1f}deg_{fiber_xoffset:.1f}um.npz", ) plt.plot( sp["wavelengths"], 20 * np.log10(np.abs(sp["o2@0,o1@0"])), - label=str(offset), + label=str(fiber_xoffset), ) plt.xlabel("wavelength (um") diff --git a/sparameters/gc_-31.0deg_-5.0um.npz b/sparameters/gc_-31.0deg_-5.0um.npz new file mode 100644 index 00000000..0f4757e6 Binary files /dev/null and b/sparameters/gc_-31.0deg_-5.0um.npz differ diff --git a/sparameters/gc_-31.0deg_-5.0um.yml b/sparameters/gc_-31.0deg_-5.0um.yml new file mode 100644 index 00000000..a8f67f88 --- /dev/null +++ b/sparameters/gc_-31.0deg_-5.0um.yml @@ -0,0 +1,5 @@ +compute_time_minutes: 1.767 +compute_time_seconds: 106.031 +fiber_angle_deg: -31 +fiber_xoffset: -5 +is_3d: false diff --git a/sparameters/gc_-31.0deg_0.0um.npz b/sparameters/gc_-31.0deg_0.0um.npz new file mode 100644 index 00000000..855bb600 Binary files /dev/null and b/sparameters/gc_-31.0deg_0.0um.npz differ diff --git a/sparameters/gc_-31.0deg_0.0um.yml b/sparameters/gc_-31.0deg_0.0um.yml new file mode 100644 index 00000000..231b94be --- /dev/null +++ b/sparameters/gc_-31.0deg_0.0um.yml @@ -0,0 +1,5 @@ +compute_time_minutes: 0.013 +compute_time_seconds: 0.788 +fiber_angle_deg: -31 +fiber_xoffset: 0 +is_3d: false diff --git a/sparameters/gc_-31.0deg_5.0um.npz b/sparameters/gc_-31.0deg_5.0um.npz new file mode 100644 index 00000000..ea1b85c0 Binary files /dev/null and b/sparameters/gc_-31.0deg_5.0um.npz differ diff --git a/sparameters/gc_-31.0deg_5.0um.yml b/sparameters/gc_-31.0deg_5.0um.yml new file mode 100644 index 00000000..31494144 --- /dev/null +++ b/sparameters/gc_-31.0deg_5.0um.yml @@ -0,0 +1,5 @@ +compute_time_minutes: 1.78 +compute_time_seconds: 106.797 +fiber_angle_deg: -31 +fiber_xoffset: 5 +is_3d: false diff --git a/sparameters/gc_te1550.npz b/sparameters/gc_te1550.npz new file mode 100644 index 00000000..855bb600 Binary files /dev/null and b/sparameters/gc_te1550.npz differ diff --git a/sparameters/gc_te1550.yml b/sparameters/gc_te1550.yml new file mode 100644 index 00000000..1d802836 --- /dev/null +++ b/sparameters/gc_te1550.yml @@ -0,0 +1,5 @@ +compute_time_minutes: 1.655 +compute_time_seconds: 99.291 +fiber_angle_deg: -31 +fiber_xoffset: 0 +is_3d: false