我有一个自定义client.scatter
表,其中添加了用于存储元数据的列。我的问题很简单:当我使用import time
import pandas as pd
import dask as dask
import dask.distributed as distributed
import dask.dataframe as dd
import dask.delayed as delayed
from dask.distributed import Client, progress
client = Client(IP:PORT)
print client
print client.scheduler_info()
f = []
chunksize = 10 ** 6
for chunk in pd.read_csv('file.csv', chunksize=chunksize):
f_in = client.scatter(chunk)
f.append(f_in)
print "read"
ddf = dd.from_delayed(f)
ddf = ddf.groupby(['col1'])[['col2']].sum()
future = client.compute(ddf)
print future
progress(future)
result = client.gather(future)
print result
手动创建版本时,如何传递元数据?
我尝试使用versions
,但是在控制器的每个动作中都调用了它,而且似乎在定义widget.paper_trail.save_with_version
之前就已经调用了它。
这是我的控制器的摘录:
info_for_paper_trail
这是我的模型:
current_user
编辑:
我相信这是一个错误,我在github repo
上创建了一个问题