SeBecker / dc-egm

1 stars 1 forks source link

Make code more pythonic #5

Open boryana-ilieva opened 4 years ago

boryana-ilieva commented 4 years ago

After ensuring that our Python implementation produces the same result as the MatLab counterpart, we want to revisit the Python version and make it more pythonic.

Our goal is to reach the exact same result as the MatLab implementation, but this does not necessarily require that we confine ourself to line-to-line translation. Even, if we end up with a code base barely relatable to the MatLab implementation, as long as the result is the same in all possible cases and the code is faster and more pythonic - we should do it!

SeBecker commented 4 years ago

I continues Hans-Martins commit and reorganized all functions but there is more to do here: