Mercurial > repos > bimib > cobraxy
comparison COBRAxy/marea.py @ 147:3fca9b568faf draft
Uploaded
author | bimib |
---|---|
date | Wed, 06 Nov 2024 13:57:24 +0000 |
parents | 88cf4543e210 |
children | 8e3cbf68cdc4 |
comparison
equal
deleted
inserted
replaced
146:88cf4543e210 | 147:3fca9b568faf |
---|---|
18 import copy | 18 import copy |
19 | 19 |
20 ERRORS = [] | 20 ERRORS = [] |
21 ########################## argparse ########################################## | 21 ########################## argparse ########################################## |
22 ARGS :argparse.Namespace | 22 ARGS :argparse.Namespace |
23 def process_args(args=None) -> argparse.Namespace: | 23 def process_args(args:List[str] = None) -> argparse.Namespace: |
24 """ | 24 """ |
25 Interfaces the script of a module with its frontend, making the user's choices for various parameters available as values in code. | 25 Interfaces the script of a module with its frontend, making the user's choices for various parameters available as values in code. |
26 | 26 |
27 Args: | 27 Args: |
28 args : Always obtained (in file) from sys.argv | 28 args : Always obtained (in file) from sys.argv |
869 | 869 |
870 dataset = dataset.drop(dataset.columns[0], axis = "columns").to_dict("list") | 870 dataset = dataset.drop(dataset.columns[0], axis = "columns").to_dict("list") |
871 return { id : list(map(utils.Float("Dataset values, not an argument"), values)) for id, values in dataset.items() }, IDs | 871 return { id : list(map(utils.Float("Dataset values, not an argument"), values)) for id, values in dataset.items() }, IDs |
872 | 872 |
873 ############################ MAIN ############################################# | 873 ############################ MAIN ############################################# |
874 def main(args=None) -> None: | 874 def main(args:List[str] = None) -> None: |
875 """ | 875 """ |
876 Initializes everything and sets the program in motion based on the fronted input arguments. | 876 Initializes everything and sets the program in motion based on the fronted input arguments. |
877 | 877 |
878 Returns: | 878 Returns: |
879 None | 879 None |