From dfc22b4992079c6b36b69c3495163495995be23d Mon Sep 17 00:00:00 2001 From: Samuel Gaist <samuel.gaist@idiap.ch> Date: Wed, 7 Apr 2021 13:49:20 +0200 Subject: [PATCH] [dataformat] Fix docstrings --- beat/backend/python/dataformat.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/beat/backend/python/dataformat.py b/beat/backend/python/dataformat.py index 2d030fd..de44081 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 -- GitLab