Skip to content
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

WIP: Fly scans with ID/Mono #19

Merged
merged 65 commits into from
Nov 10, 2022
Merged

WIP: Fly scans with ID/Mono #19

merged 65 commits into from
Nov 10, 2022

Conversation

mrakitin
Copy link
Member

@mrakitin mrakitin commented Jan 11, 2021

Work during the 2021-1 shutdown with @dhidas, @andrewmkiss and @rrobinyang.

TODO:

  • get a screenshot for the CSS screen for the scan engine.

@mrakitin
Copy link
Member Author

Implemented the flyer, the collection was successful, but the data access had issues. Here is the output from a separate branch rebased on #24 PR branch, so that we can run databroker v1 with more informative error messages:

BlueSky@SRX [6]: hdr.table(fill=True)
An exception has occurred, use '%tb verbose' to see the full traceback.
FileNotFoundError: [Errno 2] No such file or directory: '/epicsdata/bpm1-cam1/2020/11/07/864b7223-45f0-4aa3-805b_000011.tiff'

The above exception was the direct cause of the following exception:
DataNotAccessible: Filler was unable to load the data referenced by the Datum document {'datum_id': '47ac9826-2fbd-43d7-8231-14ff3dccd945/1', 'datum_kwargs': {'point_number': 1}, 'resource': '47ac9826-2fbd-43d7-8231-14ff3dccd945'} and the Resource document Resource({'spec': 'AD_TIFF', 'root': '/', 'resource_path': 'epicsdata/bpm1-cam1/2020/11/07', 'resource_kwargs': {'template': '%s%s_%6.6d.tiff', 'filename': '864b7223-45f0-4aa3-805b', 'frame_per_point': 11}, 'path_semantics': 'posix', 'uid': '47ac9826-2fbd-43d7-8231-14ff3dccd945', 'run_start': 'de98d797-1b63-40e0-82d4-a91fa7240f33'}).

See /var/log/bluesky/bluesky.log for the full traceback.

BlueSky@SRX [7]: !ls -la /epicsdata/bpm1-cam1/2020/11/07/864b7223-45f0-4aa3-805b_000011.tiff
ls: cannot access /epicsdata/bpm1-cam1/2020/11/07/864b7223-45f0-4aa3-805b_000011.tiff: No such file or directory

Looks like we haven't correctly specified frame_per_point. Need to address it based on https://github.com/NSLS-II-HXN/flyer_profile/blob/58211887966278a7b90759623bbc9481d8a6a6c5/startup/10-detectors.py#L93-L98.

@mrakitin
Copy link
Member Author

@andrewmkiss, I rebased this PR branch on new_metadata.

@mrakitin mrakitin changed the base branch from master to new_metadata May 24, 2021 15:36
@mrakitin
Copy link
Member Author

mrakitin commented May 25, 2021

TODOs:

  • make sure the HDCM parameters are updated based on the values from
    cal_data_2020cycle3 = {
    "d_111": 3.130123901447958,
    "delta_bragg": 0.2067058867709387,
    "C2Xcal": 3.6,
    "T2cal": 15.0347755916,
    "xoffset": 24.60,
    }
  • use xspress3 + zebra as a detector in the flyer

Andy Kiss and others added 6 commits September 20, 2021 16:54
…tead of each pass. Added additional metadata to start doc.
-Added direction flag for scanning one or both directions
-Added plotting flag
-WIP Added LivePlot
-WIP Tried to add some cleanup for stop/abort. Don't think it worked
-Added function to do the cleanup that stop/abort isn't doing
-Updated TODO
@mrakitin
Copy link
Member Author

@andrewmkiss, should we merge this PR to make the code available in the production branch?

Andy Kiss and others added 21 commits February 25, 2022 11:05
- took into account occasional dropped frames from the xs3
- added abort function, not sure if it works
- added for kwargs to fly_multiple_passes
- tried to improve export data to file function
@andrewmkiss andrewmkiss merged commit a4fde35 into master Nov 10, 2022
@andrewmkiss andrewmkiss deleted the fly-scans branch November 10, 2022 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants