-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
consistent style in samples #1845
Conversation
Codecov Report
@@ Coverage Diff @@
## python #1845 +/- ##
=======================================
+ Coverage 60% 60% +<1%
=======================================
Files 422 422
Lines 29269 29269
=======================================
+ Hits 17835 17836 +1
+ Misses 11434 11433 -1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolve conflicting file issue, can be merged, then.
consistent style in samples
+ Change instructions "from XYZ import *" to "import XYZ" + Use module argparse for complex command line interfaces + Format messages with str.format() + Use modern Python2.7 syntax + Remove irrelevant/legacy code + Wrap long docstrings and multi-line strings + Move docstrings under the copyright header + Give pickle files the .pkl extension
- Change instructions "from XYZ import *" to "import XYZ" - Use argparse for complex command line interfaces - Format messages with str.format() - Use modern Python2.7 syntax - Remove irrelevant/legacy code - Wrap long strings into multi-line strings - Move docstrings under the copyright header - Give pickle files the .pkl extension
- Change instructions "from XYZ import *" to "import XYZ" - Use argparse for complex command line interfaces - Format messages with str.format() - Use modern Python2.7 syntax - Remove irrelevant/legacy code - Wrap long strings into multi-line strings - Move docstrings under the copyright header - Give pickle files the .pkl extension
Description of changes: - `lb.rst` contained outdated code for instantiating the `System`-class, namely missing the mandatory `box_l` parameter, only trying to set it afterwards. - Fixed that there and in all other places that I found via a quick search. - While at it, I renamed the occurrences of instances of `System` that were not called `system`, to match the naming convention of #1845.
Fixes #
changed samples such they all have the same style, so that users could copy/paste code blocks from different samples into their own.
for example, all sampls now have
system=espresomd.System()
instead of sys=espresomd.System() or S=espresomd.System()
all concerned scripts now also use
import numpy as np
Description of changes:
PR Checklist