Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Proposal] Pkg extensions for dedicated sampler #34

Open
szabo137 opened this issue Jul 12, 2024 · 0 comments
Open

[Proposal] Pkg extensions for dedicated sampler #34

szabo137 opened this issue Jul 12, 2024 · 0 comments

Comments

@szabo137
Copy link
Member

There might be dedicated samplers for specific processes implemented in QEDprocesses.jl, e.g. Kahn-Sampler for perturbative Compton scattering. However, since we decided to keep the development of QEDprocesses.jl and QEDevents.jl orthogonal, QEDprocesses.jl must not become a dependence. Nevertheless, to implement such type of a sampler, one only needs the types of process, model, and phase-space definition for multiple dispatch. So, I would suggest using package extensions as a solution to this problem. This means, that every sampler that is dedicated to a process given in QEDprocesses.jl should be placed in ext and should use QEDprocesses.jl as a weak dependence. The result is, that this code is loaded, only if QEDprocesses.jl is loaded as well, which must be the case if the sampler input is a process from there in the first place.

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

No branches or pull requests

1 participant