[NodeType] move to file_handler
This commit is contained in:
parent
84f4fd96e6
commit
be0f5a0de4
@ -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):
|
||||
|
@ -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():
|
||||
|
Loading…
Reference in New Issue
Block a user