DiamondLightSource / Opt-ID

Code for the Optimisation of ID's using Python and Opt-AI
Apache License 2.0
7 stars 6 forks source link

generate a mag vector from a perfect config #9

Closed markbasham closed 10 years ago

markbasham commented 10 years ago

So with perfect magnets

markbasham commented 10 years ago

Ok, this is a little more tricky, as we have to think about how things will actualy work

we have a json file with the description in it we have a h5 file with the lookup in it.

To generate a value i need to find the fist magnet, work out what type it is, then pull the next item from the appriopriate list to populate it.

So to do this i will use the nice bit of lists with pop()

So i need to create a copy of the list then provide it to the builder so that it can pop off the bits it needs. this copy can then be passed round to the other beams as appropriate

markbasham commented 10 years ago

so done