Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reading TDMs Files #283

Open
dinesh-m2 opened this issue Sep 29, 2022 · 2 comments
Open

Reading TDMs Files #283

dinesh-m2 opened this issue Sep 29, 2022 · 2 comments

Comments

@dinesh-m2
Copy link

dinesh-m2 commented Sep 29, 2022

I'm not able to read a TDMs file.
ValueError: Segment does not start with b'TDSm', but with b'LDsf'

I've tried all the methods. The solution mention in #123 doesn't work in my case. Can someone please help me out?
https://user-images.githubusercontent.com/88016397/193087645-189d2318-2c60-4842-856c-d39dbd551712.jpg

@Eifi1
Copy link
Contributor

Eifi1 commented Sep 29, 2022

Hello, could you provide an example file.

Could you furthermore make a screenshot from the file opened with a simple text editor? To make sure the file on the disk is valid.

And at last the first bytes, that appear, when reading with python with the following code snippet from the same location you tried to read with TdmsFile(filepath)?

with open(file path, 'rb') as f:
    print(f.read(10))

@fostermaier
Copy link

I stumbled upon this issue. If anyone sees

ValueError: Segment does not start with b'TDSh', but with b'vers'

specifically referencing vers, the file has not been pulled correctly by LFS.

with open(file, 'r') as f:
    print(f.read(1000000))

>> version https://git-lfs.github.com/spec/v1
>> oid sha256:274f1611b31817a56d406e8638ab15988872003e22162cb7e412
>> size 57193

other issues might be similar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants