Mercurial > repos > bimib > cobraxy
comparison COBRAxy/custom_data_generator.py @ 386:cccbf259459e draft
Uploaded
author | francesco_lapi |
---|---|
date | Fri, 05 Sep 2025 10:15:52 +0000 |
parents | 8a1213d1393d |
children | 52658ddcaa5d |
comparison
equal
deleted
inserted
replaced
385:cbb2dcbe768c | 386:cccbf259459e |
---|---|
6 import pandas as pd | 6 import pandas as pd |
7 import utils.general_utils as utils | 7 import utils.general_utils as utils |
8 import utils.rule_parsing as rulesUtils | 8 import utils.rule_parsing as rulesUtils |
9 from typing import Optional, Tuple, Union, List, Dict | 9 from typing import Optional, Tuple, Union, List, Dict |
10 import utils.reaction_parsing as reactionUtils | 10 import utils.reaction_parsing as reactionUtils |
11 import openpyxl | |
12 | 11 |
13 ARGS : argparse.Namespace | 12 ARGS : argparse.Namespace |
14 def process_args(args: List[str] = None) -> argparse.Namespace: | 13 def process_args(args: List[str] = None) -> argparse.Namespace: |
15 """ | 14 """ |
16 Parse command-line arguments for CustomDataGenerator. | 15 Parse command-line arguments for CustomDataGenerator. |
266 | 265 |
267 # verify output exists and non-empty | 266 # verify output exists and non-empty |
268 if not expected or not os.path.exists(expected) or os.path.getsize(expected) == 0: | 267 if not expected or not os.path.exists(expected) or os.path.getsize(expected) == 0: |
269 raise utils.DataErr(expected, "Output non creato o vuoto") | 268 raise utils.DataErr(expected, "Output non creato o vuoto") |
270 | 269 |
271 print("CustomDataGenerator: completed successfully") | 270 print("CustomDataGenerator: completed successfully") |
272 | 271 |
273 if __name__ == '__main__': | 272 if __name__ == '__main__': |
274 main() | 273 main() |