Skip to content

Commit

Permalink
fix: circular imports in plot subpackage (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
alxdrcirilo authored Aug 17, 2024
1 parent d2bc78c commit 498d384
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions apple_health_parser/plot/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from .overviews import Overview
from .plots import Plot
5 changes: 2 additions & 3 deletions apple_health_parser/scripts/main.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import click

from apple_health_parser.plot.overviews import ActivityOverview
from apple_health_parser.plot.plots import Plot
from apple_health_parser.plot import Overview, Plot
from apple_health_parser.utils.logging import logger
from apple_health_parser.utils.parser import Parser

Expand Down Expand Up @@ -34,7 +33,7 @@ def main(zip_file: str) -> None:
"HKQuantityTypeIdentifierAppleStandTime",
]
data = parser.get_flag_records(flag=flags)
overview = ActivityOverview(data=data, year=2024, source=source)
overview = Overview(data=data, overview_type="activity", year=2024, source=source)
overview.plot(show=True, save=True, format="svg")


Expand Down

0 comments on commit 498d384

Please sign in to comment.