diff --git a/notebooks/AGIPD/Chracterize_AGIPD_Gain_PC_NBC.ipynb b/notebooks/AGIPD/Chracterize_AGIPD_Gain_PC_NBC.ipynb index fa42a7ac209591b2a4f1adceab87f92e58c35ddc..b8e1f6ccd656c8b263a5c1da6e969f6da52860ec 100644 --- a/notebooks/AGIPD/Chracterize_AGIPD_Gain_PC_NBC.ipynb +++ b/notebooks/AGIPD/Chracterize_AGIPD_Gain_PC_NBC.ipynb @@ -36,11 +36,11 @@ }, "outputs": [], "source": [ - "in_folder = '/gpfs/exfel/exp/MID/201931/p900091/raw' # path to input data, required\n", + "in_folder = '/gpfs/exfel/exp/SPB/202030/p900138/raw/' # path to input data, required\n", "modules = [1,] # modules to work on, required, range allowed\n", - "out_folder = \"/gpfs/exfel/exp/MID/201931/p900091/usr/PC/4.5_250/\" # path to output to, required\n", - "runs = [30, 23, 24, 25, 26, 27, 28, 29] # runs to use, required, range allowed\n", - "n_sequences = 3 # number of sequence files, starting for 0 to evaluate\n", + "out_folder = \"/gpfs/exfel/data/scratch/ahmedk/test/pc\" # path to output to, required\n", + "runs = [466, 467, 468, 469, 470, 471, 472, 473] # runs to use, required, range allowed\n", + "n_sequences = 1 # number of sequence files, starting for 0 to evaluate\n", "cluster_profile = \"noDB\" # The ipcluster profile to use\n", "local_output = True # output constants locally\n", "db_output = False # output constants to database\n", @@ -50,13 +50,14 @@ "interlaced = False # assume interlaced data format, for data prior to Dec. 2017\n", "fit_hook = True # fit a hook function to medium gain slope\n", "rawversion = 2 # RAW file format version\n", - "instrument = \"MID\"\n", + "instrument = \"SPB\"\n", "high_res_badpix_3d = False # set this to True if you need high-resolution 3d bad pixel plots. Runtime: ~ 1h\n", "acq_rate = 0. # the detector acquisition rate, use 0 to try to auto-determine\n", "use_dir_creation_date = True\n", "creation_time = \"\" # To overwrite the measured creation_time. Required Format: YYYY-MM-DD HR:MN:SC.ms e.g. 2019-07-04 11:02:41.00\n", "gain_setting = 0.1 # gain setting can have value 0 or 1, Default=0.1 for no (None) gain-setting\n", - "karabo_da_control = \"AGIPD1MCTRL00\" # karabo DA for control infromation" + "karabo_da_control = \"AGIPD1MCTRL00\" # karabo DA for control infromation\n", + "h5path_ctrl = '/CONTROL/{}/MDL/FPGA_COMP_TEST' # path to control information" ] }, { @@ -124,9 +125,11 @@ "if instrument == \"SPB\":\n", " loc = \"SPB_DET_AGIPD1M-1\"\n", " dinstance = \"AGIPD1M1\"\n", + " karabo_id_control = \"SPB_IRU_AGIPD1M1\"\n", "else:\n", " loc = \"MID_DET_AGIPD1M-1\"\n", " dinstance = \"AGIPD1M2\"\n", + " karabo_id_control = \"MID_EXP_AGIPD1M1\"\n", "print(\"Detector in use is {}\".format(loc))" ] }, @@ -206,6 +209,9 @@ "source": [ "control_fname = f'{in_folder}/r{runs[0]:04d}/RAW-R{runs[0]:04d}-{karabo_da_control}-S00000.h5'\n", "\n", + "if \"{\" in h5path_ctrl:\n", + " h5path_ctrl = h5path_ctrl.format(karabo_id_control)\n", + "\n", "if gain_setting == 0.1:\n", " if creation_time.replace(tzinfo=None) < dateutil.parser.parse('2020-01-31'):\n", " print(\"Set gain-setting to None for runs taken before 2020-01-31\")\n",