allfed / pytradeshifts

Contains code and documentation for the pytradeshifts model
Apache License 2.0
0 stars 2 forks source link

fix grav model exponent bug #50

Closed lukaszgajewski closed 7 months ago

lukaszgajewski commented 7 months ago

There were two bugs in the jupyter notebook showing how to find the gravity model exponent value: 1) vr = np.cumsum(y)[::-1]; should be np.cumsum(y[::-1])[::-1] 2) best_a+1; should be best_a-1 This PR fixes this.