Commit ad221c94 authored by Lucas Laplanche's avatar Lucas Laplanche
Browse files

sw correction

parent 12f32f6d
import numpy as np
from tqdm import tqdm
......@@ -40,6 +41,12 @@ def command_doping(thickness, na, nd):
def convert_dataframe_to_dev(df, name='super_lattice'):
# convert dataframe to numpy float32
df['thickness'].astype(np.float32)
df['al'].astype(np.float32)
df['na'].astype(np.float32)
df['nd'].astype(np.float32)
# create a new file
f = open(name +'.dev', 'w')
......@@ -87,14 +94,15 @@ def convert_dataframe_to_dev(df, name='super_lattice'):
def generate_super_lattice_file(air = True,
def generate_super_lattice_file(name='super_lattice',
air = False,
mqw = True,
top_dbr = True,
bot_dbr = True,
bypass_dbr = False,
shared_dbr = True,
bypass_dbr = True,
shared_dbr = False,
contact = True,
substrate = True,
substrate = False,
amount_qw = 25,
l_qw = 8.27e-9,
l_cb_low_al = 2.2e-9,
......@@ -137,4 +145,4 @@ def generate_super_lattice_file(air = True,
v_al12 = v_al12)
convert_dataframe_to_dev(df)
convert_dataframe_to_dev(df, name=name)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment