Removed non utilized code.

This commit is contained in:
2024-07-08 15:29:13 +02:00
parent cb7d914908
commit afc6c93823

View File

@ -153,13 +153,6 @@ def is_nested_hierarchy(df) -> bool:
return all([are_nested(df_tmp,'level_'+str(i)+'_groups','level_'+str(i+1)+'_groups') for i in range(len(df_tmp.columns)-1)])
def get_attr_names(input_data):
# TODO: extend this to file-system paths
if not isinstance(input_data,pd.DataFrame):
raise ValueError("input_data must be a pd.DataFrame")
return input_data.columns
def get_parent_child_relationships(file: h5py.File):
@ -206,19 +199,6 @@ def get_groups_at_a_level(file: h5py.File, level: str):
#file.visititems()
return groups
def format_group_names(names: list):
formated_names = []
for name in names:
idx = name.rfind('/')
if len(name) > 1:
formated_names.append(name[idx+1::])
else:
formated_names.append(name)
return pd.DataFrame(formated_names,columns=['formated_names'],index=names)
def annotate_root_dir(filename,annotation_dict: dict):
with h5py.File(filename,'r+') as file: