当前位置: 首页>>代码示例>>Python>>正文


Python Output.contact_resist_raw方法代码示例

本文整理汇总了Python中Output.Output.contact_resist_raw方法的典型用法代码示例。如果您正苦于以下问题:Python Output.contact_resist_raw方法的具体用法?Python Output.contact_resist_raw怎么用?Python Output.contact_resist_raw使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Output.Output的用法示例。


在下文中一共展示了Output.contact_resist_raw方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: run

# 需要导入模块: from Output import Output [as 别名]
# 或者: from Output.Output import contact_resist_raw [as 别名]
def run(path, film_thickness, logger):
    manager = MeasurementManager(path, Geometry(film_thickness))
       
    # Calculate the resist R from the U/I-Plot
    for meas in manager.get_all(): 
        x, y = meas.get_measured_values()
        slope, intercept, std_err = linear_fit(x, y)
        meas.resist = 1 / slope
    
    # Calculate the contact resists
    for temp in manager.temp_keys:
        manager.contact_resist_dict[temp] = get_contact_resist(
                                                manager.get_by_temp(temp))
    
    # Correct the resists with the contact resist and the geometry
    for meas in manager.get_all():
        temp_key = meas.temp_celcius
        meas.contact_resist = manager.contact_resist_dict[temp_key]
        meas.film_resist = get_film_resist(meas, manager.geometry)
        if meas.film_resist < 0:
            logger.warning("Negative film resist in {0}".format(meas.name))
    
    # Get activation energy and sigma_0 from an linearized Arrhenius plot
    for dist in manager.dist_keys:
        measurements = manager.get_by_dist(dist)
        film_resists = [meas.film_resist for meas in measurements]
        temps = array([meas.temp_kelvin for meas in measurements])
        actv_energy, sigma_0 = arrhenius_fit(temps, film_resists)
        manager.arrhenius_dict[dist] = (actv_energy, sigma_0)

    output = Output(path)
    output.summary(manager)
    output.show_summary()
    output.measurements_raw(manager)
    output.arrhenius_raw(manager)
    output.contact_resist_raw(manager)
    output.film_resist_raw(manager)
开发者ID:eljost,项目名称:jual,代码行数:39,代码来源:jual.py


注:本文中的Output.Output.contact_resist_raw方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。