"README.md" did not exist on "1e28aa2dfd69fa079a15edadd4246dd2da83819f"
Newer
Older
# 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,
},
}