diff --git a/beat/backend/python/dataformat.py b/beat/backend/python/dataformat.py index 2d030fdb2564208b0127c91f70986d3e842dee0a..de44081b0cb9a54ff7f250120866232ad6aa1038 100644 --- a/beat/backend/python/dataformat.py +++ b/beat/backend/python/dataformat.py @@ -255,7 +255,9 @@ class DataFormat(object): @property def name(self): - """Name of this object, either from the filename or composed from the hierarchy it belongs.""" + """Name of this object, either from the filename or composed from the hierarchy + it belongs. + """ if self.parent and self._name is None: return self.parent[0].name + "." + self.parent[1] + "_type" else: @@ -353,7 +355,8 @@ class DataFormat(object): @property def description(self): - "Short description string, loaded from the JSON file if one was set""" + """Short description string, loaded from the JSON file if one was set""" + return self.data.get("#description", None) @description.setter