|
607 | 607 | except subprocess.SubprocessError: |
608 | 608 | logger.warning("ERROR: Evaluation for model {} failed. Please review logfile {} for error diagnostics.".format(model_name, file_output)) |
609 | 609 |
|
610 | | - |
611 | 610 | # Close the training plugin log file |
612 | 611 | fout.close() |
613 | 612 |
|
|
639 | 638 | logger.warning("INFO: Received task list {} from manager.".format(task_list)) |
640 | 639 |
|
641 | 640 | if task_list != []: |
| 641 | + logger.warning("INFO: Beginning cleaning stage plotting.") |
| 642 | + |
| 643 | + for task in task_list: |
| 644 | + logger.warning("INFO: Generating plot {}.".format(task[2])) |
| 645 | + file_output = "data/.logs/worker-1/{}-plot-{}".format(TIME, task[2]) |
| 646 | + logger.warning("INFO: Saving output of plotting plugin to logfile {}.".format(file_output)) |
| 647 | + fout = open(file_output, "wt") |
| 648 | + |
| 649 | + clean_param = clean_factory(task[1], task[2], task[3], ROOT_PATH) |
| 650 | + |
| 651 | + try: |
| 652 | + subprocess.run([PYTHON_PATH, task[0], "clean", clean_param], stdout=fout, stderr=fout) |
| 653 | + |
| 654 | + except subprocess.SubprocessError: |
| 655 | + logger.warning("ERROR: Plotting failed. Please review logfile {} for error diagnostics.".format(file_output)) |
| 656 | + |
| 657 | + fout.close() |
| 658 | + |
642 | 659 | comm.send(1, dest=0, tag=1) |
643 | 660 |
|
644 | 661 | else: |
|
816 | 833 | except subprocess.SubprocessError: |
817 | 834 | logger.warning("ERROR: Evaluation for model {} failed. Please review logfile {} for error diagnostics.".format(model_name, file_output)) |
818 | 835 |
|
819 | | - |
820 | 836 | # Close the training plugin log file |
821 | 837 | fout.close() |
822 | 838 |
|
|
848 | 864 | logger.warning("INFO: Received task list {} from manager.".format(task_list)) |
849 | 865 |
|
850 | 866 | if task_list != []: |
| 867 | + logger.warning("INFO: Beginning cleaning stage plotting.") |
| 868 | + |
| 869 | + for task in task_list: |
| 870 | + logger.warning("INFO: Generating plot {}.".format(task[2])) |
| 871 | + file_output = "data/.logs/worker-2/{}-plot-{}".format(TIME, task[2]) |
| 872 | + logger.warning("INFO: Saving output of plotting plugin to logfile {}.".format(file_output)) |
| 873 | + fout = open(file_output, "wt") |
| 874 | + |
| 875 | + clean_param = clean_factory(task[1], task[2], task[3], ROOT_PATH) |
| 876 | + |
| 877 | + try: |
| 878 | + subprocess.run([PYTHON_PATH, task[0], "clean", clean_param], stdout=fout, stderr=fout) |
| 879 | + |
| 880 | + except subprocess.SubprocessError: |
| 881 | + logger.warning("ERROR: Plotting failed. Please review logfile {} for error diagnostics.".format(file_output)) |
| 882 | + |
| 883 | + fout.close() |
| 884 | + |
851 | 885 | comm.send(1, dest=0, tag=2) |
852 | 886 |
|
853 | 887 | else: |
|
1025 | 1059 | except subprocess.SubprocessError: |
1026 | 1060 | logger.warning("ERROR: Evaluation for model {} failed. Please review logfile {} for error diagnostics.".format(model_name, file_output)) |
1027 | 1061 |
|
1028 | | - |
1029 | 1062 | # Close the training plugin log file |
1030 | 1063 | fout.close() |
1031 | 1064 |
|
|
1057 | 1090 | logger.warning("INFO: Received task list {} from manager.".format(task_list)) |
1058 | 1091 |
|
1059 | 1092 | if task_list != []: |
| 1093 | + logger.warning("INFO: Beginning cleaning stage plotting.") |
| 1094 | + |
| 1095 | + for task in task_list: |
| 1096 | + logger.warning("INFO: Generating plot {}.".format(task[2])) |
| 1097 | + file_output = "data/.logs/worker-3/{}-plot-{}".format(TIME, task[2]) |
| 1098 | + logger.warning("INFO: Saving output of plotting plugin to logfile {}.".format(file_output)) |
| 1099 | + fout = open(file_output, "wt") |
| 1100 | + |
| 1101 | + clean_param = clean_factory(task[1], task[2], task[3], ROOT_PATH) |
| 1102 | + |
| 1103 | + try: |
| 1104 | + subprocess.run([PYTHON_PATH, task[0], "clean", clean_param], stdout=fout, stderr=fout) |
| 1105 | + |
| 1106 | + except subprocess.SubprocessError: |
| 1107 | + logger.warning("ERROR: Plotting failed. Please review logfile {} for error diagnostics.".format(file_output)) |
| 1108 | + |
| 1109 | + fout.close() |
| 1110 | + |
1060 | 1111 | comm.send(1, dest=0, tag=3) |
1061 | 1112 |
|
1062 | 1113 | else: |
|
1234 | 1285 | except subprocess.SubprocessError: |
1235 | 1286 | logger.warning("ERROR: Evaluation for model {} failed. Please review logfile {} for error diagnostics.".format(model_name, file_output)) |
1236 | 1287 |
|
1237 | | - |
1238 | 1288 | # Close the training plugin log file |
1239 | 1289 | fout.close() |
1240 | 1290 |
|
|
1266 | 1316 | logger.warning("INFO: Received task list {} from manager.".format(task_list)) |
1267 | 1317 |
|
1268 | 1318 | if task_list != []: |
| 1319 | + logger.warning("INFO: Beginning cleaning stage plotting.") |
| 1320 | + |
| 1321 | + for task in task_list: |
| 1322 | + logger.warning("INFO: Generating plot {}.".format(task[2])) |
| 1323 | + file_output = "data/.logs/worker-4/{}-plot-{}".format(TIME, task[2]) |
| 1324 | + logger.warning("INFO: Saving output of plotting plugin to logfile {}.".format(file_output)) |
| 1325 | + fout = open(file_output, "wt") |
| 1326 | + |
| 1327 | + clean_param = clean_factory(task[1], task[2], task[3], ROOT_PATH) |
| 1328 | + |
| 1329 | + try: |
| 1330 | + subprocess.run([PYTHON_PATH, task[0], "clean", clean_param], stdout=fout, stderr=fout) |
| 1331 | + |
| 1332 | + except subprocess.SubprocessError: |
| 1333 | + logger.warning("ERROR: Plotting failed. Please review logfile {} for error diagnostics.".format(file_output)) |
| 1334 | + |
| 1335 | + fout.close() |
| 1336 | + |
1269 | 1337 | comm.send(1, dest=0, tag=4) |
1270 | 1338 |
|
1271 | 1339 | else: |
|
1443 | 1511 | except subprocess.SubprocessError: |
1444 | 1512 | logger.warning("ERROR: Evaluation for model {} failed. Please review logfile {} for error diagnostics.".format(model_name, file_output)) |
1445 | 1513 |
|
1446 | | - |
1447 | 1514 | # Close the training plugin log file |
1448 | 1515 | fout.close() |
1449 | 1516 |
|
|
1475 | 1542 | logger.warning("INFO: Received task list {} from manager.".format(task_list)) |
1476 | 1543 |
|
1477 | 1544 | if task_list != []: |
| 1545 | + logger.warning("INFO: Beginning cleaning stage plotting.") |
| 1546 | + |
| 1547 | + for task in task_list: |
| 1548 | + logger.warning("INFO: Generating plot {}.".format(task[2])) |
| 1549 | + file_output = "data/.logs/worker-5/{}-plot-{}".format(TIME, task[2]) |
| 1550 | + logger.warning("INFO: Saving output of plotting plugin to logfile {}.".format(file_output)) |
| 1551 | + fout = open(file_output, "wt") |
| 1552 | + |
| 1553 | + clean_param = clean_factory(task[1], task[2], task[3], ROOT_PATH) |
| 1554 | + |
| 1555 | + try: |
| 1556 | + subprocess.run([PYTHON_PATH, task[0], "clean", clean_param], stdout=fout, stderr=fout) |
| 1557 | + |
| 1558 | + except subprocess.SubprocessError: |
| 1559 | + logger.warning("ERROR: Plotting failed. Please review logfile {} for error diagnostics.".format(file_output)) |
| 1560 | + |
| 1561 | + fout.close() |
| 1562 | + |
1478 | 1563 | comm.send(1, dest=0, tag=5) |
1479 | 1564 |
|
1480 | 1565 | else: |
|
1652 | 1737 | except subprocess.SubprocessError: |
1653 | 1738 | logger.warning("ERROR: Evaluation for model {} failed. Please review logfile {} for error diagnostics.".format(model_name, file_output)) |
1654 | 1739 |
|
1655 | | - |
1656 | 1740 | # Close the training plugin log file |
1657 | 1741 | fout.close() |
1658 | 1742 |
|
|
1684 | 1768 | logger.warning("INFO: Received task list {} from manager.".format(task_list)) |
1685 | 1769 |
|
1686 | 1770 | if task_list != []: |
| 1771 | + logger.warning("INFO: Beginning cleaning stage plotting.") |
| 1772 | + |
| 1773 | + for task in task_list: |
| 1774 | + logger.warning("INFO: Generating plot {}.".format(task[2])) |
| 1775 | + file_output = "data/.logs/worker-6/{}-plot-{}".format(TIME, task[2]) |
| 1776 | + logger.warning("INFO: Saving output of plotting plugin to logfile {}.".format(file_output)) |
| 1777 | + fout = open(file_output, "wt") |
| 1778 | + |
| 1779 | + clean_param = clean_factory(task[1], task[2], task[3], ROOT_PATH) |
| 1780 | + |
| 1781 | + try: |
| 1782 | + subprocess.run([PYTHON_PATH, task[0], "clean", clean_param], stdout=fout, stderr=fout) |
| 1783 | + |
| 1784 | + except subprocess.SubprocessError: |
| 1785 | + logger.warning("ERROR: Plotting failed. Please review logfile {} for error diagnostics.".format(file_output)) |
| 1786 | + |
| 1787 | + fout.close() |
| 1788 | + |
1687 | 1789 | comm.send(1, dest=0, tag=6) |
1688 | 1790 |
|
1689 | 1791 | else: |
|
1861 | 1963 | except subprocess.SubprocessError: |
1862 | 1964 | logger.warning("ERROR: Evaluation for model {} failed. Please review logfile {} for error diagnostics.".format(model_name, file_output)) |
1863 | 1965 |
|
1864 | | - |
1865 | 1966 | # Close the training plugin log file |
1866 | 1967 | fout.close() |
1867 | 1968 |
|
|
1893 | 1994 | logger.warning("INFO: Received task list {} from manager.".format(task_list)) |
1894 | 1995 |
|
1895 | 1996 | if task_list != []: |
| 1997 | + logger.warning("INFO: Beginning cleaning stage plotting.") |
| 1998 | + |
| 1999 | + for task in task_list: |
| 2000 | + logger.warning("INFO: Generating plot {}.".format(task[2])) |
| 2001 | + file_output = "data/.logs/worker-7/{}-plot-{}".format(TIME, task[2]) |
| 2002 | + logger.warning("INFO: Saving output of plotting plugin to logfile {}.".format(file_output)) |
| 2003 | + fout = open(file_output, "wt") |
| 2004 | + |
| 2005 | + clean_param = clean_factory(task[1], task[2], task[3], ROOT_PATH) |
| 2006 | + |
| 2007 | + try: |
| 2008 | + subprocess.run([PYTHON_PATH, task[0], "clean", clean_param], stdout=fout, stderr=fout) |
| 2009 | + |
| 2010 | + except subprocess.SubprocessError: |
| 2011 | + logger.warning("ERROR: Plotting failed. Please review logfile {} for error diagnostics.".format(file_output)) |
| 2012 | + |
| 2013 | + fout.close() |
| 2014 | + |
1896 | 2015 | comm.send(1, dest=0, tag=7) |
1897 | 2016 |
|
1898 | 2017 | else: |
|
0 commit comments