Skip to content

Commit

Permalink
wrote the first version of the apple watch loading function -- need t…
Browse files Browse the repository at this point in the history
…o test
  • Loading branch information
bc299 committed Jan 3, 2024
1 parent 187468b commit c87ac53
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dbdpy/apple_watch.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import xml.etree.ElementTree as ET

from dbdpy.commercial_device import CommercialDevice
from dbdpy.apple_watch import AppleWatch


class AppleWatch(CommercialDevice):
Expand All @@ -25,7 +26,7 @@ def __init__(self,
self.respiration_rate = respiration_rate

@classmethod
def read_file(cls, filepath: str):
def read_file(cls, filepath: str) -> AppleWatch:
# Extract data from XML file and put into dataframe
tree = ET.parse(filepath)
root = tree.getroot()
Expand Down

0 comments on commit c87ac53

Please sign in to comment.