<jupyter_start><jupyter_text>load parameters as dataframe<jupyter_code>databank_winkler = parameters.DataBank('winkler')
databank_winkler.to_dataframe()
databank_lawaetz = parameters.DataBank('lawaetz')
databank_lawaetz.to_dataframe()<jupyter_output><empty_output><jupyter_text>effective parameters<jupyter_code>print(databank_lawaetz)
list(databank_lawaetz)
databank_lawaetz['InAs']<jupyter_output><empty_output><jupyter_text>ZincBlende parameters  original parametres show spurious solutions<jupyter_code>p = parameters.ZincBlendeParameters(
    name='InAs',
    bands=('gamma_6c', 'gamma_8v', 'gamma_7v'),
    parameters=databank_lawaetz['InAs'],
    valence_band_offset=0.1,
)

# casting to dict to enforce default notebook rendering
# and print values in same order as in parameters.ipynb
{k: p[k] for k in sorted(p)}<jupyter_output><empty_output><jupyter_text>that can be avoid by renormalizing $P$ in a way that $\gamma_0=1$<jupyter_code>p = parameters.ZincBlendeParameters(
    name='InAs',
    bands=('gamma_6c', 'gamma_8v', 'gamma_7v'),
    parameters=databank_lawaetz['InAs']
)

p = p.renormalize(new_gamma_0=1)

# casting to dict to enforce default notebook rendering
# and print values in same order as in parameters.ipynb
{k: p[k] for k in sorted(p)}<jupyter_output><empty_output><jupyter_text>or one can set $P$ to desire value<jupyter_code>p = parameters.ZincBlendeParameters(
    name='InAs',
    bands=('gamma_6c', 'gamma_8v', 'gamma_7v'),
    parameters=databank_lawaetz['InAs']
)

p = p.renormalize(new_P=0.89866827769558988)

# casting to dict to enforce default notebook rendering
# and print values in same order as in parameters.ipynb
{k: p[k] for k in sorted(p)}<jupyter_output><empty_output><jupyter_text>2DEG parameters<jupyter_code>raise NotImplementedError("Need to write it...")<jupyter_output><empty_output><jupyter_text>Provide parameters by hand<jupyter_code>p1 = parameters.ZincBlendeParameters(
    name='InAs',
    bands=('gamma_6c', 'gamma_8v', 'gamma_7v'),
    parameters=databank_lawaetz['InAs']
)


# We provide parameters from p1 and set flag
# informing that we already give bare_parameters

p2 = parameters.ZincBlendeParameters(
    name='InAs',
    bands=('gamma_6c', 'gamma_8v', 'gamma_7v'),
    parameters=p1.data, 
    already_bare=True,
)

p1 == p2<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1173688736027515, 'fraction_numerical': 0.019776440240756664, 'mean_word_length': 7.051903114186851, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, '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': '7', 'dir': 'jupyter-structured-clean-dedup', 'id': '375444', 'license': 'BSD-2-Clause', 'n_tokens_mistral': 875, 'n_tokens_neox': 845, 'n_words': 166, 'path': 'notebooks/parameters.ipynb', 'repo_name': 'quantum-tinkerer/semicon', 'size': '2326'}