Git Product home page Git Product logo

Comments (8)

stan-dot avatar stan-dot commented on August 10, 2024

i03, i04 and i22 +p38 use this device.
@DominicOram do you have any tips/requirements for this issue?

from dodal.

DominicOram avatar DominicOram commented on August 10, 2024

We already do set it in https://github.com/DiamondLightSource/dodal/blob/main/src/dodal/devices/undulator_dcm.py. We just wrap it in a composite device with the DCM as we want to always move both at the same time. Presumably you want to do that too? Or are you just moving the undulator? Does this just boil down to adding a set method that calls gap_motor.set?

from dodal.

stan-dot avatar stan-dot commented on August 10, 2024

I am not sure, will investigate with @iain-hall

from dodal.

stan-dot avatar stan-dot commented on August 10, 2024

yes, ordinarily for scans they move syncrhonously, but this use case is for adjusting them, setting up the desired gap between the elements.

in this instance, we do need to move those independently from one another, therefore we need to have a movable undulator.

Either we make an update to the existing Undulator. This sounds more DRY but might disrupt existing workflows.
An alternative would be to make a new, lookup-tables specific undulator, used only for those times and discarded afterwards. This could be beamline specific or not.

The latter should be fairly simple, as in GDA it's just a simple EpicsMotor at the moment.

from dodal.

stan-dot avatar stan-dot commented on August 10, 2024

will also need a new device that uses redis-cached lookup tables instead of the filesystem text files.

from dodal.

DominicOram avatar DominicOram commented on August 10, 2024

An alternative would be to make a new, lookup-tables specific undulator, used only for those times and discarded afterwards. This could be beamline specific or not.

The undulator_dcm I linked already does this. You can just move that behaviour into the undulator instead and we can use it in both cases.

will also need a new device that uses redis-cached lookup tables instead of the filesystem text files.

Do you have an existing redis-cache for this? Have you discussed with the scientists how they want to update it?

from dodal.

stan-dot avatar stan-dot commented on August 10, 2024

this will be exposed as a task in the i18_bluesky, and would be updated from there. perhaps another endpoint would display what the current values are? redis-cache needs deployment from scratch.

Ok thanks, I'll move that behavior into the undulator (make it have the motor)

from dodal.

stan-dot avatar stan-dot commented on August 10, 2024

redis deployment is tracked here DiamondLightSource/i18-bluesky#4 (comment)

from dodal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.