Skip to content

Commit 74ce2eb

Browse files
committed
PR template and bugfix
1 parent f040d98 commit 74ce2eb

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.github/pull_request_template.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,5 @@ _Describe what this PR is for_
55

66
## PR Checklist
77

8-
- [] apply "black" to the whole codebase (`black .`)
9-
- [] apply isort to the codebase (`isort .`)
10-
- [] fun `flake8` and try to resolve all the issues (work in progress!)
8+
- [] apply `black` and `isort` to the whole codebase (`black .; isort .`)
9+
- [] Make sure that `flake8` does not raise any warnings

polychrom/forces.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ def heteropolymer_SSW(
722722
def cylindrical_confinement(
723723
sim_object,
724724
r,
725-
bottom: int | Literal[True, None, False] = None,
725+
bottom: int | Literal[True, None] = None,
726726
k=0.1,
727727
top=9999,
728728
name="cylindrical_confinement",
@@ -731,7 +731,7 @@ def cylindrical_confinement(
731731

732732
bottom = 0 if bottom is True else bottom
733733

734-
if bottom:
734+
if bottom is not None:
735735
force = openmm.CustomExternalForce(
736736
"kt * k * ("
737737
" step(dr) * (sqrt(dr*dr + t*t) - t)"

0 commit comments

Comments
 (0)