Files
cristallina/acquisition/SF_acquisition03.ipynb

1095 lines
53 KiB
Plaintext

{
"cells": [
{
"cell_type": "markdown",
"id": "f9a10a1f-7bdf-4940-8e58-dad92d8babea",
"metadata": {},
"source": [
"# Intro\n",
"\n",
"This notebook currently runs at http://saresc-cons-02.psi.ch:8888/lab/tree/RTC%3Aslic/cristallina/acquisition/SF_acquisition03.ipynb. It can be accessed from each Cristallina console using this exact link (password is cristallina). In case something does not work the server can be shutdown via the File menu or CTRL+C in the console window. It can then be restarted using `start_local_jupyter` in the `/sf/cristallina/applications` directory.\n",
"\n",
"Parallel editing now works similar to a Google Docs document thanks to a Jupyter extension (only tested a bit so far).\n",
"\n",
"This might be the start for a template that each experiment receives in the beginning to perform acquisitions.\n",
"\n",
"The stand server accompagnying this experiment is running at http://saresc-vcons-02.psi.ch:8501\n"
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "e03fa003-fac5-44f7-b42f-2b718f6b966a",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\u001b]0;⊚slic\u0007"
]
}
],
"source": [
"from slic.core.adjustable import Adjustable, PVAdjustable, DummyAdjustable\n",
"from slic.core.scanner import Scanner\n",
"from slic.core.acquisition import BSAcquisition, PVAcquisition, SFAcquisition\n",
"\n",
"from devices.diffractometer import diffractometer"
]
},
{
"cell_type": "markdown",
"id": "e7d392c4-cc82-4dea-b07a-01e712d0e4f7",
"metadata": {
"jp-MarkdownHeadingCollapsed": true
},
"source": [
"# Setup slic\n",
"We run our `cristallina.py` to setup the complete acquisition environment:"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "cbd7faac-ff24-4e99-bb00-3536d868663f",
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"2023-11-06 at 17:40:43 | INFO | Loading started.\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"could not set up DBusNotify: org.freedesktop.DBus.Error.AccessDenied: Failed to connect to socket /run/user/43883/bus: Permission denied\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"2023-11-06 at 17:40:45 | INFO | Connected to stand server\n",
"2023-11-06 at 17:40:46 | INFO | Using undulator (Aramis) offset to PSSS energy of -62 eV.\n",
"2023-11-06 at 17:40:47 | WARNING | Cannot write log file to pgroup p19150.\n",
"2023-11-06 at 17:40:47 | INFO | Running at cristallina with pgroup p19150.\n",
"2023-11-06 at 17:40:47 | INFO | Loading finished.\n"
]
}
],
"source": [
"%run /sf/cristallina/applications/slic/cristallina/cristallina.py\n"
]
},
{
"cell_type": "code",
"execution_count": 5,
"id": "770b113c-9acb-4e58-98bb-b2511287cd44",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"diffractometer:\n",
"---------------\n",
"td: 129.81409500000018 mm\n",
"theta: 0.0004315278828144198°\n",
"tr_x: 13.019455000000107 mm\n",
"tr_y: -19.013439999999946 mm\n",
"trx_base: 21.773304999999937 mm\n",
"try_base: 0.04304476804733426 mm\n",
"twotheta: 80.65199162811041°"
]
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"diffractometer"
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "1dae028f-116d-42ea-aead-298be9f01de3",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"dummy at: 0\n"
]
}
],
"source": [
"# setup dummy axis for testing\n",
"dummy = DummyAdjustable()\n",
"print(f\"dummy at: {dummy.get_current_value()}\")"
]
},
{
"cell_type": "code",
"execution_count": 7,
"id": "7396532a-dd7b-4acf-8aa9-c12662405d00",
"metadata": {},
"outputs": [],
"source": [
"bs_example_channels = [\n",
" \"SARFE10-PBPG050:PHOTON-ENERGY-PER-PULSE-AVG\",\n",
" \"SARFE10-PBIG050-EVR0:CALCI\",\n",
" \"SARES30-CAMS156-XE:x_fit_amplitude\",\n",
"] # \"SARES30-CAMS156-XE:FPICTURE\"]"
]
},
{
"cell_type": "markdown",
"id": "e16c139f-3422-41fc-8557-5cbe39115535",
"metadata": {
"jp-MarkdownHeadingCollapsed": true
},
"source": [
"# SFAcquisition example\n",
"\n",
"To acquire data including the Jungfrau detector we have to go through the SF-DAQ pipeline. \n",
"This requires an existing `pgroup`. The `default_data_base_dir` cannot be used to specify arbitrary directories as a target, instead the data is located in `/sf/<instrument>/data/<pgroup>/raw/run<XXXX>/data/acq<YYYY>.*.h5`.\n",
"\n",
"We also setup the `spreadsheet` to be submitted to stand to record all the run information:"
]
},
{
"cell_type": "code",
"execution_count": 4,
"id": "3d465878-2118-4dea-a24a-219ff4252d88",
"metadata": {},
"outputs": [],
"source": [
"# TODO: requires the stand client, need small howto how to start and configure or let it run all the time\n",
"from slic.core.acquisition.spreadsheet import Spreadsheet"
]
},
{
"cell_type": "code",
"execution_count": 7,
"id": "c4f812f4-b6fa-463f-a367-121e139b972b",
"metadata": {},
"outputs": [],
"source": [
"# setup spreadsheet for transmission to stand\n",
"spreadsheet = Spreadsheet(\n",
" {\n",
" \"TD\": diffractometer.td,\n",
" \"TRX\": diffractometer.tr_x,\n",
" \"TRY\": diffractometer.tr_y,\n",
" \"TRXBASE\": diffractometer.trx_base,\n",
" \"TRYBASE\": diffractometer.try_base,\n",
" \"THETA\": diffractometer.theta,\n",
" \"TWOTHETA\": diffractometer.twotheta,\n",
" },\n",
" placeholders=(\"comment\", \"sample\"),\n",
" host=\"saresc-vcons-02.psi.ch\",\n",
" port=9090,\n",
")"
]
},
{
"cell_type": "code",
"execution_count": 15,
"id": "026350d2-a6bf-4b02-abcc-f560b22bbdfb",
"metadata": {},
"outputs": [],
"source": [
"# spreadsheet.client.add_row(a=2, b=3, c=4)\n",
"# spreadsheet.client.clear() # delete stand table completely"
]
},
{
"cell_type": "code",
"execution_count": 55,
"id": "8232a299-dc8d-40aa-89d6-e493dac53382",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"diffractometer:\n",
"---------------\n",
"td: 103.19394499999999 mm\n",
"theta: 11.660351939067244°\n",
"tr_x: 0.0 mm\n",
"tr_y: -9.00136499999985 mm\n",
"trx_base: 21.89786499999991 mm\n",
"try_base: 0.04305062122344694 mm\n",
"twotheta: 84.31427503935993°"
]
},
"execution_count": 55,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# show current diffractometer status\n",
"diffractometer"
]
},
{
"cell_type": "markdown",
"id": "9230715c-0380-4c7e-8933-7f121e896a47",
"metadata": {},
"source": [
"## Single acquisition example\n",
"\n",
"We setup a single acquisition as part of a run. Again, this requires an existing pgroup."
]
},
{
"cell_type": "code",
"execution_count": 16,
"id": "7bfec936-8986-4470-9262-a7c89719fd32",
"metadata": {
"scrolled": true
},
"outputs": [],
"source": [
"# setup acquisition\n",
"acq = SFAcquisition(\n",
" \"cristallina\",\n",
" \"p19150\", # \"p21563\",\n",
" default_channels=bs_channels,\n",
" default_pvs=pvs,\n",
" spreadsheet=spreadsheet,\n",
" default_detectors=detectors,\n",
" rate_multiplicator=1,\n",
")"
]
},
{
"cell_type": "markdown",
"id": "99afcda6-a20b-41ac-90f8-eb05b2be8645",
"metadata": {},
"source": [
"And run the acquisition:"
]
},
{
"cell_type": "code",
"execution_count": 13,
"id": "479c0685-0e81-4fd5-ba89-ff5aa88e5c3d",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Advanced run number to 209.\n",
"No detectors specified, using default detector list.\n",
"No PVs specified, using default PV list.\n",
"No channels specified, using default channel list.\n",
"\u001b[31m\u001b[1mOffline Channels:\n",
"-----------------\n",
"- SARES30-CAMS156-XE:intensity\n",
"- SAROP31-PBPS149:INTENSITY\n",
"- SAROP31-PBPS149:INTENSITY_UJ\n",
"- SAROP31-PBPS149:XPOS\n",
"- SAROP31-PBPS149:YPOS\n",
"\u001b[39m\n",
" run_number time topic sample comment ... TRY TRXBASE TRYBASE THETA TWOTHETA\n",
"0 1.0 Mon Sep 25 21:28:03 2023 Beamline commissioning -- ... NaN NaN NaN NaN NaN\n",
"1 2.0 Mon Sep 25 22:06:09 2023 Beamline commissioning -- ... NaN NaN NaN NaN NaN\n",
"2 3.0 Mon Sep 25 22:59:50 2023 Beamline commissioning -- Smaract movement test ... NaN NaN NaN NaN NaN\n",
"3 3.0 Mon Sep 25 22:59:52 2023 Beamline commissioning -- Smaract movement test ... NaN NaN NaN NaN NaN\n",
"4 3.0 Mon Sep 25 22:59:53 2023 Beamline commissioning -- Smaract movement test ... NaN NaN NaN NaN NaN\n",
"5 3.0 Mon Sep 25 22:59:54 2023 Beamline commissioning -- Smaract movement test ... NaN NaN NaN NaN NaN\n",
"6 3.0 Mon Sep 25 22:59:55 2023 Beamline commissioning -- Smaract movement test ... NaN NaN NaN NaN NaN\n",
"7 3.0 Mon Sep 25 22:59:56 2023 Beamline commissioning -- Smaract movement test ... NaN NaN NaN NaN NaN\n",
"8 3.0 Mon Sep 25 22:59:57 2023 Beamline commissioning -- Smaract movement test ... NaN NaN NaN NaN NaN\n",
"9 3.0 Mon Sep 25 22:59:58 2023 Beamline commissioning -- Smaract movement test ... NaN NaN NaN NaN NaN\n",
"10 3.0 Mon Sep 25 22:59:59 2023 Beamline commissioning -- Smaract movement test ... NaN NaN NaN NaN NaN\n",
"11 3.0 Mon Sep 25 23:00:00 2023 Beamline commissioning -- Smaract movement test ... NaN NaN NaN NaN NaN\n",
"12 3.0 Mon Sep 25 23:00:01 2023 Beamline commissioning -- Smaract movement test ... NaN NaN NaN NaN NaN\n",
"13 3.0 Mon Sep 25 23:00:02 2023 Beamline commissioning -- Smaract movement test ... NaN NaN NaN NaN NaN\n",
"14 3.0 Mon Sep 25 23:00:03 2023 Beamline commissioning -- Smaract movement test ... NaN NaN NaN NaN NaN\n",
"15 3.0 Mon Sep 25 23:00:04 2023 Beamline commissioning -- Smaract movement test ... NaN NaN NaN NaN NaN\n",
"16 3.0 Mon Sep 25 23:00:05 2023 Beamline commissioning -- Smaract movement test ... NaN NaN NaN NaN NaN\n",
"17 3.0 Mon Sep 25 23:00:06 2023 Beamline commissioning -- Smaract movement test ... NaN NaN NaN NaN NaN\n",
"18 3.0 Mon Sep 25 23:00:07 2023 Beamline commissioning -- Smaract movement test ... NaN NaN NaN NaN NaN\n",
"19 3.0 Mon Sep 25 23:00:08 2023 Beamline commissioning -- Smaract movement test ... NaN NaN NaN NaN NaN\n",
"20 3.0 Mon Sep 25 23:00:09 2023 Beamline commissioning -- Smaract movement test ... NaN NaN NaN NaN NaN\n",
"21 3.0 Mon Sep 25 23:00:10 2023 Beamline commissioning -- Smaract movement test ... NaN NaN NaN NaN NaN\n",
"22 3.0 Mon Sep 25 23:00:11 2023 Beamline commissioning -- Smaract movement test ... NaN NaN NaN NaN NaN\n",
"23 4.0 Tue Sep 26 10:58:09 2023 Beamline commissioning -- testing the CTA acquisition ... NaN NaN NaN NaN NaN\n",
"24 5.0 Tue Sep 26 11:43:22 2023 Beamline commissioning -- testing the CTA acquisition ... NaN NaN NaN NaN NaN\n",
"25 6.0 Tue Sep 26 11:49:08 2023 Beamline commissioning -- testing the CTA acquisition, only one module ... NaN NaN NaN NaN NaN\n",
"26 NaN NaN NaN ... -19.013395 21.773295 0.043045 0.00043 80.651991\n",
"\n",
"[27 rows x 16 columns]\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"100%|████████████████████████████████████████████████████████████████████████████████████████████████████| 100/100 [00:01<00:00, 90.3 Hz]"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"run number: 209\n",
"acq number: 1\n",
"total acq number: 706\n",
"\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"\n"
]
},
{
"data": {
"text/plain": [
"DAQTask: done\n",
"\n",
"Output files:\n",
"-------------\n",
"- /sf/cristallina/data/p19150/raw/run0209/data/acq0001.PVDATA.h5\n",
"- /sf/cristallina/data/p19150/raw/run0209/data/acq0001.BSDATA.h5\n",
"- /sf/cristallina/data/p19150/raw/run0209/data/acq0001.JF16T03V01.h5"
]
},
"execution_count": 13,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"acq.acquire(\"test_acquisition\",\n",
" data_base_dir=None,\n",
" n_pulses=100,\n",
" n_repeat=1,\n",
" is_scan_step=False,\n",
" )"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "ef720a7a-d583-44cc-8688-cbb4c6ce7f76",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"id": "7a76af39-b69d-4261-b43b-6e165774343f",
"metadata": {},
"source": [
"## Perform one scan\n",
"Similarly we can define a scan which uses acquisition from above to change an adjustable over a certain range, and perform an acquisition at each point:"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "5e9ae0e7-76b8-4f0f-a703-faef731f2e96",
"metadata": {
"scrolled": true
},
"outputs": [],
"source": [
"scan.scan1D(\n",
" diffractometer.theta,\n",
" 11.66-0.3,\n",
" 11.66+0.3,\n",
" step_size=0.025,\n",
" n_pulses=60,\n",
" filename=\"TRXTHETA_405_upper_sample\",\n",
" acquisitions=[acq],\n",
" step_info=None,\n",
" return_to_initial_values=False,\n",
")"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "771bdfce-8b33-46e0-ac56-ed9d6026caa2",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"id": "a2ca8b8f-23a0-47ad-b0bf-fd402d545fa5",
"metadata": {
"jp-MarkdownHeadingCollapsed": true
},
"source": [
"# BSacquisition\n",
"\n",
"Alternatively we can not use the SF-DAQ infrastructure and only record BS data to any directory. This cannot include Jungfrau data though.\n",
"\n",
"We setup a minimal example as follows:"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "b9f875e3-aa0a-47f8-b836-ebefa0f1fe6f",
"metadata": {},
"outputs": [],
"source": [
"bs_example_channels = ['SARFE10-PBPG050:PHOTON-ENERGY-PER-PULSE-AVG', \"SARFE10-PBIG050-EVR0:CALCI\", \"SARES30-CAMS156-XE:x_fit_amplitude\",] # \"SARES30-CAMS156-XE:FPICTURE\"]"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "fa1210e1-cd4c-41a1-9d2c-25d2bfc6c35b",
"metadata": {},
"outputs": [],
"source": [
"# setup dummy axis\n",
"dummy = DummyAdjustable()\n",
"print(f\"dummy at: {dummy.get_current_value()}\")\n",
"\n",
"# setup scanner\n",
"scanner = Scanner(data_base_dir=\"/tmp/scan_data\", scan_info_dir=\"/tmp/scan_info\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "fe9c60a0-3b3f-41b6-9c8f-d32528d63af1",
"metadata": {},
"outputs": [],
"source": [
"# setup acquisition \n",
"acq = BSAcquisition('example_instrument', 'example_pgroup', default_channels=bs_example_channels, default_data_base_dir='/tmp')\n",
"\n",
"scanner.scan1D(dummy, 0, 10, step_size=1, n_pulses=10, filename='test_bs', acquisitions=[acq], step_info=None, return_to_initial_values=False)"
]
},
{
"cell_type": "markdown",
"id": "0d0c8149-3240-43ab-9769-e50e2b1856ec",
"metadata": {},
"source": [
"# Runs in an experiment\n",
"\n",
"With these tests we can now define everything for the actual experiment and perform the measurements."
]
},
{
"cell_type": "code",
"execution_count": 7,
"id": "08c2cee2-0bd9-4ce8-a71e-c7ea47768869",
"metadata": {},
"outputs": [],
"source": [
"# setup acquisition\n",
"\n",
"# this requires an existing pgroup\n",
"acq = SFAcquisition(\n",
" \"cristallina\",\n",
" \"p21516\",\n",
" default_channels=bs_channels,\n",
" default_pvs=pvs,\n",
" spreadsheet=spreadsheet,\n",
" default_detectors=detectors,\n",
" rate_multiplicator=1,\n",
")\n",
"\n",
"scan = Scanner(default_acquisitions=[daq], condition=check_intensity_gas_monitor)\n"
]
},
{
"cell_type": "code",
"execution_count": 8,
"id": "1be80717-774d-469a-925d-666c975fc795",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"{'SARUN03-UIND030': Undulator \"SARUN03-UIND030\" at 1.7323858702653407 ,\n",
" 'SARUN04-UIND030': Undulator \"SARUN04-UIND030\" at 1.7323858702653407 ,\n",
" 'SARUN05-UIND030': Undulator \"SARUN05-UIND030\" at 1.7323858702653407 ,\n",
" 'SARUN06-UIND030': Undulator \"SARUN06-UIND030\" at 1.7323858702653407 ,\n",
" 'SARUN07-UIND030': Undulator \"SARUN07-UIND030\" at 1.7287122962798656 ,\n",
" 'SARUN08-UIND030': Undulator \"SARUN08-UIND030\" at 1.7331003603559842 ,\n",
" 'SARUN09-UIND030': Undulator \"SARUN09-UIND030\" at 1.7336107470023607 ,\n",
" 'SARUN10-UIND030': Undulator \"SARUN10-UIND030\" at 1.7347154803699962 ,\n",
" 'SARUN11-UIND030': Undulator \"SARUN11-UIND030\" at 1.733388366970084 ,\n",
" 'SARUN12-UIND030': Undulator \"SARUN12-UIND030\" at 1.7324691124462326 ,\n",
" 'SARUN13-UIND030': Undulator \"SARUN13-UIND030\" at 1.7306694932706983 ,\n",
" 'SARUN14-UIND030': Undulator \"SARUN14-UIND030\" at 1.729969640942022 ,\n",
" 'SARUN15-UIND030': Undulator \"SARUN15-UIND030\" at 1.7235709799331544 }"
]
},
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"undulators.adjs\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "ce1b77de-7d8c-4a97-bcf7-2da5f684801a",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Advanced run number to 54 for SF DAQ on http://sf-daq:10002 (status: idle, last run: 54).\n",
" run filename n_pulses comment sample scanned_adjs v_min ... TD TRX TRY TRXBASE TRYBASE THETA TWOTHETA\n",
"0 27 Rocking_curve_003 50 SARES30-CPCL-ECMC02:ROTTHETA 11.00 ... 103.193915 0.00000 -7.639270 21.770540 0.043051 12.999782 24.000607\n",
"1 28 Rocking_curve_003_slightly_up 50 SARES30-CPCL-ECMC02:ROTTHETA 11.00 ... 103.193905 0.00000 -7.438835 21.970745 0.043051 12.000128 24.000651\n",
"2 29 Rocking_curve_003_slightly_up_few_pulses 5 SARES30-CPCL-ECMC02:ROTTHETA 11.00 ... 103.193910 0.00000 -7.436310 21.971195 0.043051 13.000497 24.000643\n",
"3 30 Rocking_curve_003_slightly_up_few_pulses 1 SARES30-CPCL-ECMC02:ROTTHETA 11.00 ... 103.193920 0.00000 -7.437965 21.970650 0.043051 11.040431 24.000655\n",
"4 31 Scanning_samples_TY 25 SARES30-CPCL-ECMC02:TRY -8.00 ... 103.193910 0.00000 -2.999960 21.769105 0.043051 12.250101 24.000670\n",
"5 32 Scanning_samples_TY 25 SARES30-CPCL-ECMC02:TRY -8.00 ... 103.193910 0.00000 -2.999915 21.769070 0.043051 12.250091 24.000664\n",
"6 33 Scanning_samples_TY 25 SARES30-CPCL-ECMC02:TRY -8.00 ... 103.193905 0.00000 -3.100590 21.769125 0.043051 12.250109 24.000669\n",
"7 34 Scanning_samples_TY_up 25 SARES30-CPCL-ECMC02:TRY -9.00 ... 103.193900 0.00000 -5.850505 21.769080 0.043051 12.250083 24.000664\n",
"8 35 Scanning_samples_TY_up 25 SARES30-CPCL-ECMC02:TRY -9.00 ... 103.193910 0.00000 -5.850115 21.769050 0.043051 12.250064 24.000660\n",
"9 36 Rocking_curve_diagnostics 50 SARES30-CPCL-ECMC02:ROTTHETA 11.00 ... 103.193925 0.00000 -8.400120 21.769065 0.043051 12.250090 24.000670\n",
"10 37 Rocking_curve_002_upper_sample 50 SARES30-CPCL-ECMC02:ROTTHETA 16.80 ... 103.193895 0.00000 -9.002435 21.769135 0.043051 17.311481 33.400588\n",
"11 38 Rocking_curve_002_upper_sample 50 SARES30-CPCL-ECMC02:ROTTHETA 17.00 ... 103.193880 0.00000 -8.996335 21.769330 0.043051 17.800422 33.400582\n",
"12 39 Rocking_curve_404_upper_sample 50 SARES30-CPCL-ECMC02:ROTTHETA 14.20 ... 103.193940 0.00000 -8.999515 21.969135 0.043051 14.500278 79.300785\n",
"13 40 TRXBASE_404_upper_sample 50 SARES30-CPCL-ECMC02:TRXBASE 21.57 ... 103.193935 0.00000 -9.000290 21.968955 0.043051 14.499749 79.300764\n",
"14 42 TRXBASE_404_upper_sample 50 SARES30-CPCL-ECMC02:TRXBASE 21.57 ... 103.193925 0.00000 -9.000980 21.897890 0.043051 11.660335 84.314252\n",
"15 43 TRXTHETA_405_upper_sample 3 SARES30-CPCL-ECMC02:ROTTHETA 11.36 ... 103.193940 0.00000 -9.001410 21.897935 0.043051 11.660351 84.314274\n",
"16 44 TRXTHETA_405_upper_sample 60 SARES30-CPCL-ECMC02:ROTTHETA 11.36 ... 103.193950 0.00000 -8.997965 21.898145 0.043051 11.959667 84.314266\n",
"17 45 TRXTHETA_405_upper_sample 600 SARES30-CPCL-ECMC02:ROTTHETA 11.61 ... 103.193930 0.00000 -8.999090 21.898055 0.043051 11.709935 84.314311\n",
"18 46 TRXTHETA_405_upper_sample 60 SARES30-CPCL-ECMC02:ROTTHETA 11.61 ... 103.193945 0.00000 -9.000140 21.898060 0.043051 11.609870 84.314313\n",
"19 47 TRXTHETA_405_upper_sample 60 SARES30-CPCL-ECMC02:ROTTHETA 11.36 ... 103.193915 0.00000 -8.998365 21.898155 0.043051 11.810438 84.314316\n",
"20 48 TRXTHETA_405_upper_sample 60 SARES30-CPCL-ECMC02:ROTTHETA 11.36 ... 103.195790 0.24572 -9.000560 21.899415 0.043051 -0.236000 84.314018\n",
"21 54 Undulator_scan 20 Aramis Undulators 8320.00 ... 103.191690 0.24252 -9.001155 21.901905 0.043045 9.960244 84.313270\n",
"\n",
"[22 rows x 16 columns]\n",
"\u001b[32mScan step 1 of 31\n",
"\u001b[39mWaited for 0.5 seconds and collected 1 data points.\n",
"Condition happy: 100.0% within limits [-100, 2000), required was 80.0%.\n",
"1.7394383334314487 <- 8258.0\n",
"scaled: [1.73936349 1.73936349 1.73936349 1.73936349 1.73568695 1.74007857\n",
" 1.74058937 1.741695 1.74036681 1.7394468 1.73764573 1.73694531\n",
" 1.73054151]\n",
"\n",
"SARUN03-UIND030: 1.7323858702653407\t->\t1.7393634943252434\t(-0.006977624059902654)\n",
"SARUN04-UIND030: 1.7323858702653407\t->\t1.7393634943252434\t(-0.006977624059902654)\n",
"SARUN05-UIND030: 1.7323858702653407\t->\t1.7393634943252434\t(-0.006977624059902654)\n",
"SARUN06-UIND030: 1.7323858702653407\t->\t1.7393634943252434\t(-0.006977624059902654)\n",
"SARUN07-UIND030: 1.7287122962798656\t->\t1.735686947113369\t(-0.006974650833503349)\n",
"SARUN08-UIND030: 1.7331003603559842\t->\t1.740078565597034\t(-0.006978205241049862)\n",
"SARUN09-UIND030: 1.7336107470023607\t->\t1.740589367980148\t(-0.006978620977787342)\n",
"SARUN10-UIND030: 1.7347154803699962\t->\t1.7416950028574496\t(-0.006979522487453371)\n",
"SARUN11-UIND030: 1.733388366970084\t->\t1.740366806748513\t(-0.006978439778428935)\n",
"SARUN12-UIND030: 1.7324691124462326\t->\t1.7394468041684816\t(-0.0069776917222490464)\n",
"SARUN13-UIND030: 1.7306694932706983\t->\t1.7376457250550728\t(-0.006976231784374454)\n",
"SARUN14-UIND030: 1.729969640942022\t->\t1.7369453065941667\t(-0.006975665652144691)\n",
"SARUN15-UIND030: 1.7235709799331544\t->\t1.7305415118365255\t(-0.006970531903371047)\n",
"Adjusting PSSS to 8320.0\n",
"******************************\n",
"Sat Oct 28 13:03:54 2023: run on host:saresc-cons-01.psi.ch\n",
"Args:{'mode': 5, 'stdout': True, 'var': ['SARFE10-PSSS059']} ['SARFE10-PSSS059']\n",
"energy2motor: camArmRot: 45.3843 cristBendRot: 23.7093 camPosX:-23.1182 evPerPix:0.02195\n",
"wait motion PSSS059:MOTOR_ROT_X3.DMOV .........................................done\n",
"PSSS_motion done.\n",
"Finished adjusting PSSS.\n",
"Moved adjustables, starting acquisition\n",
"Continuing run number 54.\n",
"No detectors specified, using default detector list.\n",
"No PVs specified, using default PV list.\n",
"No channels specified, using default channel list.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████| 20/20 [00:00<00:00, 66.3 Hz]\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"run number: 54\n",
"acq number: 1\n",
"total acq number: 2337\n",
"\n",
"DAQTask: done\n",
"\n",
"Output files:\n",
"-------------\n",
"- /sf/cristallina/data/p21563/raw/run0054/data/acq0001.PVDATA.h5\n",
"- /sf/cristallina/data/p21563/raw/run0054/data/acq0001.BSDATA.h5\n",
"- /sf/cristallina/data/p21563/raw/run0054/data/acq0001.JF16T03V01.h5\n",
"Acquisition done\n",
"Waited for 13.8 seconds and collected 13 data points.\n",
"Condition happy: 100.0% within limits [-100, 2000), required was 80.0%.\n",
"\u001b[32mScan step 2 of 31\n",
"\u001b[39mWaited for 0.5 seconds and collected 1 data points.\n",
"Condition happy: 100.0% within limits [-100, 2000), required was 80.0%.\n",
"1.739115799580604 <- 8260.0\n",
"scaled: [1.73901368 1.73901368 1.73901368 1.73901368 1.73533728 1.73972872\n",
" 1.7402395 1.74134509 1.74001695 1.73909698 1.73729598 1.73659559\n",
" 1.73019205]\n",
"\n",
"SARUN03-UIND030: 1.7393634943252434\t->\t1.7390136759268793\t(0.0003498183983641212)\n",
"SARUN04-UIND030: 1.7393634943252434\t->\t1.7390136759268793\t(0.0003498183983641212)\n",
"SARUN05-UIND030: 1.7393634943252434\t->\t1.7390136759268793\t(0.0003498183983641212)\n",
"SARUN06-UIND030: 1.7393634943252434\t->\t1.7390136759268793\t(0.0003498183983641212)\n",
"SARUN07-UIND030: 1.735686947113369\t->\t1.7353372789048453\t(0.00034966820852355696)\n",
"SARUN08-UIND030: 1.740078565597034\t->\t1.739728717842653\t(0.00034984775438107185)\n",
"SARUN09-UIND030: 1.740589367980148\t->\t1.7402394992268664\t(0.0003498687532816902)\n",
"SARUN10-UIND030: 1.7416950028574496\t->\t1.741345088569857\t(0.0003499142875926786)\n",
"SARUN11-UIND030: 1.740366806748513\t->\t1.7400169471475904\t(0.0003498596009225974)\n",
"SARUN12-UIND030: 1.7394468041684816\t->\t1.7390969823523972\t(0.0003498218160844502)\n",
"SARUN13-UIND030: 1.7376457250550728\t->\t1.7372959769842906\t(0.000349748070782141)\n",
"SARUN14-UIND030: 1.7369453065941667\t->\t1.7365955871212277\t(0.00034971947293893635)\n",
"SARUN15-UIND030: 1.7305415118365255\t->\t1.7301920517185594\t(0.000349460117966105)\n",
"Adjusting PSSS to 8322.0\n",
"******************************\n",
"Sat Oct 28 13:04:08 2023: run on host:saresc-cons-01.psi.ch\n",
"Args:{'mode': 5, 'stdout': True, 'var': ['SARFE10-PSSS059']} ['SARFE10-PSSS059']\n",
"energy2motor: camArmRot: 45.3727 cristBendRot: 23.7035 camPosX:-23.112 evPerPix:0.021962\n",
"wait motion PSSS059:MOTOR_ROT_X3.DMOV ........done\n",
"PSSS_motion done.\n",
"Finished adjusting PSSS.\n",
"Moved adjustables, starting acquisition\n",
"Continuing run number 54.\n",
"No detectors specified, using default detector list.\n",
"No PVs specified, using default PV list.\n",
"No channels specified, using default channel list.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████| 20/20 [00:00<00:00, 66.3 Hz]\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"run number: 54\n",
"acq number: 2\n",
"total acq number: 2338\n",
"\n",
"DAQTask: done\n",
"\n",
"Output files:\n",
"-------------\n",
"- /sf/cristallina/data/p21563/raw/run0054/data/acq0002.PVDATA.h5\n",
"- /sf/cristallina/data/p21563/raw/run0054/data/acq0002.BSDATA.h5\n",
"- /sf/cristallina/data/p21563/raw/run0054/data/acq0002.JF16T03V01.h5\n",
"Acquisition done\n",
"Waited for 9.8 seconds and collected 10 data points.\n",
"Condition happy: 100.0% within limits [-100, 2000), required was 80.0%.\n",
"\u001b[32mScan step 3 of 31\n",
"\u001b[39mWaited for 0.5 seconds and collected no(!) data points.\n",
"Is the source alive?\n",
"Condition is unhappy, waiting for OK conditions since 0.5 seconds.\n",
"Waited for 0.5 seconds and collected 1 data points.\n",
"Condition happy: 100.0% within limits [-100, 2000), required was 80.0%.\n",
"Condition was unhappy, waited for 1.0 seconds.\n",
"1.7387322497618714 <- 8262.0\n",
"scaled: [1.73866396 1.73866396 1.73866396 1.73866396 1.73498771 1.73937897\n",
" 1.73988973 1.74099527 1.73966719 1.73874726 1.73694633 1.73624597\n",
" 1.72984269]\n",
"\n",
"SARUN03-UIND030: 1.7390136759268793\t->\t1.738663956558894\t(0.000349719367985335)\n",
"SARUN04-UIND030: 1.7390136759268793\t->\t1.738663956558894\t(0.000349719367985335)\n",
"SARUN05-UIND030: 1.7390136759268793\t->\t1.738663956558894\t(0.000349719367985335)\n",
"SARUN06-UIND030: 1.7390136759268793\t->\t1.738663956558894\t(0.000349719367985335)\n",
"SARUN07-UIND030: 1.7353372789048453\t->\t1.7349877095654682\t(0.00034956933937713153)\n",
"SARUN08-UIND030: 1.739728717842653\t->\t1.7393789691499748\t(0.00034974869267823117)\n",
"SARUN09-UIND030: 1.7402394992268664\t->\t1.739889729557657\t(0.0003497696692094099)\n",
"SARUN10-UIND030: 1.741345088569857\t->\t1.7409952734147358\t(0.0003498151551211137)\n",
"SARUN11-UIND030: 1.7400169471475904\t->\t1.7396671866209945\t(0.00034976052659585477)\n",
"SARUN12-UIND030: 1.7390969823523972\t->\t1.7387472595703415\t(0.00034972278205569474)\n",
"SARUN13-UIND030: 1.7372959769842906\t->\t1.7369463278685928\t(0.0003496491156977921)\n",
"SARUN14-UIND030: 1.7365955871212277\t->\t1.736245966572653\t(0.0003496205485746806)\n",
"SARUN15-UIND030: 1.7301920517185594\t->\t1.729842690243584\t(0.00034936147497544034)\n",
"Adjusting PSSS to 8324.0\n",
"******************************\n",
"Sat Oct 28 13:04:19 2023: run on host:saresc-cons-01.psi.ch\n",
"Args:{'mode': 5, 'stdout': True, 'var': ['SARFE10-PSSS059']} ['SARFE10-PSSS059']\n",
"energy2motor: camArmRot: 45.3612 cristBendRot: 23.6978 camPosX:-23.1058 evPerPix:0.021974\n",
"wait motion PSSS059:MOTOR_ROT_X3.DMOV ........done\n",
"PSSS_motion done.\n",
"Finished adjusting PSSS.\n",
"Moved adjustables, starting acquisition\n",
"Continuing run number 54.\n",
"No detectors specified, using default detector list.\n",
"No PVs specified, using default PV list.\n",
"No channels specified, using default channel list.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████| 20/20 [00:00<00:00, 66.3 Hz]\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"run number: 54\n",
"acq number: 3\n",
"total acq number: 2339\n",
"\n",
"DAQTask: done\n",
"\n",
"Output files:\n",
"-------------\n",
"- /sf/cristallina/data/p21563/raw/run0054/data/acq0003.PVDATA.h5\n",
"- /sf/cristallina/data/p21563/raw/run0054/data/acq0003.BSDATA.h5\n",
"- /sf/cristallina/data/p21563/raw/run0054/data/acq0003.JF16T03V01.h5\n",
"Acquisition done\n",
"Waited for 9.9 seconds and collected 10 data points.\n",
"Condition happy: 100.0% within limits [-100, 2000), required was 80.0%.\n",
"\u001b[32mScan step 4 of 31\n",
"\u001b[39mWaited for 0.5 seconds and collected no(!) data points.\n",
"Is the source alive?\n",
"Condition is unhappy, waiting for OK conditions since 0.5 seconds.\n",
"Waited for 0.5 seconds and collected 1 data points.\n",
"Condition happy: 100.0% within limits [-100, 2000), required was 80.0%.\n",
"Condition was unhappy, waited for 1.0 seconds.\n",
"1.7384029215264762 <- 8264.0\n",
"scaled: [1.73831434 1.73831434 1.73831434 1.73831434 1.73463824 1.73902932\n",
" 1.73954006 1.74064556 1.73931753 1.73839764 1.73659678 1.73589644\n",
" 1.72949343]\n",
"\n",
"SARUN03-UIND030: 1.738663956558894\t->\t1.738314336158031\t(0.00034962040086283785)\n",
"SARUN04-UIND030: 1.738663956558894\t->\t1.738314336158031\t(0.00034962040086283785)\n",
"SARUN05-UIND030: 1.738663956558894\t->\t1.738314336158031\t(0.00034962040086283785)\n",
"SARUN06-UIND030: 1.738663956558894\t->\t1.738314336158031\t(0.00034962040086283785)\n",
"SARUN07-UIND030: 1.7349877095654682\t->\t1.7346382390320376\t(0.00034947053343059586)\n",
"SARUN08-UIND030: 1.7393789691499748\t->\t1.7390293194557327\t(0.00034964969424211567)\n",
"SARUN09-UIND030: 1.739889729557657\t->\t1.7395400589092451\t(0.00034967064841184836)\n",
"SARUN10-UIND030: 1.7409952734147358\t->\t1.7406455573287942\t(0.0003497160859415871)\n",
"SARUN11-UIND030: 1.7396671866209945\t->\t1.7393175251054536\t(0.0003496615155409444)\n",
"SARUN12-UIND030: 1.7387472595703415\t->\t1.738397635759057\t(0.00034962381128456066)\n",
"SARUN13-UIND030: 1.7369463278685928\t->\t1.7365967776447495\t(0.000349550223843309)\n",
"SARUN14-UIND030: 1.736245966572653\t->\t1.735896444885224\t(0.0003495216874289664)\n",
"SARUN15-UIND030: 1.729842690243584\t->\t1.7294934273484772\t(0.0003492628951067278)\n",
"Adjusting PSSS to 8326.0\n",
"******************************\n",
"Sat Oct 28 13:04:30 2023: run on host:saresc-cons-01.psi.ch\n",
"Args:{'mode': 5, 'stdout': True, 'var': ['SARFE10-PSSS059']} ['SARFE10-PSSS059']\n",
"energy2motor: camArmRot: 45.3496 cristBendRot: 23.6921 camPosX:-23.0996 evPerPix:0.021986\n",
"wait motion PSSS059:MOTOR_ROT_X3.DMOV ......done\n",
"PSSS_motion done.\n",
"Finished adjusting PSSS.\n",
"Moved adjustables, starting acquisition\n",
"Continuing run number 54.\n",
"No detectors specified, using default detector list.\n",
"No PVs specified, using default PV list.\n",
"No channels specified, using default channel list.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████| 20/20 [00:00<00:00, 66.3 Hz]\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"run number: 54\n",
"acq number: 4\n",
"total acq number: 2340\n",
"\n",
"DAQTask: done\n",
"\n",
"Output files:\n",
"-------------\n",
"- /sf/cristallina/data/p21563/raw/run0054/data/acq0004.PVDATA.h5\n",
"- /sf/cristallina/data/p21563/raw/run0054/data/acq0004.BSDATA.h5\n",
"- /sf/cristallina/data/p21563/raw/run0054/data/acq0004.JF16T03V01.h5\n",
"Acquisition done\n",
"Waited for 9.6 seconds and collected 9 data points.\n",
"Condition happy: 100.0% within limits [-100, 2000), required was 80.0%.\n",
"\u001b[32mScan step 5 of 31\n",
"\u001b[39mWaited for 0.5 seconds and collected 1 data points.\n",
"Condition happy: 100.0% within limits [-100, 2000), required was 80.0%.\n",
"1.7379787586127808 <- 8266.0\n",
"scaled: [1.73796481 1.73796481 1.73796481 1.73796481 1.73428887 1.73867977\n",
" 1.73919049 1.74029594 1.73896796 1.73804811 1.73624733 1.73554702\n",
" 1.72914426]\n",
"\n",
"SARUN03-UIND030: 1.738314336158031\t->\t1.7379648146610862\t(0.00034952149694489343)\n",
"SARUN04-UIND030: 1.738314336158031\t->\t1.7379648146610862\t(0.00034952149694489343)\n",
"SARUN05-UIND030: 1.738314336158031\t->\t1.7379648146610862\t(0.00034952149694489343)\n",
"SARUN06-UIND030: 1.738314336158031\t->\t1.7379648146610862\t(0.00034952149694489343)\n",
"SARUN07-UIND030: 1.7346382390320376\t->\t1.7342888672414047\t(0.0003493717906328797)\n",
"SARUN08-UIND030: 1.7390293194557327\t->\t1.738679768696711\t(0.0003495507590216551)\n",
"SARUN09-UIND030: 1.7395400589092451\t->\t1.739190487218407\t(0.0003495716908381574)\n",
"SARUN10-UIND030: 1.7406455573287942\t->\t1.7402959402487914\t(0.00034961708000280645)\n",
"SARUN11-UIND030: 1.7393175251054536\t->\t1.7389679625377474\t(0.0003495625677061298)\n",
"SARUN12-UIND030: 1.738397635759057\t->\t1.7380481108553378\t(0.0003495249037190895)\n",
"SARUN13-UIND030: 1.7365967776447495\t->\t1.736247326249582\t(0.00034945139516762147)\n",
"SARUN14-UIND030: 1.735896444885224\t->\t1.7355470219957725\t(0.0003494228894516116)\n",
"SARUN15-UIND030: 1.7294934273484772\t->\t1.7291442629701685\t(0.0003491643783086751)\n",
"Adjusting PSSS to 8328.0\n",
"******************************\n",
"Sat Oct 28 13:04:40 2023: run on host:saresc-cons-01.psi.ch\n",
"Args:{'mode': 5, 'stdout': True, 'var': ['SARFE10-PSSS059']} ['SARFE10-PSSS059']\n",
"energy2motor: camArmRot: 45.338 cristBendRot: 23.6864 camPosX:-23.0933 evPerPix:0.021998\n",
"wait motion PSSS059:MOTOR_ROT_X3.DMOV ......done\n",
"PSSS_motion done.\n",
"Finished adjusting PSSS.\n",
"Moved adjustables, starting acquisition\n",
"Continuing run number 54.\n",
"No detectors specified, using default detector list.\n",
"No PVs specified, using default PV list.\n",
"No channels specified, using default channel list.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████| 20/20 [00:00<00:00, 66.3 Hz]\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"run number: 54\n",
"acq number: 5\n",
"total acq number: 2341\n",
"\n",
"DAQTask: done\n",
"\n",
"Output files:\n",
"-------------\n",
"- /sf/cristallina/data/p21563/raw/run0054/data/acq0005.PVDATA.h5\n",
"- /sf/cristallina/data/p21563/raw/run0054/data/acq0005.BSDATA.h5\n",
"- /sf/cristallina/data/p21563/raw/run0054/data/acq0005.JF16T03V01.h5\n",
"Acquisition done\n",
"Waited for 9.6 seconds and collected 9 data points.\n",
"Condition happy: 100.0% within limits [-100, 2000), required was 80.0%.\n",
"\u001b[32mScan step 6 of 31\n",
"\u001b[39mWaited for 0.5 seconds and collected 1 data points.\n",
"Condition happy: 100.0% within limits [-100, 2000), required was 80.0%.\n",
"1.7376144533739812 <- 8268.0\n",
"scaled: [1.73761539 1.73761539 1.73761539 1.73761539 1.73393959 1.73833032\n",
" 1.73884101 1.73994642 1.7386185 1.73769868 1.73589797 1.7351977\n",
" 1.7287952 ]\n",
"\n",
"SARUN03-UIND030: 1.7379648146610862\t->\t1.7376153920049042\t(0.00034942265618198576)\n",
"SARUN04-UIND030: 1.7379648146610862\t->\t1.7376153920049042\t(0.00034942265618198576)\n",
"SARUN05-UIND030: 1.7379648146610862\t->\t1.7376153920049042\t(0.00034942265618198576)\n",
"SARUN06-UIND030: 1.7379648146610862\t->\t1.7376153920049042\t(0.00034942265618198576)\n",
"SARUN07-UIND030: 1.7342888672414047\t->\t1.7339395941304712\t(0.00034927311093357893)\n",
"SARUN08-UIND030: 1.738679768696711\t->\t1.7383303168097437\t(0.00034945188696733354)\n",
"SARUN09-UIND030: 1.739190487218407\t->\t1.738841014421969\t(0.00034947279643793294)\n",
"SARUN10-UIND030: 1.7402959402487914\t->\t1.7399464221115373\t(0.0003495181372541456)\n",
"SARUN11-UIND030: 1.7389679625377474\t->\t1.7386184988547062\t(0.000349463683041229)\n",
"SARUN12-UIND030: 1.7380481108553378\t->\t1.737698684796028\t(0.00034942605930976534)\n",
"SARUN13-UIND030: 1.736247326249582\t->\t1.735897973619962\t(0.00034935262961988123)\n",
"SARUN14-UIND030: 1.7355470219957725\t->\t1.7351976978411807\t(0.000349324154591768)\n",
"SARUN15-UIND030: 1.7291442629701685\t->\t1.7287951970456374\t(0.0003490659245311001)\n",
"Adjusting PSSS to 8330.0\n",
"******************************\n",
"Sat Oct 28 13:04:50 2023: run on host:saresc-cons-01.psi.ch\n",
"Args:{'mode': 5, 'stdout': True, 'var': ['SARFE10-PSSS059']} ['SARFE10-PSSS059']\n",
"energy2motor: camArmRot: 45.3265 cristBendRot: 23.6807 camPosX:-23.0871 evPerPix:0.02201\n",
"wait motion PSSS059:MOTOR_ROT_X3.DMOV ......done\n",
"PSSS_motion done.\n",
"Finished adjusting PSSS.\n",
"Moved adjustables, starting acquisition\n",
"Continuing run number 54.\n",
"No detectors specified, using default detector list.\n",
"No PVs specified, using default PV list.\n",
"No channels specified, using default channel list.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████| 20/20 [00:00<00:00, 66.3 Hz]\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"run number: 54\n",
"acq number: 6\n",
"total acq number: 2342\n",
"\n",
"DAQTask: done\n",
"\n",
"Output files:\n",
"-------------\n",
"- /sf/cristallina/data/p21563/raw/run0054/data/acq0006.PVDATA.h5\n",
"- /sf/cristallina/data/p21563/raw/run0054/data/acq0006.BSDATA.h5\n",
"- /sf/cristallina/data/p21563/raw/run0054/data/acq0006.JF16T03V01.h5\n",
"Acquisition done\n",
"Waited for 9.7 seconds and collected 10 data points.\n",
"Condition happy: 100.0% within limits [-100, 2000), required was 80.0%.\n",
"\u001b[32mScan step 7 of 31\n",
"\u001b[39mWaited for 0.5 seconds and collected no(!) data points.\n",
"Is the source alive?\n",
"Condition is unhappy, waiting for OK conditions since 0.5 seconds.\n",
"Waited for 0.5 seconds and collected 1 data points.\n",
"Condition happy: 100.0% within limits [-100, 2000), required was 80.0%.\n",
"Condition was unhappy, waited for 1.0 seconds.\n",
"1.7372651295337658 <- 8270.0\n",
"scaled: [1.73726607 1.73726607 1.73726607 1.73726607 1.73359042 1.73798096\n",
" 1.73849164 1.739597 1.73826913 1.73734936 1.73554872 1.73484847\n",
" 1.72844623]\n",
"\n",
"SARUN03-UIND030: 1.7376153920049042\t->\t1.7372660681263836\t(0.0003493238785206021)\n",
"SARUN04-UIND030: 1.7376153920049042\t->\t1.7372660681263836\t(0.0003493238785206021)\n",
"SARUN05-UIND030: 1.7376153920049042\t->\t1.7372660681263836\t(0.0003493238785206021)\n",
"SARUN06-UIND030: 1.7376153920049042\t->\t1.7372660681263836\t(0.0003493238785206021)\n",
"SARUN07-UIND030: 1.7339395941304712\t->\t1.7335904196361906\t(0.00034917449428051306)\n",
"SARUN08-UIND030: 1.7383303168097437\t->\t1.7379809637317183\t(0.00034935307802541615)\n",
"SARUN09-UIND030: 1.738841014421969\t->\t1.7384916404568114\t(0.00034937396515766217)\n",
"SARUN10-UIND030: 1.7399464221115373\t->\t1.739597002853894\t(0.00034941925764320203)\n",
"SARUN11-UIND030: 1.7386184988547062\t->\t1.7382691339932128\t(0.0003493648614933953)\n",
"SARUN12-UIND030: 1.737698684796028\t->\t1.7373493575180246\t(0.0003493272780035195)\n",
"SARUN13-UIND030: 1.735897973619962\t->\t1.735548719692814\t(0.0003492539271479078)\n",
"SARUN14-UIND030: 1.7351976978411807\t->\t1.7348484723583841\t(0.00034922548279658905)\n",
"SARUN15-UIND030: 1.7287951970456374\t->\t1.7284462295119158\t(0.0003489675337216003)\n",
"Adjusting PSSS to 8332.0\n",
"******************************\n",
"Sat Oct 28 13:05:01 2023: run on host:saresc-cons-01.psi.ch\n",
"Args:{'mode': 5, 'stdout': True, 'var': ['SARFE10-PSSS059']} ['SARFE10-PSSS059']\n",
"energy2motor: camArmRot: 45.3149 cristBendRot: 23.675 camPosX:-23.0809 evPerPix:0.022022\n",
"wait motion PSSS059:MOTOR_ROT_X3.DMOV ......done\n",
"PSSS_motion done.\n",
"Finished adjusting PSSS.\n",
"Moved adjustables, starting acquisition\n",
"Continuing run number 54.\n",
"No detectors specified, using default detector list.\n",
"No PVs specified, using default PV list.\n",
"No channels specified, using default channel list.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████| 20/20 [00:00<00:00, 66.3 Hz]\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"run number: 54\n",
"acq number: 7\n",
"total acq number: 2343\n",
"\n",
"DAQTask: done\n",
"\n",
"Output files:\n",
"-------------\n",
"- /sf/cristallina/data/p21563/raw/run0054/data/acq0007.PVDATA.h5\n",
"- /sf/cristallina/data/p21563/raw/run0054/data/acq0007.BSDATA.h5\n",
"- /sf/cristallina/data/p21563/raw/run0054/data/acq0007.JF16T03V01.h5\n",
"Acquisition done\n",
"Waited for 9.8 seconds and collected 9 data points.\n",
"Condition happy: 100.0% within limits [-100, 2000), required was 80.0%.\n",
"\u001b[32mScan step 8 of 31\n",
"\u001b[39mWaited for 0.5 seconds and collected 1 data points.\n",
"Condition happy: 100.0% within limits [-100, 2000), required was 80.0%.\n",
"1.736971368932527 <- 8272.0\n",
"scaled: [1.73691684 1.73691684 1.73691684 1.73691684 1.73324134 1.73763171\n",
" 1.73814237 1.73924768 1.73791987 1.73700013 1.73519956 1.73449935\n",
" 1.72809736]\n",
"\n",
"SARUN03-UIND030: 1.7372660681263836\t->\t1.7369168429624722\t(0.00034922516391144853)\n",
"SARUN04-UIND030: 1.7372660681263836\t->\t1.7369168429624722\t(0.00034922516391144853)\n",
"SARUN05-UIND030: 1.7372660681263836\t->\t1.7369168429624722\t(0.00034922516391144853)\n",
"SARUN06-UIND030: 1.7372660681263836\t->\t1.7369168429624722\t(0.00034922516391144853)\n",
"SARUN07-UIND030: 1.7335904196361906\t->\t1.7332413436955674\t(0.00034907594062327796)\n",
"SARUN08-UIND030: 1.7379809637317183\t->\t1.737631709399572\t(0.000349254332146387)\n",
"SARUN09-UIND030: 1.7384916404568114\t->\t1.7381423652598624\t(0.0003492751969489394)\n",
"SARUN10-UIND030: 1.739597002853894\t->\t1.7392476824127745\t(0.0003493204411195716)\n",
"SARUN11-UIND030: 1.7382691339932128\t->\t1.7379198678901995\t(0.00034926610301333483)\n",
"SARUN12-UIND030: 1.7373493575180246\t->\t1.737000128958274\t(0.00034922855975061395)\n",
"SARUN13-UIND030: 1.735548719692814\t->\t1.735199564405112\t(0.0003491552877021853)\n",
"SARUN14-UIND030: 1.7348484723583841\t->\t1.7344993454843665\t(0.00034912687401766895)\n",
"SARUN15-UIND030: 1.7284462295119158\t->\t1.7280973603060852\t(0.0003488692058306597)\n"
]
}
],
"source": [
"# careful, this moves the undulators \n",
"scan.scan1D(\n",
" undulators,\n",
" 8320,\n",
" 8380,\n",
" step_size=2,\n",
" n_pulses=20,\n",
" filename=\"Undulator_scan\",\n",
" acquisitions=[acq],\n",
" step_info=None,\n",
" return_to_initial_values=False,\n",
")"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "8c4644d1-9ac7-412f-b780-2a50fded8452",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python [conda env:conda-slic]",
"language": "python",
"name": "conda-env-conda-slic-py"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.18"
}
},
"nbformat": 4,
"nbformat_minor": 5
}