diff --git a/notebooks/LPD/LPD_Correct_and_Verify.ipynb b/notebooks/LPD/LPD_Correct_and_Verify.ipynb index c16e06052a5f4a46962ca7f3275c4d91d891be76..229ac6d80b585b7011dc4cb3dad76952aa3d53a3 100644 --- a/notebooks/LPD/LPD_Correct_and_Verify.ipynb +++ b/notebooks/LPD/LPD_Correct_and_Verify.ipynb @@ -16,21 +16,20 @@ "ExecuteTime": { "end_time": "2018-12-03T15:19:56.056417Z", "start_time": "2018-12-03T15:19:56.003012Z" - }, - "collapsed": false + } }, "outputs": [], "source": [ - "in_folder = \"/gpfs/exfel/exp/FXE/201930/p900063/raw/\" # the folder to read data from, required\n", - "run = 718 # runs to process, required\n", - "out_folder = \"/gpfs/exfel/data/user/xcal/test/\" # the folder to output to, required\n", + "in_folder = \"/gpfs/exfel/exp/FXE/201931/p900088/raw/\" # the folder to read data from, required\n", + "run = 115 # runs to process, required\n", + "out_folder = \"/gpfs/exfel/exp/FXE/201931/p900088/proc/\" # the folder to output to, required\n", "calfile = \"/gpfs/exfel/data/scratch/xcal/lpd_store_0519.h5\" # path to constants extracted from the db into a file\n", "sequences = [-1] # sequences to correct, set to -1 for all, range allowed\n", "mem_cells = 512 # memory cells in data\n", "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\" # cluster profile to use\n", + "cluster_profile = \"noDB33\" # 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", @@ -77,8 +76,7 @@ "ExecuteTime": { "end_time": "2018-12-03T15:19:56.990566Z", "start_time": "2018-12-03T15:19:56.058378Z" - }, - "collapsed": false + } }, "outputs": [], "source": [ @@ -167,8 +165,7 @@ "ExecuteTime": { "end_time": "2018-12-03T15:19:57.022260Z", "start_time": "2018-12-03T15:19:56.993051Z" - }, - "collapsed": true + } }, "outputs": [], "source": [ @@ -233,8 +230,7 @@ "metadata": { "ExecuteTime": { "start_time": "2018-12-03T14:19:56.008Z" - }, - "collapsed": false + } }, "outputs": [], "source": [ @@ -267,7 +263,6 @@ "ExecuteTime": { "start_time": "2018-12-03T14:19:56.022Z" }, - "collapsed": false, "scrolled": false }, "outputs": [], @@ -438,9 +433,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "collapsed": true - }, + "metadata": {}, "outputs": [], "source": [ "\n", @@ -457,8 +450,7 @@ "ExecuteTime": { "end_time": "2018-11-13T18:24:45.916913Z", "start_time": "2018-11-13T18:24:45.876328Z" - }, - "collapsed": true + } }, "outputs": [], "source": [ @@ -503,8 +495,7 @@ "ExecuteTime": { "end_time": "2018-11-13T18:24:46.492372Z", "start_time": "2018-11-13T18:24:45.918989Z" - }, - "collapsed": true + } }, "outputs": [], "source": [ @@ -518,8 +509,7 @@ "ExecuteTime": { "end_time": "2018-11-13T18:24:47.333958Z", "start_time": "2018-11-13T18:24:46.494328Z" - }, - "collapsed": true + } }, "outputs": [], "source": [ @@ -555,7 +545,6 @@ "end_time": "2018-11-13T18:24:50.231071Z", "start_time": "2018-11-13T18:24:47.336256Z" }, - "collapsed": true, "scrolled": false }, "outputs": [], @@ -582,8 +571,7 @@ "ExecuteTime": { "end_time": "2018-11-13T18:24:50.262681Z", "start_time": "2018-11-13T18:24:50.232596Z" - }, - "collapsed": true + } }, "outputs": [], "source": [ @@ -593,7 +581,7 @@ "d_quads = [(-19+dc[0],-300+dc[1]),(10+dc[0],-9+dc[1]),(-256+dc[0],19+dc[1]),(-285+dc[0],-271+dc[1])] # MAY 2019\n", "\n", "import cal_tools.metrology as metro\n", - "in_files = \"{}/CORR*S{:05d}*.h5\".format(out_folder, sequences[0] if sequences else 0)\n", + "in_files = \"{}/CORR*LPD*S{:05d}*.h5\".format(out_folder, sequences[1] if sequences else 1)\n", "datapath = \"INSTRUMENT/FXE_DET_LPD1M-1/DET/{}CH0:xtdf/image/data\"\n", "print(\"Preview is from {}\".format(in_files))" ] @@ -605,14 +593,13 @@ "ExecuteTime": { "end_time": "2018-11-13T18:24:56.978596Z", "start_time": "2018-11-13T18:24:50.264208Z" - }, - "collapsed": true + } }, "outputs": [], "source": [ - "posarr = metro.positionFileList(in_files, datapath, geometry_file, d_quads, nImages = 100)\n", + "posarr = metro.positionFileList(in_files, datapath, geometry_file, d_quads, nImages = 10)\n", "datapath = \"INSTRUMENT/FXE_DET_LPD1M-1/DET/{}CH0:xtdf/image/mask\"\n", - "maskedarr = metro.positionFileList(in_files, datapath, geometry_file, d_quads, nImages = 100)" + "maskedarr = metro.positionFileList(in_files, datapath, geometry_file, d_quads, nImages = 10)" ] }, { @@ -622,8 +609,7 @@ "ExecuteTime": { "end_time": "2018-11-13T18:24:56.993294Z", "start_time": "2018-11-13T18:24:56.980809Z" - }, - "collapsed": true + } }, "outputs": [], "source": [ @@ -667,8 +653,7 @@ "ExecuteTime": { "end_time": "2018-11-13T18:24:57.547563Z", "start_time": "2018-11-13T18:24:56.995005Z" - }, - "collapsed": true + } }, "outputs": [], "source": [ @@ -696,8 +681,7 @@ "ExecuteTime": { "end_time": "2018-11-13T18:24:58.153478Z", "start_time": "2018-11-13T18:24:57.549066Z" - }, - "collapsed": true + } }, "outputs": [], "source": [ @@ -725,8 +709,7 @@ "ExecuteTime": { "end_time": "2018-11-13T18:25:00.603572Z", "start_time": "2018-11-13T18:24:58.154841Z" - }, - "collapsed": true + } }, "outputs": [], "source": [ @@ -765,8 +748,7 @@ "ExecuteTime": { "end_time": "2018-11-13T18:25:00.790606Z", "start_time": "2018-11-13T18:25:00.606916Z" - }, - "collapsed": true + } }, "outputs": [], "source": [ @@ -782,8 +764,7 @@ "ExecuteTime": { "end_time": "2018-11-13T18:25:01.566874Z", "start_time": "2018-11-13T18:25:00.792606Z" - }, - "collapsed": true + } }, "outputs": [], "source": [ @@ -817,8 +798,7 @@ "ExecuteTime": { "end_time": "2018-11-13T18:25:03.090854Z", "start_time": "2018-11-13T18:25:01.568376Z" - }, - "collapsed": true + } }, "outputs": [], "source": [ @@ -833,8 +813,7 @@ "ExecuteTime": { "end_time": "2018-11-13T18:25:03.625885Z", "start_time": "2018-11-13T18:25:03.092923Z" - }, - "collapsed": true + } }, "outputs": [], "source": [ @@ -849,18 +828,14 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "collapsed": true - }, + "metadata": {}, "outputs": [], "source": [] }, { "cell_type": "code", "execution_count": null, - "metadata": { - "collapsed": true - }, + "metadata": {}, "outputs": [], "source": [] } @@ -881,7 +856,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.6.6" + "version": "3.6.7" } }, "nbformat": 4, diff --git a/webservice/request_darks.py b/webservice/request_darks.py index b3d39c2f92686baa7e90901b5ba8f828b1c8f66b..27f5e485e8cb31379b16f13e32ec16bd67f6932d 100644 --- a/webservice/request_darks.py +++ b/webservice/request_darks.py @@ -57,4 +57,3 @@ while True: r = " | ".join(r) print(r + "\r", end=' ', flush=True) sleep(10) - break