Skip to content

Accelerator.add() #420

Closed
Closed

Description

@gubaidulinvadim

@gubaidulinvadim
Concerning attachment of self created tool, i think it was already discussed and the idea would be to add a add() method to Accelerator that will automatically do attachment to each cs or simulator instance.

tune2 = Tune('ALTUNE', quad_array_name='QCORR', response_matrix='respmat.json', betatron_tune_name='BETATRON_TUNE2')
tune2.attach(sr.design)
tune2.attach(sr.live)
print(tune2.tune_monitor)

should be:

tune2 = Tune('ALTUNE', quad_array_name='QCORR', response_matrix='respmat.json', betatron_tune_name='BETATRON_TUNE2')
sr.add(tune2)
print(tune2.tune_monitor)

Originally posted by @JeanLucPons in #418 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancement

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions