Commit 8a512d0f authored by payno's avatar payno
Browse files

[process] fix title_latex setter

parent 7b374731
Pipeline #51929 passed with stages
in 11 minutes and 10 seconds
......@@ -68,6 +68,7 @@ class _NexusSpectrumDef:
self.axes = axes
self.auxiliary_signals = auxiliary_signals
self.title = title
self.title_latex = title_latex
@property
def signal(self):
......@@ -124,6 +125,13 @@ class _NexusSpectrumDef:
def title_latex(self):
return self.__title_latex
@title_latex.setter
def title_latex(self, title):
if not isinstance(title, (str, type(None))):
raise TypeError("`title` should be an instance of str or None")
else:
self.__title_latex = title
class _NexusDatasetDef:
"""Util function to define a Nexus plot"""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment