Closed ShraddhaDevaiya closed 4 years ago
Good catch, @ShraddhaDevaiya. I supported range specification as tuples, but not the vsc.rng format. Release 0.1.7 contains support for specifying weight ranges using vsc.rng.
Best Regards, Matthew
Hi @mballance , still it is giving me an error with this code. Can you please show me an example?
Thanks & Regards, Shraddha Devaiya.
Of course. Here's a link to the test I created from your example: https://github.com/fvutils/pyvsc/blob/71623e49f294364eacdd4639e5b84480f256e9a7/ve/unit/test_constraint_dist.py#L301-L326
I'll reopen this for now until we're able to confirm that it's been resolved.
Best Regards, Matthew
Hi, @mballance , Sorry for the delay. One thing I have observed in this code. With randomization , it is only giving my_e.C and my_e.D. I have run this 15 times, but it is just giving these two values. Just wanted to confirm, is this the same behavior at your end ? means my_e.B and my_e.A are not coming, but it is included in range.
Hi @ShraddhaDevaiya, Ah... I can see the issue. I believe the issue is now resolved in 0.1.8, and all values will be produced (subject to weighting, of course). Please confirm that you see the same.
Thanks and Regards, Matthew
Yeah now it is working !
Thanks & Regards, Shraddha Devaiya.
Hi @mballance, I was trying to use range in weighted distribution with Enum type values, because if we have many values in Enum class, then it seems little impractical to add every values between certain range in weighted distribution constraint. So, I was trying following code :
But for this rightnow we are getting syntax error. So, can you please take a look into this?
Thanks & Regards, Shraddha Devaiya.