Skip to content
Snippets Groups Projects
Commit 42911ace authored by root's avatar root
Browse files

Create beamline params model

parent a6b6bc94
No related branches found
No related tags found
No related merge requests found
# Python imports
from uuid import uuid4
# Third-party imports
from neomodel import StructuredNode, StringProperty, IntegerProperty, UniqueIdProperty, RelationshipTo
class BeamlineParams(StructuredNode):
"""
Defines node properties and relationships
Provides data serializer
"""
# Properties
uuid=StringProperty(unique_index=True, default=uuid4)
@property
def serialize(self):
"""
Serializer for node properties
"""
return {
'BeamlineParams_node_properties': {
'uuid': self.uuid,
},
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment