Skip to content

Doc: changed theme (AT theme) and added draft how-to's from notebooks#61

Merged
gubaidulinvadim merged 15 commits intomainfrom
doc
Nov 7, 2025
Merged

Doc: changed theme (AT theme) and added draft how-to's from notebooks#61
gubaidulinvadim merged 15 commits intomainfrom
doc

Conversation

@simoneliuzzo
Copy link
Contributor

No description provided.

@gubaidulinvadim gubaidulinvadim linked an issue Nov 7, 2025 that may be closed by this pull request
@gubaidulinvadim
Copy link
Contributor

I've linked an issue to this merge request because I think after it's merged the issue will be mostly resolved.

@simoneliuzzo
Copy link
Contributor Author

I've linked an issue to this merge request because I think after it's merged the issue will be mostly resolved.

ok! I hope I will be able to make it work.

@simoneliuzzo
Copy link
Contributor Author

So, at this stage, we can add in the documentation notebooks howto/examples. I have added 2 just as examples. I will do better.

gubaidulinvadim
gubaidulinvadim previously approved these changes Nov 7, 2025
@gubaidulinvadim gubaidulinvadim self-requested a review November 7, 2025 10:19
@gubaidulinvadim
Copy link
Contributor

@simoneliuzzo the examples may need some correction. I've looked at the tune, for example, there you are missing the disable_6d() for the lattice.

@gubaidulinvadim
Copy link
Contributor

I've corrected the example. It is a bit uglier now. There's no function get_tune() on the level of a Simulator. You can use tune_monitor to get the tune in Simulator or Live mode.

gubaidulinvadim
gubaidulinvadim previously approved these changes Nov 7, 2025
@simoneliuzzo
Copy link
Contributor Author

the notebooks are even disabled, in fact I did not run them!

@simoneliuzzo
Copy link
Contributor Author

@gubaidulinvadim

the example is supposed to run for live and design in the same way. SR.live.get_lattice().get_tune() exists?

The point of the example was to show that the same scripts runs in simulation or live mode identical.

@gubaidulinvadim
Copy link
Contributor

No, the sr.live does not have an access to lattice. It is only set for sr.design. I've modified the example again to make it a bit prettier. I think you've copied some old script for the notebook. For the moment, without using a tune_monitor, you cannot get identical interface in design or live. Now in the example, you could replace .design -> .live everywhere and it should work on a real accelerator.

@gubaidulinvadim gubaidulinvadim self-requested a review November 7, 2025 11:00
gubaidulinvadim
gubaidulinvadim previously approved these changes Nov 7, 2025
@simoneliuzzo
Copy link
Contributor Author

@gubaidulinvadim

I have modified again live_design switch to try to make it really do what we promise, work as MML, a simple switch makes the whole script work for live or simulations.

The same example shows also the new feature: both modes are available at the same time if needed (in particular true for design)

@gubaidulinvadim gubaidulinvadim self-requested a review November 7, 2025 11:55
@gubaidulinvadim gubaidulinvadim merged commit faef4e2 into main Nov 7, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create a README with examples

2 participants