Skip to content

Commit

Permalink
fixup! time format: implement fractional time format
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjnixon committed Nov 28, 2023
1 parent 553a2ae commit b26a753
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ear/fileio/adm/time_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ def format_numerator(self) -> int:
"""numerator of the non-normalised fraction this represents"""
return self.numerator * self._format_multiplier

@property
def format_denominator(self) -> int:
"""denominator of the non-normalised fraction this represents"""
return self.denominator * self._format_multiplier

@classmethod
def from_fraction(
cls, fraction: Fraction, format_denominator: int
Expand Down

0 comments on commit b26a753

Please sign in to comment.