From be0f5a0de44971e3388f1602a8b9834240dbaead Mon Sep 17 00:00:00 2001
From: Jan Grewe <jan.grewe@g-node.org>
Date: Wed, 30 Dec 2020 17:31:21 +0100
Subject: [PATCH] [NodeType] move to file_handler

---
 file_handler.py | 15 ++++++++++++++-
 tree_model.py   |  9 +--------
 2 files changed, 15 insertions(+), 9 deletions(-)

diff --git a/file_handler.py b/file_handler.py
index b54876d..ff88b1e 100644
--- a/file_handler.py
+++ b/file_handler.py
@@ -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):
diff --git a/tree_model.py b/tree_model.py
index b6543a5..ed42754 100644
--- a/tree_model.py
+++ b/tree_model.py
@@ -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():