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
D1 and D2 should produce different results after using dist_sample. The problem is caused by both AeroDists being initialized with only the M1 mode. The assertion in code above should pass when the bug is fixed.
NOTE: There's no issue if you initialize D2 with [{"mode2":M2, "mode1":M1}].
The text was updated successfully, but these errors were encountered:
The bug causes the README code to ignore the first mode.
Here's a change that should fix the README bug: #394
The concept of checking input spec-file data for being used entirely by PyPartMC, proposed in #54, will make such bug turn into a Python error with an understandable message to the user. As you've discovered the bug working on #54, it shows how important is to have this feature.
The test case you provided is great, and will be a good test to include in a PR for #54 to clearly depict why we need it.
Code example:
D1
andD2
should produce different results after usingdist_sample
. The problem is caused by both AeroDists being initialized with only theM1
mode. The assertion in code above should pass when the bug is fixed.NOTE: There's no issue if you initialize
D2
with[{"mode2":M2, "mode1":M1}]
.The text was updated successfully, but these errors were encountered: