Skip to content
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

Merged
merged 4 commits into from
Feb 13, 2018
Merged

Conversation

davidsean
Copy link
Contributor

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:

  • added seeding in samples
  • import numpy as np
  • system=espresomd.System()
  • widom and grandcanonical had older RE syntax
  • most samples run

PR Checklist

  • Tests?
    • Interface
    • Core
  • Docs?

@codecov
Copy link

codecov bot commented Feb 12, 2018

Codecov Report

Merging #1845 into python will increase coverage by <1%.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           python   #1845    +/-   ##
=======================================
+ Coverage      60%     60%   +<1%     
=======================================
  Files         422     422            
  Lines       29269   29269            
=======================================
+ Hits        17835   17836     +1     
+ Misses      11434   11433     -1
Impacted Files Coverage Δ
src/core/p3m.cpp 83% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8c4ff60...8efadfe. Read the comment docs.

Copy link
Contributor

@pkreissl pkreissl left a 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.

@fweik fweik merged commit 2a9086a into espressomd:python Feb 13, 2018
@davidsean davidsean deleted the consistent_samples branch February 13, 2018 21:44
@fweik fweik mentioned this pull request Feb 20, 2018
ashreyaj pushed a commit to ashreyaj/espresso that referenced this pull request Aug 9, 2018
jngrad added a commit to jngrad/espresso that referenced this pull request Jan 14, 2019
 + 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
jngrad added a commit to jngrad/espresso that referenced this pull request Jan 15, 2019
- 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
jngrad added a commit to jngrad/espresso that referenced this pull request Jan 16, 2019
- 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
kodiakhq bot added a commit that referenced this pull request Feb 25, 2020
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants