From 1af102ddfc5f787ca649d16ea4a27bb8f86cfde2 Mon Sep 17 00:00:00 2001 From: Tibor Frank Date: Wed, 8 Nov 2017 13:51:29 +0100 Subject: PAL: Implement data sets for specification file. Change-Id: Iacafb676f280a980d02bcdba3aa3abd8bd035cfc Signed-off-by: Tibor Frank (cherry picked from commit 6c1043c843b4fcd33e7004876cbced565c222f58) --- resources/tools/presentation/pal.py | 66 ++++++++++++++++++------------------- 1 file changed, 33 insertions(+), 33 deletions(-) (limited to 'resources/tools/presentation/pal.py') diff --git a/resources/tools/presentation/pal.py b/resources/tools/presentation/pal.py index 86b709c5be..fdd3e8a263 100644 --- a/resources/tools/presentation/pal.py +++ b/resources/tools/presentation/pal.py @@ -83,39 +83,39 @@ def main(): logging.critical("Finished with error.") sys.exit(1) - try: - env = Environment(spec.environment, args.force) - env.set_environment() - - if spec.is_debug: - if spec.debug["input-format"] == "zip": - unzip_files(spec) - else: - download_data_files(spec) - - prepare_static_content(spec) - - data = InputData(spec) - data.read_data() - - generate_tables(spec, data) - generate_plots(spec, data) - generate_files(spec, data) - generate_report(args.release, spec) - - logging.info("Successfully finished.") - - except (KeyError, ValueError, PresentationError) as err: - logging.info("Finished with an error.") - logging.critical(str(err)) - except Exception as err: - logging.info("Finished with an error.") - logging.critical(str(err)) - - finally: - if spec is not None and not spec.is_debug: - clean_environment(spec.environment) - sys.exit(1) + # try: + env = Environment(spec.environment, args.force) + env.set_environment() + + if spec.is_debug: + if spec.debug["input-format"] == "zip": + unzip_files(spec) + else: + download_data_files(spec) + + prepare_static_content(spec) + + data = InputData(spec) + data.read_data() + + generate_tables(spec, data) + generate_plots(spec, data) + generate_files(spec, data) + generate_report(args.release, spec) + + logging.info("Successfully finished.") + + # except (KeyError, ValueError, PresentationError) as err: + # logging.info("Finished with an error.") + # logging.critical(str(err)) + # except Exception as err: + # logging.info("Finished with an error.") + # logging.critical(str(err)) + # + # finally: + # if spec is not None and not spec.is_debug: + # clean_environment(spec.environment) + # sys.exit(1) if __name__ == '__main__': -- cgit 1.2.3-korg