You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
leave the 'set defaults empty for now'
steps to make this work with the existing xml setup:
define Zod schemas for each kind of object - region AND the full one. reference Element as string, and make an enum for available edges
add the xanes.xml to setupFiles.js so that it's initalized for dev environment
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.
test displaying raw json onto the website without interactive logic to verify that the transformation chain is correct from filestystem -> backend -> frontend conext -> DOM
create the frontend logic based on z.infer. allow users to add and remove regions with MUI components.
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
Activity
stan-dot commentedon Mar 24, 2025
need the screenshots, sent message and waiting on input
[-]Make a page for XAFS scan definition[/-][+]Make a page for XANES[/+]stan-dot commentedon Mar 25, 2025
stan-dot commentedon Apr 2, 2025
i18 and i20 use this
andrea84718 commentedon Apr 4, 2025
XANES scan view and xml

<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>stan-dot commentedon Apr 4, 2025
leave the 'set defaults empty for now'
steps to make this work with the existing xml setup:
stan-dot commentedon Apr 29, 2025
might be superceded by a pure bluesky + squid implementation
stan-dot commentedon May 28, 2025
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