SCRIPTS:moved two scripts and renamed so it does not hit the pytest
This commit is contained in:
@@ -1,85 +0,0 @@
|
||||
{
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"id": "initial_id",
|
||||
"metadata": {
|
||||
"collapsed": true,
|
||||
"ExecuteTime": {
|
||||
"end_time": "2025-12-11T16:18:13.726898285Z",
|
||||
"start_time": "2025-12-11T16:18:13.626609939Z"
|
||||
}
|
||||
},
|
||||
"source": [
|
||||
"from aaredaqlib.beamline import MXBeamline\n",
|
||||
"from mxlibs3.non_standard import NonStandard"
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"ename": "ModuleNotFoundError",
|
||||
"evalue": "No module named 'aaredaqlib'",
|
||||
"output_type": "error",
|
||||
"traceback": [
|
||||
"\u001B[0;31m---------------------------------------------------------------------------\u001B[0m",
|
||||
"\u001B[0;31mModuleNotFoundError\u001B[0m Traceback (most recent call last)",
|
||||
"Cell \u001B[0;32mIn[1], line 1\u001B[0m\n\u001B[0;32m----> 1\u001B[0m \u001B[38;5;28;01mfrom\u001B[39;00m\u001B[38;5;250m \u001B[39m\u001B[38;5;21;01maaredaqlib\u001B[39;00m\u001B[38;5;21;01m.\u001B[39;00m\u001B[38;5;21;01mbeamline\u001B[39;00m\u001B[38;5;250m \u001B[39m\u001B[38;5;28;01mimport\u001B[39;00m MXBeamline\n\u001B[1;32m 2\u001B[0m \u001B[38;5;28;01mfrom\u001B[39;00m\u001B[38;5;250m \u001B[39m\u001B[38;5;21;01mmxlibs3\u001B[39;00m\u001B[38;5;21;01m.\u001B[39;00m\u001B[38;5;21;01mnon_standard\u001B[39;00m\u001B[38;5;250m \u001B[39m\u001B[38;5;28;01mimport\u001B[39;00m NonStandard\n",
|
||||
"\u001B[0;31mModuleNotFoundError\u001B[0m: No module named 'aaredaqlib'"
|
||||
]
|
||||
}
|
||||
],
|
||||
"execution_count": 1
|
||||
},
|
||||
{
|
||||
"metadata": {},
|
||||
"cell_type": "code",
|
||||
"source": "BEAMLINE=MXBeamline.X10SA",
|
||||
"id": "7f9204607618d224",
|
||||
"outputs": [],
|
||||
"execution_count": null
|
||||
},
|
||||
{
|
||||
"metadata": {},
|
||||
"cell_type": "code",
|
||||
"source": [
|
||||
"gmx = NonStandard(\n",
|
||||
" name=\"GMX\",\n",
|
||||
" setpv=f\"{BEAMLINE}-ES-DF1:TRX1.VAL\",\n",
|
||||
" getpv=f\"{BEAMLINE}-ES-DF1:TRX.RBV\",\n",
|
||||
" speed=(f\"{BEAMLINE}-ES-DF1:TRX.VELO\", f\"{BEAMLINE}-ES-DF1:TRX.VELO\"),\n",
|
||||
" )\n"
|
||||
],
|
||||
"id": "8d0451d661f24051",
|
||||
"outputs": [],
|
||||
"execution_count": null
|
||||
},
|
||||
{
|
||||
"metadata": {},
|
||||
"cell_type": "code",
|
||||
"outputs": [],
|
||||
"execution_count": null,
|
||||
"source": "",
|
||||
"id": "343959c075c154b0"
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "venv_kernel",
|
||||
"language": "python",
|
||||
"name": "venv_kernel"
|
||||
},
|
||||
"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
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
from aaredaq.daq import AareDAQ
|
||||
from mxlibs3.jfjoch import JFJochWrapper
|
||||
from aaredaqlib.beamline import MXBeamline
|
||||
from aaredaq.aaredb import AareWrapper
|
||||
from aaredaq.config import BeamlineConfig
|
||||
from aaredaqlib.diffraction_geometry import DiffractionGeometry
|
||||
from aaredaq.devices import BeamlineDevices
|
||||
|
||||
j = JFJochWrapper(MXBeamline.X06DA)
|
||||
a = AareWrapper(MXBeamline.X06DA)
|
||||
c = BeamlineConfig(MXBeamline.X06DA)
|
||||
d = BeamlineDevices(MXBeamline.X06DA)
|
||||
daq = AareDAQ(bl=MXBeamline.X06DA, cfg=c)
|
||||
result = j.wait_till_done(60)
|
||||
a.ingest_scan(sample=c.current_sample, result=result, geom= daq.sample_geometry,beam_mark_pxl=c.get_beam_mark(d.zoom))
|
||||
Reference in New Issue
Block a user