# -*- coding: utf-8 -*-
-# Copyright (C) 2016-2022 CEA/DEN, EDF R&D
+# Copyright (C) 2016-2023 CEA, EDF
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
def initAttributes(self):
"""Override Feature.initAttributes()"""
# Creating the input argument of the feature
- self.data().addAttribute(self.FILE_ID(), ModelAPI.ModelAPI_AttributeString_typeId())
- #self.data().addAttribute(self.HEXAS_ID(), ModelAPI.ModelAPI_AttributeBoolean_typeId())
+ self.data().addAttribute(self.FILE_ID(), ModelAPI.ModelAPI_AttributeString.typeId())
+ #self.data().addAttribute(self.HEXAS_ID(), ModelAPI.ModelAPI_AttributeBoolean.typeId())
#====================================================================================
# Retrieve parent pipe
while True:
# B.1. Lecture du fichier
- with open(filepath) as afile:
+ with open(filepath, encoding='utf-8') as afile:
summary = 0
method = self.parligne
for line in afile: