EPW / Weather data adjustment

Hi,
I’m trying to use this code to replace the dry-bulb temperature of the epw file with my own data. However, I get this error : ‘HourlyContinuousCollection’ object has no attribute ‘update_data_for_analysis_period’. I really appreciate your help if you can help me with this issue