diff options
author | Tibor Frank <tifrank@cisco.com> | 2017-11-08 14:51:05 +0100 |
---|---|---|
committer | Tibor Frank <tifrank@cisco.com> | 2017-11-08 14:52:25 +0100 |
commit | 849e7756a138ff0b52767cb3cfea7aec9941ee91 (patch) | |
tree | f9229c8de1f02a5919d001176b7b3f39dcaa2db0 /resources/tools/presentation/specification_parser.py | |
parent | 6c1043c843b4fcd33e7004876cbced565c222f58 (diff) |
PAL: Implement data sets for specification file.
Change-Id: I4a2d290a69700425f33caf7274c6fa525271e0c8
Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/presentation/specification_parser.py')
-rw-r--r-- | resources/tools/presentation/specification_parser.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/tools/presentation/specification_parser.py b/resources/tools/presentation/specification_parser.py index 7ee6dbb486..3404024a87 100644 --- a/resources/tools/presentation/specification_parser.py +++ b/resources/tools/presentation/specification_parser.py @@ -486,7 +486,7 @@ class Specification(object): pass # add data sets to the elements: - if isinstance(element["data"], str): + if isinstance(element.get("data", None), str): data_set = element["data"] try: element["data"] = self.configuration["data-sets"][data_set] @@ -515,7 +515,7 @@ class Specification(object): element["layout"].pop("layout") try: for key, val in (self.configuration["plot-layouts"] - [layout]): + [layout].items()): element["layout"][key] = val except KeyError: raise PresentationError("Layout {0} is not defined in " |