Пример #1
0
 def __fix_dict(incar_dict):
     """
     読み込んだincar_dictをintやfloat形式に修正
     """
     for key, value in incar_dict.items():
         if len(value) > 1:
             fixed_val = [Cabinet.conv_str(x) for x in value]
         else:
             fixed_val = Cabinet.conv_str(value[0])
         if fixed_val == '.TRUE.':
             fixed_val = True
         elif fixed_val == '.FALSE.':
             fixed_val = False
         incar_dict.update({key: fixed_val})