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

Conversion of int-flags to bool in python interface #2927

Merged
merged 18 commits into from
Jun 25, 2019

Conversation

reinaual
Copy link
Contributor

Fixes #1942
also changed flags in ELC/MMM2D code

@fweik fweik requested a review from KaiSzuttor June 19, 2019 09:08
@fweik fweik self-assigned this Jun 19, 2019
@codecov
Copy link

codecov bot commented Jun 19, 2019

Codecov Report

Merging #2927 into python will decrease coverage by 1%.
The diff coverage is 91%.

Impacted file tree graph

@@           Coverage Diff           @@
##           python   #2927    +/-   ##
=======================================
- Coverage      83%     82%    -2%     
=======================================
  Files         520     520            
  Lines       26746   26745     -1     
=======================================
- Hits        22328   21959   -369     
- Misses       4418    4786   +368
Impacted Files Coverage Δ
src/core/electrostatics_magnetostatics/mmm2d.hpp 100% <ø> (ø) ⬆️
src/core/constraints/ShapeBasedConstraint.cpp 83% <0%> (-5%) ⬇️
src/core/electrostatics_magnetostatics/mmm2d.cpp 89% <100%> (-1%) ⬇️
src/core/electrostatics_magnetostatics/elc.cpp 73% <100%> (-1%) ⬇️
...al_sites/lb_inertialess_tracers_cuda_interface.cpp 0% <0%> (-100%) ⬇️
...rialization/ibm_cuda_particle_velocities_input.hpp 0% <0%> (-100%) ⬇️
src/script_interface/shapes/Slitpore.hpp 36% <0%> (-55%) ⬇️
...tatics_magnetostatics/magnetic_non_p3m_methods.cpp 0% <0%> (-38%) ⬇️
src/script_interface/shapes/HollowCone.hpp 50% <0%> (-34%) ⬇️
...e/virtual_sites/VirtualSitesInertialessTracers.cpp 75% <0%> (-25%) ⬇️
... and 36 more

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 ad319c0...6135151. Read the comment docs.

@jngrad
Copy link
Member

jngrad commented Jun 25, 2019

@fweik: can this be merged?

@fweik
Copy link
Contributor

fweik commented Jun 25, 2019

bors r+

bors bot added a commit that referenced this pull request Jun 25, 2019
2915: Checkpointing: lbboundaries, constraints, auto_update_accumulators +test r=fweik a=RudolfWeeber



2927: Conversion of int-flags to bool in python interface r=fweik a=reinaual

Fixes #1942 
also changed flags in ELC/MMM2D code

2932: Improve maintainability of build_cmake.sh r=fweik a=jngrad

The number of pitfalls in a shell script can be reduced if Google's [Shell Style Guide](https://google.github.io/styleguide/shell.xml#Variable_expansion) is followed:
- no more cryptic `if [ ! -z "${var+x}" ]` to test if a variable is undeclared (also, the conditional was used incorrectly and caused the error message `line 94: curl: command not found` in Travis-CI without triggering the trap)
- use CMake-like boolean values and test explicitly if a variable is equal to  `true` or `false` (we had a mix of `true`, `yes` and empty strings)
- every variable is brace-quoted
- every string variable is quoted (no more `build_dir="build maxset"; cd ${build_dir}` causing `bash: cd: too many arguments`)

Co-authored-by: Rudolf Weeber <weeber@icp.uni-stuttgart.de>
Co-authored-by: Jean-Noël Grad <jgrad@icp.uni-stuttgart.de>
Co-authored-by: Alexander Reinauer <st144434@stud.uni-stuttgart.de>
@bors
Copy link
Contributor

bors bot commented Jun 25, 2019

Build succeeded

@bors bors bot merged commit 6135151 into espressomd:python Jun 25, 2019
@reinaual reinaual deleted the boolConv branch October 1, 2019 14:10
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.

Convert all 0/1 flags to True, False in the python interface
4 participants