-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:CardiacModelling/pcpostprocess into…
… readme-link-fix
- Loading branch information
Showing
7 changed files
with
111 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import argparse | ||
import sys | ||
|
||
from . import run_herg_qc, summarise_herg_export | ||
|
||
|
||
def main(): | ||
parser = argparse.ArgumentParser( | ||
usage="pcpostprocess (run_herg_qc | summarise_herg_export) [<args>]", | ||
) | ||
parser.add_argument( | ||
"subcommand", | ||
choices=["run_herg_qc", "summarise_herg_export"], | ||
) | ||
args = parser.parse_args(sys.argv[1:2]) | ||
|
||
sys.argv[0] = f"pcpostprocess {args.subcommand}" | ||
sys.argv.pop(1) # Subcommand's argparser shouldn't see this | ||
|
||
if args.subcommand == "run_herg_qc": | ||
run_herg_qc.main() | ||
|
||
elif args.subcommand == "summarise_herg_export": | ||
summarise_herg_export.main() | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ | |
|
||
# Packages to include | ||
packages=find_packages( | ||
include=('pcpostprocess', 'pcpostprocess.*')), | ||
include=('pcpostprocess', 'pcpostprocess.scripts', 'pcpostprocess.*')), | ||
|
||
# Include non-python files (via MANIFEST.in) | ||
include_package_data=True, | ||
|
@@ -46,6 +46,7 @@ | |
'regex>=2023.12.25', | ||
'openpyxl>=3.1.2', | ||
'jinja2>=3.1.0', | ||
'seaborn>=0.12.2' | ||
], | ||
extras_require={ | ||
'test': [ | ||
|
@@ -58,4 +59,10 @@ | |
'syncropatch_export @ git+ssh://[email protected]/CardiacModelling/syncropatch_export@main' | ||
], | ||
}, | ||
entry_points={ | ||
'console_scripts': [ | ||
'pcpostprocess=' | ||
'pcpostprocess.scripts.__main__:main', | ||
], | ||
}, | ||
) |