libmsym icon indicating copy to clipboard operation
libmsym copied to clipboard

PEP8 code refactoring

Open mcocdawc opened this issue 8 years ago • 0 comments

Made changes in the code to make it PEP8 compatible, changed .gitignore to ignore eggfiles from python build and Replaced creation of strings via overloaded + operator with the format function.

Example:

give_message = "Must provide an array of length {}".format
raise ValueError(give_message(len(self.basis_functions)))

instead of:

raise ValueError("Must provide an array of length " + str(len(self.basis_functions)))

mcocdawc avatar Jul 27 '17 10:07 mcocdawc