project_from_spec
Register one project from a spec dict.
Generated from Plexora 0.0.55View source
from plexora import project_from_specproject_from_spec(spec, node=None) -> strThe same as create_project(**spec) -- this is what the CLI's --from file.json and create_dataset(projects=[...]) both call, so a spec
document means one thing everywhere it is read.
Parameters
specdictrequiredA project spec: any of PROJECT_SPEC_KEYS, with image
required.
nodestrdefault NoneThe data node any path in spec is on, unless
the spec says otherwise for itself.
Returns
strThe project's name -- see create_project.
Raises
ValueErrorSee create_project.
Examples
import plexora
name = plexora.project_from_spec({"image": "slide.ome.tif", "data": "cells.csv"})