Skip to content

Make a page for XANES #28

Open
Open

Description

@stan-dot
No description provided.

Activity

  1. self-assigned this
    on Mar 20, 2025
  2. stan-dot commented on Mar 24, 2025

    @stan-dot
    ContributorAuthor

    need the screenshots, sent message and waiting on input

  3. changed the title [-]Make a page for XAFS scan definition[/-] [+]Make a page for XANES[/+] on Mar 25, 2025
  4. stan-dot commented on Mar 25, 2025

    @stan-dot
    ContributorAuthor

    /dls_sw/i18/software/gda/config/templates/XANES_Parameters.xml

  5. stan-dot commented on Apr 2, 2025

    @stan-dot
    ContributorAuthor

    i18 and i20 use this

  6. andrea84718 commented on Apr 4, 2025

    @andrea84718
    Collaborator

    XANES scan view and xml
    Image

    <XanesScanParameters> <shouldValidate>true</shouldValidate> <scannableName>energy</scannableName> <element>Cu</element> <edge>K</edge> <region> <energy>8824.0</energy> <step>7.75</step> <time>1.0</time> </region> <region> <energy>8948.0</energy> <step>1.55</step> <time>0.5</time> </region> <region> <energy>8963.5</energy> <step>0.31</step> <time>1.0</time> </region> <region> <energy>8994.5</energy> <step>1.55</step> <time>1.8</time> </region> <region> <energy>9010.0</energy> <step>3.1</step> <time>5.0</time> </region> <finalEnergy>9829.0</finalEnergy> </XanesScanParameters>

  7. stan-dot commented on Apr 4, 2025

    @stan-dot
    ContributorAuthor

    leave the 'set defaults empty for now'
    steps to make this work with the existing xml setup:

    1. define Zod schemas for each kind of object - region AND the full one. reference Element as string, and make an enum for available edges
    2. add the xanes.xml to setupFiles.js so that it's initalized for dev environment
    3. add a next-safe-action (server) and xanes context (frontend) to use the schemas for data. Here the difficult part - need to wrap the regions list into RegionsListXml with the util functions prior to zod parsing - see existing xml parsing logic.
    4. test displaying raw json onto the website without interactive logic to verify that the transformation chain is correct from filestystem -> backend -> frontend conext -> DOM
    5. create the frontend logic based on z.infer. allow users to add and remove regions with MUI components.
    6. add frontend final energy, core hole caluclations
  8. stan-dot commented on Apr 29, 2025

    @stan-dot
    ContributorAuthor

    might be superceded by a pure bluesky + squid implementation

  9. stan-dot commented on May 28, 2025

    @stan-dot
    ContributorAuthor

    this might be not necessary, unassigning.

    config server woudl simplify this, that would go into the next-safe-action but no idea what approach will be tested, cutting this item for more focus for now

  10. removed their assignment
    on May 28, 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