dvid.utils.gen_assignments¶
- dvid.utils.gen_assignments(x, save_to=None, meta={})[source]¶
Generate JSON file that can be imported into neutu as assignments.
- Parameters
x (pandas.DataFrame) – Must contain columns
x
,y
,z
orlocation
. Optional columns:body ID
,text
andcomment
.save_to (None | filepath | filebuffer, optional) – If not None, will save json to file.
meta (dict, optional) – Metadata will be stored in json string as
"metadata"
.
- Returns
Only if
save_to=None
.- Return type
JSON-formated string