Mercurial > repos > bimib > cobraxy
comparison COBRAxy/marea_cluster.py @ 155:3ad3fb730b87 draft
Uploaded
| author | bimib |
|---|---|
| date | Thu, 07 Nov 2024 10:22:56 +0000 |
| parents | 49fb0556242f |
| children | 4a677fc67aeb |
comparison
equal
deleted
inserted
replaced
| 154:49fb0556242f | 155:3ad3fb730b87 |
|---|---|
| 18 import scipy.cluster.hierarchy as shc | 18 import scipy.cluster.hierarchy as shc |
| 19 import matplotlib.cm as cm | 19 import matplotlib.cm as cm |
| 20 from typing import Optional, Dict, List | 20 from typing import Optional, Dict, List |
| 21 | 21 |
| 22 ################################# process args ############################### | 22 ################################# process args ############################### |
| 23 def process_args(args :List[str] = None) -> argparse.Namespace: | 23 def process_args(args_in :List[str] = None) -> argparse.Namespace: |
| 24 """ | 24 """ |
| 25 Processes command-line arguments. | 25 Processes command-line arguments. |
| 26 | 26 |
| 27 Args: | 27 Args: |
| 28 args (list): List of command-line arguments. | 28 args (list): List of command-line arguments. |
| 90 '-idop', '--output_path', | 90 '-idop', '--output_path', |
| 91 type = str, | 91 type = str, |
| 92 default='result', | 92 default='result', |
| 93 help = 'output path for maps') | 93 help = 'output path for maps') |
| 94 | 94 |
| 95 args = parser.parse_args(args) | 95 args_in = parser.parse_args(args_in) |
| 96 return args | 96 return args_in |
| 97 | 97 |
| 98 ########################### warning ########################################### | 98 ########################### warning ########################################### |
| 99 def warning(s :str) -> None: | 99 def warning(s :str) -> None: |
| 100 """ | 100 """ |
| 101 Log a warning message to an output log file and print it to the console. | 101 Log a warning message to an output log file and print it to the console. |
