Skip to content

Help regarding conversion of .ats files into txt format #13

Answered by fsmaibrgm
anilkuhembram asked this question in Q&A
Discussion options

You must be logged in to vote
import razorback as rzb
import pathlib
p = pathlib.Path()
for ats in p.rglob('*.ats'):
    s = rzb.io.ats.load_ats([str(ats)])
    print(ats, s.sampling_rate, s.start, s.data[0].compute())

This will print the ats file name, the sampling rate, the start time and the data values of each ats files in a directory.
Surely, you can start from that to get what you want.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@anilkuhembram
Comment options

@anilkuhembram
Comment options

Answer selected by fsmaibrgm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants