提交 b79151bc 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!587 update the update_time in super_llineage_obj if update_time is changed

Merge pull request !587 from luopengting/fix_lineage
......@@ -56,17 +56,32 @@ class SuperLineageObj:
"""Get update time."""
return self._update_time
@update_time.setter
def update_time(self, update_time):
"""Set update_time."""
self._update_time = update_time
class LineageParser:
"""Lineage parser."""
def __init__(self, summary_dir, update_time=None, added_info=None):
self._summary_dir = summary_dir
self.update_time = update_time
self._update_time = update_time
self._added_info = added_info
self._init_variables()
self.load()
@property
def update_time(self):
return self._update_time
@update_time.setter
def update_time(self, update_time):
self._update_time = update_time
if self._super_lineage_obj is not None:
self._super_lineage_obj.update_time = update_time
def _init_variables(self):
"""Init variables."""
self._super_lineage_obj = None
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册