-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
Description
Need to create properties for setting and getting the value of a parameter. It should check the type of data that is being set and either massage it into the correct type for the parameter or raise an error at this point. Otherwise the bad value winds up in the packing/unpacking logic and is much more difficult to figure out.
An example would be writing an array of bytes. Really bytes are bit fields so they should be written as an array of arrays. [[False]*8]*5] for example If the user passes an array [False]*5 we could massage that. If they pass an integer [0] we could do that too. If they pass a float then we have a problem.