diff --git a/notebooks/LPD/LPD_Correct_and_Verify.ipynb b/notebooks/LPD/LPD_Correct_and_Verify.ipynb index 0d19a0a89aaebf2d0b1f66177db91308e7f23c67..c16e06052a5f4a46962ca7f3275c4d91d891be76 100644 --- a/notebooks/LPD/LPD_Correct_and_Verify.ipynb +++ b/notebooks/LPD/LPD_Correct_and_Verify.ipynb @@ -30,16 +30,16 @@ "overwrite = True # set to True if existing data should be overwritten\n", "no_relative_gain = False # do not do relative gain correction\n", "no_flat_fields = False # do not do flat field correction\n", - "cluster_profile = \"noDB\"\n", - "max_pulses = 512\n", - "use_dir_creation_date = True\n", - "no_non_linear_corrections = False\n", + "cluster_profile = \"noDB\" # cluster profile to use\n", + "max_pulses = 512 # maximum number of pulses per train\n", + "use_now_as_creation_date = False # do not use dir creation data, but now\n", + "no_non_linear_corrections = False # do not apply non-linear corrections\n", "\n", - "max_cells_db = 512\n", - "rawversion = 2\n", - "instrument = \"FXE\"\n", - "capacitor = '5pF'\n", - "photon_energy = 9.2\n", + "max_cells_db = 512 # maximum cells for data from the database\n", + "rawversion = 2 # raw format version\n", + "instrument = \"FXE\" # the instrument\n", + "capacitor = '5pF' # capacitor setting: 5pF or 50pF\n", + "photon_energy = 9.2 # the photon energy in keV\n", "\n", "nodb = False # set to true if db input is to be avoided\n", "bias_voltage = 250 # detector bias voltage\n", @@ -47,7 +47,7 @@ "geometry_file = \"/gpfs/exfel/d/cal/exchange/lpdMF_00.h5\" # the geometry file to use, MAR 2018\n", "beam_center_offset = [1.5, 1] # offset from the beam center, MAR 2018\n", "sequences_per_node = 1 # sequence files to process per node\n", - "timeout_cal_db = 30000 # timeout for calibration db requests in milli seconds\n", + "timeout_cal_db = 30000 # timeout for calibration db requests in milliseconds\n", "\n", "def balance_sequences(in_folder, run, sequences, sequences_per_node):\n", " import glob\n", @@ -127,6 +127,8 @@ "gains = np.arange(3)\n", "cells = np.arange(max_cells)\n", "\n", + "use_dir_creation_date = not use_now_as_creation_date\n", + "\n", "QUADRANTS = 4\n", "MODULES_PER_QUAD = 4\n", "DET_FILE_INSET = \"LPD\"\n", @@ -142,9 +144,6 @@ " raise AttributeError(\"Output path exists! Exiting\")\n", "\n", "creation_time = None\n", - "#import dateutil.parser\n", - "#creation_time = dateutil.parser.parse('2018-05-01')\n", - "#creation_time = datetime.datetime(\"2018-05-30\")\n", "if use_dir_creation_date:\n", " creation_time = get_dir_creation_date(in_folder, run) \n", "else:\n", @@ -347,7 +346,6 @@ " return\n", " if not nodb:\n", " when = lpd_corr.initialize_from_db(dbparms, qm, only_dark=(fileparms != \"\"))\n", - " print(when)\n", " if fileparms != \"\":\n", " lpd_corr.initialize_from_file(fileparms, qm, with_dark=nodb)\n", " print(\"Initialized constants\")\n",