<jupyter_start><jupyter_text>First TutorialConverting all the images in a h5 file and saving them in a folder<jupyter_code>#import package

from h5tiff.h5tiff import *
import flammkuchen as fl
master_folder = r"/mnt/data/testing/2021_09_30_f0_line_52.h5"
save_name = "test"
mode = "LFM"
save_folder = "subfolder"   # or -> "Path("/my/path")"
file = H5File(master_folder,save_name,mode, save_folder)
print(  file.metadata.keys(), "\n",
        file.mode, "\n",
        file.path, "\n",
        file.save_name, "\n",
        file.save_folder)
file.convert()

a = fl.load(master_folder)
a['metadata']
from tqdm import tqdm<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.13559322033898305, 'fraction_numerical': 0.02465331278890601, 'mean_word_length': 4.371900826446281, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '60084', 'license': 'MIT', 'n_tokens_mistral': 257, 'n_tokens_neox': 249, 'n_words': 54, 'path': 'notebooks/001_h5_to_single_tiff.ipynb', 'repo_name': 'fedem-p/h5_tiff_converter', 'size': '649'}