wfdb-python icon indicating copy to clipboard operation
wfdb-python copied to clipboard

the valid range of A(annotation type value)

Open fosaken opened this issue 9 months ago • 0 comments

Why should the value of A be restricted to between 1 and 49? The values greater than 58 are pre-defined as (skip-59, num-60, sub-61, chan-62, aux-63),Can I define the values between 49 and 58(bound included)? and lift this restriction?

https://github.com/MIT-LCP/wfdb-python/blob/main/wfdb/io/annotation.py#L563


        elif field == "label_store":
            if min(item) < 1 or max(item) > 49:
                raise ValueError(
                    "The label_store values must be between 1 and 49"
                )

fosaken avatar Mar 06 '25 00:03 fosaken