<jupyter_start><jupyter_text>DBRIn this notebook we model a single DBR cell<jupyter_code>import matplotlib.pyplot as plt
from pylum.dbr import dbr<jupyter_output><empty_output><jupyter_text>The best way to debug is to just draw `run=False`<jupyter_code>d = dbr(wg_height=220e-9, w1=450e-9, w2=550e-9, n_sweep=8, material_wg='si', run=True, cache=False)
plt.plot(d['w']*1e9, d['kappa'], 'o')
plt.xlabel('$\Delta width$ (nm)')
plt.ylabel('$\kappa$')
plt.plot(d['w']*1e9, d['bandwidth']*1e9, 'o')
plt.xlabel('$\Delta width$ (nm)')
plt.ylabel('bandwidth (nm)')<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.19112627986348124, 'fraction_numerical': 0.03583617747440273, 'mean_word_length': 8.46774193548387, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '516666', 'license': 'MIT', 'n_tokens_mistral': 273, 'n_tokens_neox': 257, 'n_words': 47, 'path': 'notebooks/2_dbr.ipynb', 'repo_name': 'joamatab/SiliconPhotonicsDesign', 'size': '586'}