DrewSimtech / optimizer

for plotting convergance
0 stars 0 forks source link

Replace super() calls with v2.6 equivalent #4

Closed DrewSimtech closed 6 years ago

DrewSimtech commented 6 years ago

As a developer I would like to have our code base be backwards compatible the python 2.6 standard. This involves replacing empty super() calls with class specific calls super(, ).

DrewSimtech commented 6 years ago

Calls to super() have been changed to accommodate for the older version of python being used in the lab. This requires consistency in the future to keep super() calls compatible.

There are also other issues which will arise from developing on two versions of python that I've yet to encounter. Be sure to keep an eye out and make a list of differences.

DrewSimtech commented 6 years ago

Other issues found with down-porting to python 2.6: 1) Modules cannot have the same name as the package. (NO: walker/walker.py) 2) No special characters even in comments. (NO: ε, λ, Γ, etc...) 3) When building lists use list(...) instead of {...}. ({x for x in y...} => list(x for x in y...)) 4) No empty formatting in strings. ('blank{} {} {}' => 'blank {0} {1} {2}')