atcollab / at

Accelerator Toolbox
Apache License 2.0
48 stars 31 forks source link

Lattice tools #562

Closed lfarv closed 1 year ago

lfarv commented 1 year ago

This is a proposal for classes used for matching, correction or simple characterisation of a lattice. We introduce the following classes:

Their use is tested in a prototype of ResponseMatrix classes.

This is proposal open for discussion an improvement. The corresponding documentation is available here

lfarv commented 1 year ago

Here is a Jupyter notebook showing the use of Observables (remove the .txt extension): test_corr.ipynb.txt test_corr.pdf

swhite2401 commented 1 year ago

Hello @lfarv, I had a quick look and it seems very nice! I think on the concept we have already agreed but now we need to look at details...

It is however an enormous piece of code to review and test.... You have asked several times in the past to have separate PRs for separate functionalities and I think it is necessary to apply the same to this one. Could you please split it in several pull requests such that we can test and validate the different features separately.

I can ca propose the following PRs: -axisdef -develop lattice -variables -observables -matching (no done here but maybe the most relevant application for now -> may drive some modification to the PRs above) -response (this will need a lot more inputs than just mine, I would hold onto this for now)

Thanks!

lfarv commented 1 year ago

@swhite2401 : good remark ! The main points hare are variables and observables. I had to look at matching and response matrices to be sure that the variables and observables, as they are now, would fulfil the needs:

All the rest are details…

So I'll split the PR as you propose.

lfarv commented 1 year ago

@swhite2401 : more precisely:

Is it OK like that ?

swhite2401 commented 1 year ago

Sure! No problem. I do not have much time these days so smaller steps are easier to manage for me.

lfarv commented 1 year ago

565 and #566 deal with some parts of this PR, other ones will follow, and I close this PR