Saving the modified EPW as a new file

Hi,

I am trying to replace the weather in an EPW file with my own data. I can apply my modifications, however, I was wondering how can I save the modified epw file as a new file in python using ladybug.

Thank you

when I try to use the following code:

save(self, folder=None, file_name=None)```

It doesn't work. it says the 'EPW' object has no attribute 'folder'

Hey @AminHosseini ,

You shouldn’t be plugging self as an argument into that function. I would recommend doing a small crash course in Python classes or object oriented programming as this would cover why you are not supposed to pass self.

1 Like