Skip to content

Commit

Permalink
Merge pull request #6 from MoPrince/patch-2
Browse files Browse the repository at this point in the history
Update ibadatfile.py
  • Loading branch information
phil65 authored Sep 19, 2024
2 parents a6cc666 + 845f437 commit 9b629e4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ibadatfile/ibadatfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ def pda_type(self) -> str:
"""Return the channel unit."""
return self.channel.QueryInfoByName("$PDA_Typ")


def tbased(self):
"""Return the channel sampling rate for each channel."""
return float(self.channel.QueryInfoByName("$PDA_Tbase"))

def data(self) -> np.array:
"""Return the channel data."""
if self.channel.IsDefaultTimebased():
Expand Down

0 comments on commit 9b629e4

Please sign in to comment.