-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
142 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "0", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"import logging\n", | ||
"import time\n", | ||
"\n", | ||
"import aps_8id_bs_instrument\n", | ||
"from aps_8id_bs_instrument.data_collection import * # noqa\n", | ||
"from aps_8id_bs_instrument.initialize_bs_tools import ( # noqa: F401\n", | ||
" RE,\n", | ||
" bec,\n", | ||
" cat,\n", | ||
" oregistry,\n", | ||
" peaks,\n", | ||
" sd,\n", | ||
")\n", | ||
"from aps_8id_bs_instrument.utils.session_logs import logger\n", | ||
"from bluesky.magics import BlueskyMagics\n", | ||
"from IPython import get_ipython\n", | ||
"\n", | ||
"from ophyd import EpicsSignal\n", | ||
"import bluesky.plans as bp\n", | ||
"import bluesky.plan_stubs as bps\n", | ||
"import databroker\n", | ||
"cat = databroker.catalog[\"8idi_xpcs\"] " | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "1", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"from ophyd.sim import det\n", | ||
"det_list = [det]" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "2", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"RE(bp.count(det_list))" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "3", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"det = [flag2ad]\n", | ||
"# flag2ad.hdf1.kind=\"omitted\"\n", | ||
"flag2ad.stats1.kind=\"hinted\"\n", | ||
"flag2ad.stats1.total.kind=\"hinted\"\n", | ||
"flag2ad.stats1.max_xy.kind=\"hinted\"\n", | ||
"flag2ad.stats1.max_xy.y.kind=\"hinted\"\n", | ||
"bec.disable_plots()" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "4", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"RE(bp.rel_scan(det_list, mr2.coarse_pitch, -0.5,0.5,11))" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "5", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"listobjects()" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "6", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"sl4.component_names" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "7", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [] | ||
} | ||
], | ||
"metadata": { | ||
"kernelspec": { | ||
"display_name": "Python 3 (ipykernel)", | ||
"language": "python", | ||
"name": "python3" | ||
}, | ||
"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.10.14" | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 5 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters