Files
cristallina/acquisition/testing_attenuators.ipynb

129 lines
3.9 KiB
Plaintext

{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"id": "d1bead0c-2489-4672-ab51-5e75974dd4ab",
"metadata": {},
"outputs": [
{
"ename": "NameError",
"evalue": "name 'attenuator' is not defined",
"output_type": "error",
"traceback": [
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[0;31mNameError\u001b[0m Traceback (most recent call last)",
"Cell \u001b[0;32mIn[1], line 1\u001b[0m\n\u001b[0;32m----> 1\u001b[0m \u001b[43mattenuator\u001b[49m\u001b[38;5;241m.\u001b[39mfoils\n",
"\u001b[0;31mNameError\u001b[0m: name 'attenuator' is not defined"
]
}
],
"source": [
"attenuator.foils\n",
"\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "b2a73dd0-1136-44b7-b625-e5fdcd8ec8dc",
"metadata": {},
"outputs": [],
"source": [
"attenuator.foils.pv_names.get()"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "b1e94427-0f7d-4dd9-b61a-3d65135445ff",
"metadata": {},
"outputs": [],
"source": [
"attenuator.foils.pv_index.get()"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "66d002ac-1625-4b0d-91c5-f7daa1bd941b",
"metadata": {},
"outputs": [
{
"ename": "NameError",
"evalue": "name 'attenuator' is not defined",
"output_type": "error",
"traceback": [
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[0;31mNameError\u001b[0m Traceback (most recent call last)",
"Cell \u001b[0;32mIn[2], line 1\u001b[0m\n\u001b[0;32m----> 1\u001b[0m \u001b[43mattenuator\u001b[49m\u001b[38;5;241m.\u001b[39mfoils\u001b[38;5;241m.\u001b[39mpv_index\u001b[38;5;241m.\u001b[39mget()\n",
"\u001b[0;31mNameError\u001b[0m: name 'attenuator' is not defined"
]
}
],
"source": [
"attenuator.foils.pv_index.get()"
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "b0f5509a-944a-4a2e-a6d1-56785beb359a",
"metadata": {},
"outputs": [
{
"ename": "NameError",
"evalue": "name 'attenuator' is not defined",
"output_type": "error",
"traceback": [
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[0;31mNameError\u001b[0m Traceback (most recent call last)",
"Cell \u001b[0;32mIn[3], line 1\u001b[0m\n\u001b[0;32m----> 1\u001b[0m \u001b[43mattenuator\u001b[49m\u001b[38;5;241m.\u001b[39mfoils\u001b[38;5;241m.\u001b[39mpv_index\u001b[38;5;241m.\u001b[39mget()\n\u001b[1;32m 3\u001b[0m \u001b[38;5;66;03m# 0 := None\u001b[39;00m\n\u001b[1;32m 4\u001b[0m \u001b[38;5;66;03m# 1 := 2\u001b[39;00m\n\u001b[1;32m 5\u001b[0m \u001b[38;5;66;03m# 2 := 3\u001b[39;00m\n\u001b[1;32m 6\u001b[0m \u001b[38;5;66;03m# 3 := 4\u001b[39;00m\n\u001b[1;32m 7\u001b[0m \u001b[38;5;66;03m# 4 := 5\u001b[39;00m\n",
"\u001b[0;31mNameError\u001b[0m: name 'attenuator' is not defined"
]
}
],
"source": [
"attenuator.foils.pv_index.get()\n",
"\n",
"# 0 := None\n",
"# 1 := 2\n",
"# 2 := 3\n",
"# 3 := 4\n",
"# 4 := 5\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "aa5aee6a-5b3f-4693-8b52-7e142872449b",
"metadata": {},
"outputs": [],
"source": [
"attenuator.foils.pv_names"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python [conda env:conda-analysis_edge] *",
"language": "python",
"name": "conda-env-conda-analysis_edge-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.11.6"
}
},
"nbformat": 4,
"nbformat_minor": 5
}