Open jilavsky opened 4 years ago
Time to rename it on the web page to command_file.txt
which makes it generic for how it got there. With this change, the name accurately represents the intent of this feature pf the livedata page.
HISTORICAL NOTE
This file was originally named specmacro.txt
and the content of the file that was named in SPEC with the qdo
command was copied to this file. To avoid filling the livedata web page directory with a history of user macro file names, the macro file content was copied into the file specmacro.txt
that is described as the command file most recently started.
Since a rename on the web page involves other software, first fix the original problem within bluesky.
investigating:
usaxs@usaxscontrol ~/.ipython $ git grep specmacro
profile_bluesky/startup/ref/macros/local/usaxs_commands.mac: theTarget = "/tmp/specmacro.txt"
That directory is for reference only, not used by bluesky. (Might be time to delete it since it was for development of the bluesky code base here.)
Might not need a code fix in the bluesky software. Look to the livedata software. Perhaps move the issue there?
These two URLs have different content as of this morning (and bluesky is running):
Both appear to have content from bluesky.
specmacro.txt
bluesky command sequence
written: 2023-03-01 12:07:29.720387
====== ======================= =============================
line # action parameters
====== ======================= =============================
1 CURRENT_EXPERIMENT_NAME AFL
4 USAXSscan 18.95, 124.5, 0.05, p12-C1-y2
6 saxsExp 18.95, 124.5, 0.05, p12-C1-y2
8 waxsExp 18.95, 124.5, 0.05, p12-C1-y2
====== ======================= =============================
commands.txt
bluesky command sequence
written: 2023-03-02 10:15:21.256411
====== ======================= =============================
line # action parameters
====== ======================= =============================
1 CURRENT_EXPERIMENT_NAME AFL
4 USAXSscan 114.15, 10.2, 0.05, p00-D2-y2
6 saxsExp 114.15, 10.2, 0.05, p00-D2-y2
8 waxsExp 114.15, 10.2, 0.05, p00-D2-y2
====== ======================= =============================
This may be due to change in web page. Currently, web page is looking at https://usaxslive.xray.aps.anl.gov/specmacro.txt to show currently running command file. spec posts this correctly, BS not.