Removed problematic lines, which depended on soon to be removed dependency config_file.py

This commit is contained in:
2024-04-24 17:14:13 +02:00
parent 6260e7da3c
commit be02ad01ed

View File

@ -556,21 +556,21 @@ def create_hdf5_file_from_dataframe(ofilename, input_data, approach : str, group
#return 0
def main():
#def main():
inputfile_dir = config_file.inputfile_dir #'\\\\fs03\\Iron_Sulphate'
select_dir_keywords = config_file.select_dir_keywords #['gas','smps\\20220726','htof\\2022.07.26','ptr\\2022.07.26','ams\\2022.07.26']
select_file_keywords = config_file.select_file_keywords #['20220726','2022.07.26']
# inputfile_dir = config_file.inputfile_dir #'\\\\fs03\\Iron_Sulphate'
# select_dir_keywords = config_file.select_dir_keywords #['gas','smps\\20220726','htof\\2022.07.26','ptr\\2022.07.26','ams\\2022.07.26']
# select_file_keywords = config_file.select_file_keywords #['20220726','2022.07.26']
output_filename_path = os.path.join(config_file.outputfile_dir,config_file.output_filename)
if not os.path.exists(output_filename_path):
create_hdf5_file_from_filesystem_path(output_filename_path,inputfile_dir,select_dir_keywords,select_file_keywords)
# output_filename_path = os.path.join(config_file.outputfile_dir,config_file.output_filename)
# if not os.path.exists(output_filename_path):
# create_hdf5_file_from_filesystem_path(output_filename_path,inputfile_dir,select_dir_keywords,select_file_keywords)
# hdf5_vis.display_group_hierarchy_on_a_treemap(output_filename_path)
output_yml_filename_path = hdf5_vis.take_yml_snapshot_of_hdf5_file(output_filename_path)
# # hdf5_vis.display_group_hierarchy_on_a_treemap(output_filename_path)
# output_yml_filename_path = hdf5_vis.take_yml_snapshot_of_hdf5_file(output_filename_path)
return output_filename_path, output_yml_filename_path
# return output_filename_path, output_yml_filename_path
def main_mtable_h5_from_dataframe():
@ -600,7 +600,7 @@ def main_mtable_h5_from_dataframe():
group_by_type = 'filetype'
group_by_filenumber = 'filenumber'
output_filename_path = os.path.join(config_file.outputfile_dir,'thorsten_file_list.h5')
output_filename_path = os.path.join('output_files','thorsten_file_list.h5')
create_hdf5_file_from_dataframe(output_filename_path,input_data_df, 'top-down', group_by_funcs = [group_by_sample, group_by_type])
#create_hdf5_file_from_dataframe('test.h5',input_data_df, 'top-down', group_by_funcs = [group_by_sample, group_by_type, group_by_filenumber])
@ -618,8 +618,8 @@ def main_mtable_h5_from_dataframe():
if __name__ == '__main__':
main()
#main_mtable_h5_from_dataframe()
#main()
main_mtable_h5_from_dataframe()
#main_5505()
print(':)')