ManagePlume module
- ManagePlume.pack_to_hdf5(file_path, file_name)
This function will read the images in folders(plumes) under “ds_path/BMP/<target_name>” and convert them into a hdf5 file with following data struction:
- file_name:ds_path.h5
- group: PLD_Plumes
dataset: target_name(SrRuO3) = n_videos*n_frames*H*W (np.float32)
- Parameters
file_path (str) – the path of PLD plume directory
file_name (str) – the name of the hdf5 file
- ManagePlume.pack_to_hdf5_and_upload(file_path, file_name, growth_para)
This is a function used to pack a folder of PLD plume and upload to DataFed server with recorded growth condition
- Parameters
file_path (str) – the path of PLD plume directory
file_name (str) – the name of the hdf5 file
growth_para (dict) – recorded pld growth condition
- ManagePlume.remove_desktop_ini(path)
This function is designed to remove “desktop.ini” file in 4 sub-directories under given path
- Parameters
path (str) – the path of target directory
- ManagePlume.upload_to_datafed(file_path, file_name, growth_para, dataset_id='c/391937642')
This function will upload a hdf5 file to DataFed server with specified “dataset_id” An Globus Endpoint is required to set up in local server before use this funciton
- Parameters
file_path (str) – the path of PLD plume directory
file_name (str) – the name of the hdf5 file
growth_para (dict) – recorded pld growth condition
dataset_id (str) – DataFed dataset id for uploading