Hello, I'm using the Telemac python scripts to read and manipulate a results file. I would like to modify some wave directions and then save to a new output.slf, however I am having some difficulties. I use out.fole.update({ 'hook': open(outFile,'wb') }) to create my new file, then after creating the header, I try to add the results data using out.appendCoreVarsSLF(data) but I get the error
f.write(pack('>i',4*self.NPOIN3))
AttributeError: 'dict' object has no attribute 'write'
I am relatively new to python and so do not really understand this error. Could anyone offer some advice?
Thanks, Oliver