def __init__(self, name, rootdir, src_id, src_type, time,
ingest_id, group_name, matrices=None,
status=None, count=0, stash=None, filepath=None):
self.name = name
self.host = [ip for ip in socket.gethostbyname_ex(socket.gethostname())[2]
if not ip.startswith("127.")][-1]
self.rootdir = rootdir
self.src_id = src_id
self.src_type = src_type
self.created = time
self.ingest_id = ingest_id
self.matrices = none2empty(matrices)
self.status = none2empty(status)
self.count = count
self.stash = none2empty(stash)
self.group_name = group_name
self.filepath = filepath
评论列表
文章目录