diff --git a/notebooks/LPD/LPD_Correct_Fast.ipynb b/notebooks/LPD/LPD_Correct_Fast.ipynb index bbd74430163ba8ffcd5fb016f49beee4d75685d3..6c6990439238b4c07a9aeef400843380a090afed 100644 --- a/notebooks/LPD/LPD_Correct_Fast.ipynb +++ b/notebooks/LPD/LPD_Correct_Fast.ipynb @@ -55,8 +55,9 @@ "\n", "# Output options\n", "overwrite = True # set to True if existing data should be overwritten\n", - "chunks_data = 32 # HDF chunk size for pixel data in number of frames.\n", + "chunks_data = 1 # HDF chunk size for pixel data in number of frames.\n", "chunks_ids = 32 # HDF chunk size for cellId and pulseId datasets.\n", + "create_virtual_cxi_in = '' # Folder to create virtual CXI files in (for each job's chunk)\n", "\n", "# Parallelization options\n", "sequences_per_node = 1 # Sequence files to process per node\n", @@ -589,6 +590,31 @@ "cb.set_ticks([0, 1, 2])\n", "cb.set_ticklabels(['High gain', 'Medium gain', 'Low gain'])" ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Create virtual CXI file" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "if create_virtual_cxi_in:\n", + " vcxi_folder = Path(create_virtual_cxi_in)\n", + " vcxi_folder.mkdir(parents=True, exist_ok=True)\n", + " \n", + " if not sequences or sequences == [-1]:\n", + " seqs = 'all'\n", + " else:\n", + " seqs = '_'.join(str(s) for s in sequences)\n", + " \n", + " det.write_virtual_cxi(vcxi_folder / f'r{run}_seqs_{seqs}.cxi')" + ] } ], "metadata": {