Demo: Notebook Startup

[1]:
from instrument.startup import *  # noqa
I Thu-23:44:41 - ############################################################ startup
I Thu-23:44:41 - logging started
I Thu-23:44:41 - logging level = 10
I Thu-23:44:41 - /home/prjemian/Documents/projects/prjemian/model_instrument/src/instrument/utils/_logging_setup.py
I Thu-23:44:41 - /home/prjemian/Documents/projects/prjemian/model_instrument/src/instrument/utils/aps_functions.py
I Thu-23:44:41 - /home/prjemian/Documents/projects/prjemian/model_instrument/src/instrument/utils/helper_functions.py
I Thu-23:44:41 - xmode exception level: 'Minimal'
W Thu-23:44:41 - APS DM setup file does not exist: '/home/dm/etc/dm.setup.sh'
I Thu-23:44:41 - /home/prjemian/Documents/projects/prjemian/model_instrument/src/instrument/utils/controls_setup.py
I Thu-23:44:41 - /home/prjemian/Documents/projects/prjemian/model_instrument/src/instrument/utils/metadata.py
I Thu-23:44:41 - RunEngine metadata saved in directory: /home/prjemian/.config/Bluesky_RunEngine_md
I Thu-23:44:41 - using ophyd control layer: 'pyepics'
Activating auto-logging. Current session state plus future input saved.
Filename       : /home/prjemian/Documents/projects/prjemian/model_instrument/docs/source/.logs/ipython_console.log
Mode           : rotate
Output logging : True
Raw input log  : False
Timestamping   : True
State          : active
Exception reporting mode: Minimal
[2]:
# import some plans with simulators from the test suite
from instrument.tests.sim_plans import sim_count_plan
from instrument.tests.sim_plans import sim_print_plan
from instrument.tests.sim_plans import sim_rel_scan_plan
[3]:
RE(sim_print_plan())
(instrument.tests.sim_plans) This is a test.
(instrument.tests.sim_plans)  motor.position=0  noisy_det.read()=OrderedDict({'noisy_det': {'value': 0.9332145455657159, 'timestamp': 1728017081.422468}}).
[3]:
()
[4]:
RE(sim_count_plan())


Transient Scan ID: 9381     Time: 2024-10-03 23:44:41
Persistent Unique Scan ID: '30241536-5747-4ab8-a2c0-36abe1177c27'
New stream: 'primary'
+-----------+------------+------------+
|   seq_num |       time |  noisy_det |
+-----------+------------+------------+
|         1 | 23:44:41.5 |  10000.019 |
+-----------+------------+------------+
generator count ['30241536'] (scan num: 9381)



[4]:
('30241536-5747-4ab8-a2c0-36abe1177c27',)
[5]:
RE(sim_rel_scan_plan())
(instrument.tests.sim_plans)  motor.position=0  noisy_det.read()=OrderedDict({'noisy_det': {'value': 10000.019189462675, 'timestamp': 1728017081.5154274}}).
(instrument.tests.sim_plans)  noisy_det.read_configuration()=OrderedDict({'noisy_det_Imax': {'value': 10000, 'timestamp': 1728017081.6279078}, 'noisy_det_center': {'value': 0, 'timestamp': 1728017081.6280491}, 'noisy_det_sigma': {'value': 1, 'timestamp': 1728017081.62835}, 'noisy_det_noise': {'value': 'uniform', 'timestamp': 1728017081.6286428}, 'noisy_det_noise_multiplier': {'value': 0.1, 'timestamp': 1728017081.4222577}}).
(instrument.tests.sim_plans)  noisy_det.noise._enum_strs=('none', 'poisson', 'uniform').


Transient Scan ID: 9382     Time: 2024-10-03 23:44:41
Persistent Unique Scan ID: '80ebcf96-ae54-4c7e-9ef0-4e9cc4d06e3f'
New stream: 'primary'
+-----------+------------+------------+------------+
|   seq_num |       time |      motor |  noisy_det |
+-----------+------------+------------+------------+
|         1 | 23:44:41.6 |     -2.500 |    439.386 |
|         2 | 23:44:41.6 |     -2.000 |   1353.364 |
|         3 | 23:44:41.6 |     -1.500 |   3246.518 |
|         4 | 23:44:41.6 |     -1.000 |   6065.306 |
|         5 | 23:44:41.6 |     -0.500 |   8824.966 |
|         6 | 23:44:41.6 |      0.000 |  10000.009 |
|         7 | 23:44:41.6 |      0.500 |   8824.884 |
|         8 | 23:44:41.6 |      1.000 |   6065.271 |
|         9 | 23:44:41.6 |      1.500 |   3246.439 |
|        10 | 23:44:41.6 |      2.000 |   1353.262 |
|        11 | 23:44:41.6 |      2.500 |    439.453 |
+-----------+------------+------------+------------+
generator rel_scan ['80ebcf96'] (scan num: 9382)



[5]:
('80ebcf96-ae54-4c7e-9ef0-4e9cc4d06e3f',)