Skip to content

Make Mapping XAFS perspective prototype #31

Open

Description

@stan-dot

would it be possible to send scanspec definitions to Malcolm?

there is some old code to send notifcations to the server over rmq

Activity

  1. stan-dot commented on Dec 9, 2024

    @stan-dot
    ContributorAuthor

    right now we have
    in the mapping scans
    gda gui parameters fill out forms with values -> the various ScanModel definitions with values are parsed inside gda server -> serialized into json -> sent to malcolm IOC where Python read it
    I had a moment of clarity then
    that if we want to get maximum testing time for a scanspec GUI
    we could do
    web gui for scanspec -> nodejs backend serializes into json and sends to -> blueapi service OR malcolm service
    we'd get the benefit of running our scanspec gui for longer and more broadly

    as we wouldn't need to depend on whether the blueapi is stable and whether X beamline has a cluster
    this all hinges on the question - how hard is it to convert ScanSpec into malcolm json

  2. stan-dot commented on Dec 10, 2024

    @stan-dot
    ContributorAuthor

    Screenshot from 2024-12-10 10-49-44
    Screenshot from 2024-12-10 10-49-52
    ![Screenshot from 2024-12-10 10-50-05](https://github.com/user-attachments/assets/6598df54
    ScanManagementController.java.txt
    -b0ec-4d48-8fbf-53a84e0eb207)
    ScanRequestConverter.java.txt

    * CompoundModel {
     *     models:  [ list of models]
     *     regions: [ list of regions]
     *     mutators: [ list of mutators ]
     * }
     * Region {
     *     roi: geometric roi
     *     scannables: [ list of scannable names]
     * }
     
    

    where for example:

    *     models : [
    *         {type: SpiralModel
    *          xAxisName: x
    *          yAxisName: y
    *          ...
    *         }
    *     ]
    *     regions : [
    *        {
    *          roi : {type: CircularROI
    *           centre: [0,1]
    *           radius: 2
    *          }
    *          scannables: ["x", "y"]
    *        }
    *     ]
    *     mutators : [
    *        {
    *           RandomOffsetMutator: {
    *            seed: 10
    *            axes: ["x"]
    *            max_offset: {
    *              "x":0.1
    *            }
    *           }
    *        }
    *     ]
    * }
    

    rectangle_grid_example.json

  3. self-assigned this
    on Jan 13, 2025
  4. stan-dot commented on Jan 13, 2025

    @stan-dot
    ContributorAuthor
  5. stan-dot commented on Jan 13, 2025

    @stan-dot
    ContributorAuthor
  6. stan-dot commented on Feb 3, 2025

    @stan-dot
    ContributorAuthor
  7. removed their assignment
    on Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions