Script to try out different weightings for computing pw