Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
7af7eae
Add start to wizard
dwhswenson Feb 18, 2021
7fec891
TPS wizard works through state defs
dwhswenson Feb 19, 2021
250f4e2
a little more work on the wizard
dwhswenson Feb 27, 2021
666f9a9
major steps toward TPS wizard
dwhswenson Mar 4, 2021
8910ba2
A little more cleanup on wizard stuff
dwhswenson Mar 4, 2021
0b60338
Start to add tests for wizard
dwhswenson Mar 4, 2021
68066b1
tests for most of the Wizard object
dwhswenson Mar 6, 2021
4da1b9a
move MockConsole, start to get_object decorator
dwhswenson Mar 6, 2021
c17f3d1
more work toward using get_object
dwhswenson Mar 6, 2021
77fa5ce
tests for OpenMM wizard
dwhswenson Mar 6, 2021
76ea517
Prep tests for CVs
dwhswenson Mar 7, 2021
5d2e3f8
Some CV cleanup; more periodicity to CVs
dwhswenson Mar 7, 2021
b5ec9ce
Wizard ready for 2-state TPS demo
dwhswenson Mar 7, 2021
b32d03a
Add tests for CV wizards
dwhswenson Mar 7, 2021
a52bac0
tests for volume wizards
dwhswenson Mar 8, 2021
a9c4d96
simplify code to reflect current usage
dwhswenson Mar 8, 2021
a85118f
more cleanup of unused
dwhswenson Mar 8, 2021
42aa3c9
More tests; work toward handling Spring Shooting
dwhswenson Mar 18, 2021
13f7108
fix up tests
dwhswenson Mar 18, 2021
9d6c3dd
Add tests for shooting, load_from_ops
dwhswenson Mar 18, 2021
6467b59
Remove name from core (used as wizard.name)
dwhswenson Mar 19, 2021
d2050e4
Add tests for TPS wizard
dwhswenson Mar 20, 2021
94cd34e
Tests for two_state_tps.py
dwhswenson Mar 20, 2021
3f183de
tests for engines and errors
dwhswenson Mar 20, 2021
35c9ca1
Update for parsing.tools.custom_eval
dwhswenson Mar 26, 2021
97189a6
split off _do_one in wizard
dwhswenson Mar 26, 2021
f932fce
Add remaining tests for wizard
dwhswenson Jun 18, 2021
a3c7b4b
from unittest import mock...
dwhswenson Jun 18, 2021
a7fefd2
missed one
dwhswenson Jun 18, 2021
9259aca
fix for tests locally
dwhswenson Jun 18, 2021
10b676d
try ignoring wizard (does that fix test errors?)
dwhswenson Jun 18, 2021
8b7c8b8
re-include wizard tests
dwhswenson Jun 18, 2021
6c37dce
don't actually monkeypatch when testing Wizard
dwhswenson Jun 18, 2021
d444895
fix deprecation warnings for OPS 1.5
dwhswenson Jul 6, 2021
47106e6
Add Wizard (skeleton form) to docs
dwhswenson Jul 7, 2021
e9dd815
Add test job with openmm etc integrations
dwhswenson Jul 7, 2021
ea29ac4
fix whitespace in yaml
dwhswenson Jul 7, 2021
b52c1ef
fix include in yaml
dwhswenson Jul 7, 2021
3b64ce7
fix typo in workflow
dwhswenson Jul 7, 2021
8dcd07d
fix workflow
dwhswenson Jul 7, 2021
e774caa
increase fetch-depth to help codecov
dwhswenson Jul 7, 2021
d07699e
... helps is fetch-depth is in the right heading
dwhswenson Jul 7, 2021
2ba6390
finish test coverage
dwhswenson Jul 24, 2021
59b6fbe
Add test for bad MDTraj atom index input
dwhswenson Jul 24, 2021
4f3e53a
Add tests/wizard/__init__.py
dwhswenson Jul 24, 2021
0b33b79
no-cov on joke
dwhswenson Jul 24, 2021
60eb119
Apply suggestions from code review
dwhswenson Jul 26, 2021
3d92cd2
misc review cleanup
dwhswenson Jul 26, 2021
07b7d7c
Merge branch 'main' of github.com:openpathsampling/openpathsampling-c…
dwhswenson Jul 27, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
no-cov on joke
  • Loading branch information
dwhswenson committed Jul 24, 2021
commit 0b33b7938520138549892d6ab7989694c23ccb7e
10 changes: 5 additions & 5 deletions paths_cli/wizard/joke.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,26 @@
"It would also be a good name for a death metal band.",
]

def _joke1(name, obj_type):
def _joke1(name, obj_type): # no-cov
return (f"I probably would have named it something like "
f"'{random.choice(_NAMES)}'.")

def _joke2(name, obj_type):
def _joke2(name, obj_type): # no-cov
thing = random.choice(_THINGS)
joke = (f"I had {a_an(thing)} {thing} named '{name}' "
f"when I was young.")
return joke

def _joke3(name, obj_type):
def _joke3(name, obj_type): # no-cov
return (f"I wanted to name my {random.choice(_SPAWN)} '{name}', but my "
f"wife wouldn't let me.")

def _joke4(name, obj_type):
def _joke4(name, obj_type): # no-cov
a_an_thing = a_an(obj_type) + f" {obj_type}"
return random.choice(_MISC).format(name=name, obj_type=obj_type,
a_an_thing=a_an_thing)

def name_joke(name, obj_type):
def name_joke(name, obj_type): # no-cov
rnd = random.random()
if rnd < 0.25:
joke = _joke1
Expand Down