Closed hodjat91 closed 4 years ago
Hi Hodjat,
Good catch, here. I didn't have any tests for using variables standalone, and they were only getting initialized when created inside a 'randobj' class. Perfectly sensible usecase, of course, so it works now (release 0.0.9). I've also added global randomize
and randomize_with
methods for randomizing these. Here's an example:
https://github.com/fvutils/pyvsc/blob/dab2f170ffcadb39ed670e2bc8a0887f26c855b0/ve/unit/test_field_standalone.py#L26-L33
Best Regards, Matthew
Hi Matthew,
Perhaps I'm missing something here, but I was trying to use
get/set_val
methods for a scalar attribute. Is this small piece of code valid?:Error:
AttributeError: 'NoneType' object has no attribute 'get_val'
However, I can change the value of the object with
x.val
attribute.Thanks, Hodjat