152 self.download_files(measurement_id, 'scc_preprocessed', download_url) |
152 self.download_files(measurement_id, 'scc_preprocessed', download_url) |
153 |
153 |
154 def download_optical(self, measurement_id): |
154 def download_optical(self, measurement_id): |
155 """ Download optical files for the measurement id. """ |
155 """ Download optical files for the measurement id. """ |
156 # Construct the download url |
156 # Construct the download url |
157 download_url = self.download_optical.format(measurement_id) |
157 download_url = self.download_optical_pattern.format(measurement_id) |
158 self.download_files(measurement_id, 'scc_optical', download_url) |
158 self.download_files(measurement_id, 'scc_optical', download_url) |
159 |
159 |
160 def download_graphs(self, measurement_id): |
160 def download_graphs(self, measurement_id): |
161 """ Download profile graphs for the measurement id. """ |
161 """ Download profile graphs for the measurement id. """ |
162 # Construct the download url |
162 # Construct the download url |
493 def main(): |
493 def main(): |
494 # Define the command line arguments. |
494 # Define the command line arguments. |
495 parser = argparse.ArgumentParser() |
495 parser = argparse.ArgumentParser() |
496 parser.add_argument("filename", nargs='?', help="Measurement file name or path.", default='') |
496 parser.add_argument("filename", nargs='?', help="Measurement file name or path.", default='') |
497 parser.add_argument("system", nargs='?', help="Processing system id.", default=0) |
497 parser.add_argument("system", nargs='?', help="Processing system id.", default=0) |
498 parser.add_argument("-c", "--config", nargs='?', help="Path to configuration file") |
498 parser.add_argument("-c", "--config", help="Path to configuration file") |
499 parser.add_argument("-p", "--process", help="Wait for the results of the processing.", |
499 parser.add_argument("-p", "--process", help="Wait for the results of the processing.", |
500 action="store_true") |
500 action="store_true") |
501 parser.add_argument("--delete", help="Measurement ID to delete.") |
501 parser.add_argument("--delete", help="Measurement ID to delete.") |
502 parser.add_argument("--rerun-all", help="Measurement ID to rerun.") |
502 parser.add_argument("--rerun-all", help="Measurement ID to rerun.") |
503 parser.add_argument("--rerun-processing", help="Measurement ID to rerun processing routines.") |
503 parser.add_argument("--rerun-processing", help="Measurement ID to rerun processing routines.") |