<commit_before>import numpy as np

from siliconproperties.python_files.getMobility import get_mobility
from siliconproperties.python_files.getTrapping import get_trapping


def get_free_path(fluence, e_field, temperature, is_electron=True):

    # Calculate the mean free path in cm of the charge carriers from the trapping
    # propability and the velocity. The trapping propability is a
    # function of the fluence and the velocity is a function
    # of the electric field and the temperature. The electric field itself
    # depends on the electrode geometry and the bias voltage.

    velocity = get_mobility(e_field, temperature, is_electron) * e_field
    trapping_time, trapping_time_error = get_trapping(fluence, is_electron, paper=1)

    return velocity * trapping_time * 10e-9, velocity * trapping_time_error * 10e-9

if __name__ == '__main__':
    import matplotlib.pylab as plt<commit_msg>REG: no error calculation available anymore<commit_after>import numpy as np

from siliconproperties.python_files.getMobility import get_mobility
from siliconproperties.python_files.getTrapping import get_trapping


def get_free_path(fluence, e_field, temperature, is_electron=True):

    # Calculate the mean free path in cm of the charge carriers from the trapping
    # propability and the velocity. The trapping propability is a
    # function of the fluence and the velocity is a function
    # of the electric field and the temperature. The electric field itself
    # depends on the electrode geometry and the bias voltage.
    velocity = get_mobility(e_field, temperature, is_electron) * e_field
    trapping_time = get_trapping(fluence, is_electron, paper=1)

    return velocity * trapping_time * 10e-9

if __name__ == '__main__':
    import matplotlib.pylab as plt
{'fraction_non_alphanumeric': 0.051685393258426963, 'fraction_numerical': 0.006179775280898876, 'mean_word_length': 4.636075949367089, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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}}
{'dir': 'git-commits-cleaned', 'id': '4255043', 'n_tokens_mistral': 519, 'n_tokens_neox': 481, 'n_words': 188}