python-trsfile icon indicating copy to clipboard operation
python-trsfile copied to clipboard

TraceSet is interpreted incorrectly if no data is specified

Open Siebje opened this issue 3 years ago • 1 comments

To reproduce:

  • Create an empty trace set with the header containing only Header.TRS_VERSION: 2
  • Try to open the trace set

Expected:

  • The trace set can be opened

Actual: [ERROR] 13:59:31 FIPy base_request_handler.py:_handle_request_exception:43 | Traceback (most recent call last): [...] File "\trsfile\engine\trs.py", line 301, in get_traces parameters = self.read_parameter_data() File "\trsfile\engine\trs.py", line 323, in read_parameter_data parameters['LEGACY_DATA'] = ByteArrayParameter(data) File "\trsfile\traceparameter.py", line 23, in init raise ValueError('The value for a TraceParameter cannot be empty')

Siebje avatar Jan 21 '22 13:01 Siebje