Skip to content

Commit 46a1e48

Browse files
committed
Working on adding coverage testing for scripts
1 parent 46c738d commit 46a1e48

6 files changed

Lines changed: 357 additions & 243 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
*__pycache__*
44
*.egg-info
55
*.DS_Store
6+
.coverage

example_export_config.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44

55
# Copy this config file to the top-level data directory and modify fields.
66

7-
# Data output directory
8-
savedir = './data'
9-
107
# Save name for this set of data
118
saveID = 'EXPERIMENT_NAME'
129

pcpostprocess/_version.py

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# file generated by setuptools-scm
2+
# don't change, don't track in version control
3+
4+
__all__ = [
5+
"__version__",
6+
"__version_tuple__",
7+
"version",
8+
"version_tuple",
9+
"__commit_id__",
10+
"commit_id",
11+
]
12+
13+
TYPE_CHECKING = False
14+
if TYPE_CHECKING:
15+
from typing import Tuple
16+
from typing import Union
17+
18+
VERSION_TUPLE = Tuple[Union[int, str], ...]
19+
COMMIT_ID = Union[str, None]
20+
else:
21+
VERSION_TUPLE = object
22+
COMMIT_ID = object
23+
24+
version: str
25+
__version__: str
26+
__version_tuple__: VERSION_TUPLE
27+
version_tuple: VERSION_TUPLE
28+
commit_id: COMMIT_ID
29+
__commit_id__: COMMIT_ID
30+
31+
__version__ = version = '0.1.dev374+dirty'
32+
__version_tuple__ = version_tuple = (0, 1, 'dev374', 'dirty')
33+
34+
__commit_id__ = commit_id = 'g9ee4de552'

pcpostprocess/scripts/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def main():
1818
sys.argv.pop(1) # Subcommand's argparser shouldn't see this
1919

2020
if args.subcommand == "run_herg_qc":
21-
run_herg_qc.main()
21+
run_herg_qc.run_from_command_line()
2222

2323
elif args.subcommand == "summarise_herg_export":
2424
summarise_herg_export.main()

0 commit comments

Comments
 (0)