Keysight/python-trsfile

ValueError: The value for a TraceParameter cannot be empty

Closed this issue · 3 comments

ValueError: The value for a TraceParameter cannot be empty

c7689a2b1d92017c1df591bf540952e

I can't create a .trs file according to your README - Creating .trs files. Specifically, Pycharm shows "ValueError: The value for a TraceParameter cannot be empty". What should I do? Thank you!

Which operating system and version of python are you using? The behavior of os.urandom depends on both.
You could check whether os.urandom(16) is producing an empty array of values, and if it is, choose a different method of producing a byte array.

Which operating system and version of python are you using? The behavior of os.urandom depends on both.
You could check whether os.urandom(16) is producing an empty array of values, and if it is, choose a different method of producing a byte array.

Thank you very much! My error caused by adding extra attributes of header. Now it solved!