Révision eef995b8 modules/dos_input.py

b/modules/dos_input.py
593 593

  
594 594
def get_coll_thrsld():
595 595
    err_msg = num_error % ('collision_threshold',
596
                           'positive decimal number')
596
                           'positive number')
597
    coll_thrsld_str = dos_inp.get('Screening', 'collision_threshold',
598
                                  fallback="1.3")
599
    if coll_thrsld_str.lower() in turn_false_answers:
600
        return False
601
    coll_thrsld = try_command(float, [(ValueError, err_msg)], coll_thrsld_str)
597 602

  
598
    coll_thrsld = try_command(dos_inp.getfloat,
599
                              [(ValueError, err_msg)],
600
                              'Screening', 'collision_threshold', fallback=1.2)
601 603
    if coll_thrsld <= 0:
602 604
        logger.error(err_msg)
603 605
        raise ValueError(err_msg)

Formats disponibles : Unified diff