Removed test.ipynb from git tracking
This commit is contained in:
1 parent
5f6e09102f
commit
5b9169f2cf
1 file changed
-155
-155
@@ -1,155 +0,0 @@
|
||||
{
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"id": "initial_id",
|
||||
"metadata": {
|
||||
"collapsed": true,
|
||||
"ExecuteTime": {
|
||||
"end_time": "2025-06-16T10:22:09.086440Z",
|
||||
"start_time": "2025-06-16T10:22:08.146343Z"
|
||||
}
|
||||
},
|
||||
"source": [
|
||||
"from aaredaqlib.coordinate import Coordinate, SmargonCoordinate\n",
|
||||
"from aaredaqlib.diffraction_geometry import DiffractionGeometry\n",
|
||||
"from aaredaqlib.models import DAQStatusModel\n",
|
||||
"from aaredaqlib.raster_grid import RasterGridRequest\n",
|
||||
"from aaredaqlib.sample_geometry import SampleGeometryModel\n",
|
||||
"from mxlibs3.jfjoch import JFJochWrapper\n",
|
||||
"from aaredaqlib.beamline import MXBeamline"
|
||||
],
|
||||
"outputs": [],
|
||||
"execution_count": 2
|
||||
},
|
||||
{
|
||||
"metadata": {
|
||||
"ExecuteTime": {
|
||||
"end_time": "2025-06-16T10:22:16.804934Z",
|
||||
"start_time": "2025-06-16T10:22:16.802426Z"
|
||||
}
|
||||
},
|
||||
"cell_type": "code",
|
||||
"source": "j = JFJochWrapper(bl=MXBeamline.X06DA)",
|
||||
"id": "4deb7964c8ca4964",
|
||||
"outputs": [],
|
||||
"execution_count": 4
|
||||
},
|
||||
{
|
||||
"metadata": {
|
||||
"ExecuteTime": {
|
||||
"end_time": "2025-06-16T09:38:54.734836Z",
|
||||
"start_time": "2025-06-16T09:38:54.731027Z"
|
||||
}
|
||||
},
|
||||
"cell_type": "code",
|
||||
"source": "j.initialize()",
|
||||
"id": "8a2651e47eea2441",
|
||||
"outputs": [],
|
||||
"execution_count": 4
|
||||
},
|
||||
{
|
||||
"metadata": {
|
||||
"ExecuteTime": {
|
||||
"end_time": "2025-06-16T10:22:19.022173Z",
|
||||
"start_time": "2025-06-16T10:22:17.836161Z"
|
||||
}
|
||||
},
|
||||
"cell_type": "code",
|
||||
"source": [
|
||||
"r = RasterGridRequest(file_prefix=\"test\",exp_time_s=0.01, n_x=100, n_y=1, grid_size_mm=Coordinate(x=0.01, y=0.01), smargon=SmargonCoordinate())\n",
|
||||
"diffraction = DiffractionGeometry(\n",
|
||||
" energy_keV=12.4,\n",
|
||||
" dtz_mm=100.0,\n",
|
||||
" detector_size_pxl=(1553,1630),\n",
|
||||
" pixel_size_mm=0.150, #PILATUS 4\n",
|
||||
" beam_center_pxl=(750, 750)\n",
|
||||
")\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"j.measure_raster(r, diffraction, None)"
|
||||
],
|
||||
"id": "f83e9d8a7ef278e8",
|
||||
"outputs": [],
|
||||
"execution_count": 5
|
||||
},
|
||||
{
|
||||
"metadata": {
|
||||
"ExecuteTime": {
|
||||
"end_time": "2025-06-16T10:22:05.636129Z",
|
||||
"start_time": "2025-06-16T10:22:05.474053Z"
|
||||
}
|
||||
},
|
||||
"cell_type": "code",
|
||||
"source": "j.measure_raster()",
|
||||
"id": "9020825c2384f66f",
|
||||
"outputs": [
|
||||
{
|
||||
"ename": "NameError",
|
||||
"evalue": "name 'j' is not defined",
|
||||
"output_type": "error",
|
||||
"traceback": [
|
||||
"\u001B[31m---------------------------------------------------------------------------\u001B[39m",
|
||||
"\u001B[31mNameError\u001B[39m Traceback (most recent call last)",
|
||||
"\u001B[36mCell\u001B[39m\u001B[36m \u001B[39m\u001B[32mIn[1]\u001B[39m\u001B[32m, line 1\u001B[39m\n\u001B[32m----> \u001B[39m\u001B[32m1\u001B[39m \u001B[43mj\u001B[49m.measure_raster()\n",
|
||||
"\u001B[31mNameError\u001B[39m: name 'j' is not defined"
|
||||
]
|
||||
}
|
||||
],
|
||||
"execution_count": 1
|
||||
},
|
||||
{
|
||||
"metadata": {
|
||||
"ExecuteTime": {
|
||||
"end_time": "2025-05-19T14:02:48.515467Z",
|
||||
"start_time": "2025-05-19T14:02:48.510654Z"
|
||||
}
|
||||
},
|
||||
"cell_type": "code",
|
||||
"source": "d.energy_kev",
|
||||
"id": "54332669c0b21992",
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"13.002"
|
||||
]
|
||||
},
|
||||
"execution_count": 3,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"execution_count": 3
|
||||
},
|
||||
{
|
||||
"metadata": {},
|
||||
"cell_type": "code",
|
||||
"outputs": [],
|
||||
"execution_count": null,
|
||||
"source": "",
|
||||
"id": "b53d61700246a8f0"
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "Python 3",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": {
|
||||
"name": "ipython",
|
||||
"version": 2
|
||||
},
|
||||
"file_extension": ".py",
|
||||
"mimetype": "text/x-python",
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython2",
|
||||
"version": "2.7.6"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 5
|
||||
}
|
||||
Reference in new issue
Block a user