[NodeType] move to file_handler

This commit is contained in:
Jan Grewe 2020-12-30 17:31:21 +01:00
parent 84f4fd96e6
commit be0f5a0de4
2 changed files with 15 additions and 9 deletions

View File

@ -1,6 +1,6 @@
import os
import nixio as nix
from nixio.pycore.util.util import check_entity_type
from enum import Enum
class ItemDescriptor():
@ -15,6 +15,19 @@ class ItemDescriptor():
self.entity_type = entity_type
class NodeType(Enum):
Root = "root"
Section = "section"
Block = "block"
DataArray = "data_array"
DataFrame = "data_frame"
Property = "property"
Dimension = "dimension"
Source = "source"
Tag = "tag"
MultiTag = "multi_tag"
class Singleton(type):
_instances = {}
def __call__(cls, *args, **kwargs):

View File

@ -7,14 +7,7 @@ from IPython import embed
column_names = ['Name', 'Type', 'ID', 'Value', 'Description']
class NodeType(Enum):
Root = "root"
Section = "section"
Block = "block"
DataArray = "data_array"
Property = "property"
Dimension = "dimension"
Tag = "tag"
class NixTreeItem():