-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
meet the API expected by the RunEngine #8
Merged
Merged
Conversation
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
Pull Request Test Coverage Report for Build 11603431179Details
💛 - Coveralls |
Locally with these changes, startup is successful, (bs_model_env) prjemian@arf:~/model$ ipython -i -c "from instrument.startup import *"
Python 3.11.10 | packaged by conda-forge | (main, Oct 16 2024, 01:27:36) [GCC 13.3.0]
Type 'copyright', 'credits' or 'license' for more information
IPython 8.29.0 -- An enhanced Interactive Python. Type '?' for help.
I Wed-18:37:57.418: **************************************** Bluesky Startup Initialized
Below are the IPython logging settings for your session.
These settings have no impact on your experiment.
Activating auto-logging. Current session state plus future input saved.
Filename : /home/prjemian/model/.logs/ipython_log.py
Mode : rotate
Output logging : True
Raw input log : False
Timestamping : True
State : active
Exception reporting mode: Minimal
End of IPython settings
W Wed-18:37:57.842: APS DM setup file does not exist: '/home/dm/etc/dm.setup.sh'
I Wed-18:37:58.903: Databroker catalog: training
I Wed-18:37:59.024: RunEngine metadata saved in directory: /home/prjemian/.config/Bluesky_RunEngine_md
I Wed-18:37:59.027: using ophyd control layer: 'pyepics'
I Wed-18:37:59.027: Using EPICS PV 'gp:gp:int20' for RunEngine 'scan_id'
/home/prjemian/model/src/instrument/startup.py
I Wed-18:37:59.114: SPEC data file: /home/prjemian/model/20241030-183759.dat
In [1]: RE.md["scan_id"]
Out[1]: 62
In [2]: RE(sim_rel_scan_plan(num=17))
sim_rel_scan_plan(): sim_motor.position=0.
sim_rel_scan_plan(): sim_det.read()=OrderedDict([('noisy_det', {'value': np.float64(0.9594472813352338), 'timestamp': 1730331478.8979254})]).
sim_rel_scan_plan(): sim_det.read_configuration()=OrderedDict([('noisy_det_Imax', {'value': 10000, 'timestamp': 1730331494.017334}), ('noisy_det_center', {'value': 0, 'timestamp': 1730331494.0176873}), ('noisy_det_sigma', {'value': 1, 'timestamp': 1730331494.0183764}), ('noisy_det_noise', {'value': 'uniform', 'timestamp': 1730331494.0187588}), ('noisy_det_noise_multiplier', {'value': 0.1, 'timestamp': 1730331478.897735})]).
sim_rel_scan_plan(): sim_det.noise._enum_strs=('none', 'poisson', 'uniform').
Transient Scan ID: 63 Time: 2024-10-30 18:38:14
Persistent Unique Scan ID: 'f08fd395-655b-4d69-a205-66ed70905226'
New stream: 'primary'
+-----------+------------+------------+------------+
| seq_num | time | motor | noisy_det |
+-----------+------------+------------+------------+
| 1 | 18:38:14.0 | -2.500 | 439.463 |
| 2 | 18:38:14.3 | -2.188 | 913.916 |
| 3 | 18:38:14.3 | -1.875 | 1724.127 |
| 4 | 18:38:14.3 | -1.562 | 2950.229 |
| 5 | 18:38:14.3 | -1.250 | 4578.351 |
| 6 | 18:38:14.3 | -0.938 | 6443.899 |
| 7 | 18:38:14.3 | -0.625 | 8225.869 |
| 8 | 18:38:14.4 | -0.312 | 9523.393 |
| 9 | 18:38:14.4 | 0.000 | 9999.949 |
| 10 | 18:38:14.4 | 0.312 | 9523.489 |
| 11 | 18:38:14.4 | 0.625 | 8225.699 |
| 12 | 18:38:14.4 | 0.938 | 6443.862 |
| 13 | 18:38:14.5 | 1.250 | 4578.367 |
| 14 | 18:38:14.5 | 1.562 | 2950.295 |
| 15 | 18:38:14.5 | 1.875 | 1724.304 |
| 16 | 18:38:14.5 | 2.188 | 913.994 |
| 17 | 18:38:14.5 | 2.500 | 439.273 |
+-----------+------------+------------+------------+
generator rel_scan ['f08fd395'] (scan num: 63)
Out[2]: ('f08fd395-655b-4d69-a205-66ed70905226',)
In [3]: !caget gp:gp:int20
gp:gp:int20 63 |
MDecarabas
approved these changes
Oct 31, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
close #7