From: Jose M. de la R. T. <del...@gm...> - 2018-03-09 10:40:25
|
Hi Kyle, Unfortunately we haven't documented the API that well...this is a pending task. Nonetheless you have some developers documentation here: https://github.com/I2PC/scipion/wiki/Developers-Page I would recommend to take a look at the "How to create a protocol page": https://github.com/I2PC/scipion/wiki/Creating-a-Protocol I will recommend to look at the Python code, specially the following: - Object (basic wrapper around Python types that can be stored/retrieved), pyworkflow/object.py - Protocol (basic execution unit:Manager (to deal we projects): pyworkflow/protocol/protocol.py - Project (managing a given project) pyworkflow/project.py - Manager: pyworkflow/manager.py Feel free to provide any feedback, Best, Jose Miguel On Fri, Mar 9, 2018 at 11:15 AM, Kyle Douglass <kyl...@ep...> wrote: > Hi Jose Miguel, > > On 03/09/2018 09:23 AM, Jose Miguel de la Rosa Trevin wrote: > > You can easily do what you want in a Python script via our API. > Basically you will need to create a new project and then load the > given .json file. Take a look at the following example here: > > https://github.com/delarosatrevin/scipion-session/blob/f2ac1934f24ebcf0c3da205e9878eca86e4d80a4/aarhus/new-session-aarhus.py#L60 > > > > Thanks for the swift response! Indeed, I think that this is the solution I > am looking for. > > Is the Python API documented anywhere, or should I focus on extracting the > main functions by looking at the Python code itself? > > Thanks again, > > Kyle > > -- > Kyle M. Douglass, PhD > Post-doctoral researcher > The Laboratory of Experimental Biophysics > EPFL, Lausanne, Switzerlandhttp://kmdouglass.github.iohttp://leb.epfl.ch > > |