You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The MC Sampler converts integer inputs to floats when using the DiscreteUniform distribution. While the numerical values remain integers, they are of type float (e.g., 220.0 instead of 220). This means EasyVVUQ encounters an error as it expects an integer.
Integer Parameter: Define a new parameter as an integer type.
DiscreteUniform Distribution: Assign a DiscreteUniform distribution to the integer parameter.
Run MC Sampler: Execute the model using the MC Sampler.
Expected Behavior:
The MC Sampler should sample integer values from the DiscreteUniform distribution and pass them directly to EasyVVUQ without any conversion.
Observed Behavior:
The MC Sampler converts integer inputs to floats before passing them to EasyVVUQ, causing an error because EasyVVUQ expects an integer.
Potential Solution:
The documentation for Chaospy suggests using the interpret_as_integer flag. However, debugging indicates that the flag is already being set correctly in MCSampler.py. Further investigation is needed to identify the root cause of the conversion.
The text was updated successfully, but these errors were encountered:
Description:
The MC Sampler converts integer inputs to floats when using the DiscreteUniform distribution. While the numerical values remain integers, they are of type float (e.g., 220.0 instead of 220). This means EasyVVUQ encounters an error as it expects an integer.
Steps to Reproduce:
A minimum working example demonstrating the issue is available here: https://drive.google.com/file/d/17NlEwNK-lSe56C9Ucu6_2MkKbD1lfGdO/view?usp=share_link
Alternatively, modify the basic tutorial with:
Expected Behavior:
The MC Sampler should sample integer values from the DiscreteUniform distribution and pass them directly to EasyVVUQ without any conversion.
Observed Behavior:
The MC Sampler converts integer inputs to floats before passing them to EasyVVUQ, causing an error because EasyVVUQ expects an integer.
Potential Solution:
The documentation for Chaospy suggests using the interpret_as_integer flag. However, debugging indicates that the flag is already being set correctly in MCSampler.py. Further investigation is needed to identify the root cause of the conversion.
The text was updated successfully, but these errors were encountered: