Skip to content

Commit

Permalink
Manager.analog_resolution impl.
Browse files Browse the repository at this point in the history
  • Loading branch information
MattiasFredriksson committed Mar 13, 2022
1 parent 1333401 commit bf3feb4
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions c3d/c3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -1463,9 +1463,17 @@ def analog_format_unsigned(self):

@property
def analog_resolution(self):
''' Bit resolution the analog samples are recorded at (it 'should' not affect how the data is stored).
Values mentioned in the standard are 12, 14, or 16 bit resolution, with 16 bit defined as standard.
''' Bit resolution the analog samples are recorded at.
Reads the 'ANALOG:BITS' parameter to determine the resolution. Valid values mentioned in the standard
are 12, 14, or 16 bit resolution, with 16 bit defined as standard. Note that the BITS parameter 'should'
not affect how analog data is stored in the file, rather it is information for how to interpret the data.
'''
param = self.get('ANALOG:BITS')
if param is not None:
return param.int32_value
return 'SIGNED'


@property
def point_labels(self):
Expand Down

0 comments on commit bf3feb4

Please sign in to comment.