Mercurial > repos > bimib > marea
diff Marea/marea_cluster.py @ 9:7c76e8e319c2 draft
fix cluster file and help section
author | bimib |
---|---|
date | Wed, 13 Feb 2019 04:01:21 -0500 |
parents | 771a40335876 |
children | 2405255d6a09 |
line wrap: on
line diff
--- a/Marea/marea_cluster.py Thu Nov 15 07:36:28 2018 -0500 +++ b/Marea/marea_cluster.py Wed Feb 13 04:01:21 2019 -0500 @@ -577,7 +577,12 @@ def main(): args = process_args(sys.argv) if args.k_min > args.k_max: - sys.exit('Execution aborted: max cluster > min cluster') + warning('k range boundaries inverted.') + tmp = args.k_min + args.k_min = args.k_max + args.k_max = tmp + else: + warning('k range correct.') if args.rules_selector == 'HMRcore': recon = pk.load(open(args.tool_dir + '/local/HMRcore_rules.p', 'rb')) elif args.rules_selector == 'Recon':