Python 2 -> Python 3 Tektronics Oscilloscope ISF binary file data extraction
New here? Learn about Bountify and follow @bountify to get notified of new bounties! x

A Python 2 script exists to perform this task:
I need it to work in Python 3.
Deliverable is a Python 3 script for extracting the binary data from a Tektronics ISF file to an array.
The code should be made publicly available on GitHub.

Test Data:
JDelport 26 days ago
20 days ago

Crowdsource coding tasks.

1 Solution

I converted it using 2to3, but I don't have any test data to check that it working correctly, but seems that all should work because there are no any 3rd-party dependencies. My repo:

Hi - I have tried that - it didn't work - the cmp() statement is not valid python 3. On this repository, I share some test data:
JDelport 26 days ago
Thank you for example! I fixed cmp and encoding issues, but seems that provided file couldn't be processed because it's covered by one of this cases:
drakmail 25 days ago
It's headers of provided file: {'bytenum': 2, 'bitnum': 16, 'encoding': 'BINARY', 'binformat': 'RI', 'byteorder': 'MSB', 'wfid': 'Ch1, DC coupling, 1.000mV/div, 400.0ms/div, 10000 points, Sample mode', 'pointformat': 'Y', 'xunit': 's', 'yunit': 'V', 'xzero': -1.996, 'xincr': 0.0004, 'ptoff': 0, 'ymult': 1.5625e-07, 'yzero': 0.0, 'yoff': 128.0, 'npts': 10000}
drakmail 25 days ago
Aw - I'm sorry it doesn't work - but that is a typical file from the oscilloscope that I need to convert. Is it the binary encoding format 'RI' that's the problem?
JDelport 5 days ago