diff --git a/pym/cl_profile.py b/pym/cl_profile.py index c26da2d..41879f8 100644 --- a/pym/cl_profile.py +++ b/pym/cl_profile.py @@ -1900,7 +1900,8 @@ class profile(_file, _terms): self.nameFileNew = self.absFileName(newFile) self.FN = self.openNewFile(self.nameFileNew) self.newProfile = self.FN.read() - self.closeNewFile() + self.FN.close() + self.FN = False objHeadNew = calcHeader(self.newProfile, False, self.getFileType(),objVar=self.objVar) if not objHeadNew.headerTerm: