Skip to content

Conversation

@gdalmaso96
Copy link
Contributor

Now the logic of Machine().Insert(element) is fixed and allows to either insert an element by passing an object or a string.

Beam.SetDistributionType() now allows for beams of the kind "bdsimsampler:SAMPLER". Up to now, the function was looking for a match in the BDSIMDistributionTypes list instead.

Tests are included.

if substitute on, the element is now properly substituted. Also, if a
string is given now, the element is properly inserted in the sequence.
To run a sampler from a bdsim output one can set the distribution type
to "bdsimsampler:sampler", which is otherwise not in BDSIMDistributionTypes.
When setting a distribution to bdsimsampler:SAMPLER,
SetDistributionType looks for "bdsimsampler:" to be part of the
definition rather than "bdsimsampler" only.
Copy link
Contributor

@lnevay lnevay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

Now eventgeneratorfile:FORMAT can be set in SetDistributionType() as
well
@lnevay lnevay self-assigned this Sep 8, 2025
@lnevay lnevay merged commit de6253b into bdsim-collaboration:master Sep 8, 2025
5 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.

2 participants