Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
PyNEST: pep8 compliance and Numpy-formatted docstrings. #263
Squashed commits: [576ce0d] pep8 error fixed [0f4b50d] pep8 compliance; changed NestError -> NESTError [298c5b0] pep8 compliance of raster_plot. Moved kwargs definitions to make_plot; Passing kwargs to make_plot from all others; [605efae] pep8 compliance; could not fix 4 E402 errors, due to module-wide imports later in the file which are necessary as workarounds. [5d4e813] fixed bug that was introduced by pep8 rewrite [a6a47fa] added helper to correctly format deprecation warnings, respecting linebreaks, without relying on textwrap.dedent()
@flinz Thanks for your work! At the moment, the checks fail due to some copyright header problem---could you check that?
Import order, especially wrt SciPy/NumPy has been a problem for a long time, and one sensitive to a number of details, if I remember correctly. I would tend not to fiddle with the order of imports just to make PEP8 happy, in particular in an
* master: Formatting fixes. Small fixes in tests. Added checks against negative or infinite simulation time. Refactored Time object update to static helper method. Simtime now rounded up, improved comment on it. If GLS is available, use GSL RNG and thus allow Fixing #264: Simulate now raises exception if simulation time is not multiple of the resolution. SetStatus on devices do the same if start, stop, origin are not multiples of the resolution. Some tests needed minor adaptation. Add a test that checks for return type of RDV Add an `is_discrete` entry to the RDV Status dict BugFix: The RandomFunction either returns Improves documentation for regexec function, solving trac.560. Replaced U0 by E_L in testsuite Replaced U0 by E_L in PyNEST examples Replaced U0 by E_L in SLI examples Code formatting Replacing internal C++ variable U0_ by E_L. Conflicts: pynest/nest/tests/test_parrot_neuron_ps.py