Cleaned up import statements and comment out path append operations

This commit is contained in:
2024-10-10 14:27:50 +02:00
parent 5b338c8212
commit 51e8e6ae66
5 changed files with 22 additions and 24 deletions

View File

@@ -1,11 +1,14 @@
import os
import sys
import json
#root_dir = os.path.abspath(os.curdir)
#sys.path.append(root_dir)
#print(__file__)
import json
import dima.utils.g5505_utils as utils
#from instruments.readers import set_dima_path as configpath
#configpath.set_dima_path()
from utils import g5505_utils
def read_jsonflag_as_dict(path_to_file):
@@ -27,7 +30,7 @@ def read_jsonflag_as_dict(path_to_file):
dataset = {}
dataset['name'] = 'data_table'#_numerical_variables'
dataset['data'] = utils.convert_attrdict_to_np_structured_array(flag) #df_numerical_attrs.to_numpy()
dataset['data'] = g5505_utils.convert_attrdict_to_np_structured_array(flag) #df_numerical_attrs.to_numpy()
dataset['shape'] = dataset['data'].shape
dataset['dtype'] = type(dataset['data'])