Improved comments
This commit is contained in:
@ -12,7 +12,9 @@
|
|||||||
"# define input file directory\n",
|
"# define input file directory\n",
|
||||||
"\n",
|
"\n",
|
||||||
"input_file_path = './input_files\\\\BeamTimeMetaData.h5'\n",
|
"input_file_path = './input_files\\\\BeamTimeMetaData.h5'\n",
|
||||||
"output_dir_path = './output_files'"
|
"output_dir_path = './output_files'\n",
|
||||||
|
"if not os.path.exists(output_dir_path):\n",
|
||||||
|
" os.makedirs(output_dir_path)"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -74,7 +76,9 @@
|
|||||||
"\n",
|
"\n",
|
||||||
"output_filename = 'test.h5'\n",
|
"output_filename = 'test.h5'\n",
|
||||||
"\n",
|
"\n",
|
||||||
"h5lib.create_hdf5_file(os.path.join(output_dir_path,output_filename),\n",
|
"ofilepath = os.path.join(output_dir_path,output_filename)\n",
|
||||||
|
"\n",
|
||||||
|
"h5lib.create_hdf5_file(ofilepath,\n",
|
||||||
" input_data_df, 'top-down', \n",
|
" input_data_df, 'top-down', \n",
|
||||||
" group_by_funcs = [group_by_sample, group_by_type, group_by_filenumber]\n",
|
" group_by_funcs = [group_by_sample, group_by_type, group_by_filenumber]\n",
|
||||||
" )\n",
|
" )\n",
|
||||||
@ -84,9 +88,9 @@
|
|||||||
" 'Startdate': str(input_data_df['lastModifiedDatestr'].min()),\n",
|
" 'Startdate': str(input_data_df['lastModifiedDatestr'].min()),\n",
|
||||||
" 'Enddate': str(input_data_df['lastModifiedDatestr'].max())\n",
|
" 'Enddate': str(input_data_df['lastModifiedDatestr'].max())\n",
|
||||||
" }\n",
|
" }\n",
|
||||||
"h5lib.annotate_root_dir('test.h5',annotation_dict)\n",
|
"h5lib.annotate_root_dir(ofilepath,annotation_dict)\n",
|
||||||
"\n",
|
"\n",
|
||||||
"h5lib.display_group_hierarchy_on_a_treemap('test.h5')\n",
|
"h5lib.display_group_hierarchy_on_a_treemap(ofilepath)\n",
|
||||||
"\n",
|
"\n",
|
||||||
"print(':)')\n"
|
"print(':)')\n"
|
||||||
]
|
]
|
||||||
|
Reference in New Issue
Block a user