Creating a new Leginon node » History » Revision 5
« Previous |
Revision 5/29
(diff)
| Next »
Jim Pulokas, 08/28/2013 01:43 PM
Creating a new Leginon node¶
The basic steps that will be described in detail below are:
- Define new classes of data and events that will be created or communicated to other nodes
- Code the core functionality
- Give it a user interface
- register it with the list of available nodes
For each task, it is easiest to look at an existing node as an example. Usually we just make a copy of a node the is similar in function and go from there.
Define new data classes¶
If your new node will be generating and new kind of data that you wish to store in the database or pass to other nodes, you should define the new class in leginondata.py. Sometimes it is easiest to create a subclass of some existing data class and only add new fields to it. Also add any new class of events to event.py.
Code the core functionality¶
...
Create the user interface¶
...
Register the node¶
...
back to Leginon Developer Guide
Updated by Jim Pulokas about 11 years ago · 5 revisions