Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add open runs #6

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions snowreport/assets/report_raw_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ def resort_raw(context, **resort_assets) -> pd.DataFrame:
"low_today": pd.to_numeric(resort['weatherToday_Temperature_Low']),
"low_tomorrow": pd.to_numeric(resort['weatherTomorrow_Temperature_Low']),
"high_today": pd.to_numeric(resort['weatherToday_Temperature_High']),
"high_tomorrow": pd.to_numeric(resort['weatherTomorrow_Temperature_High'])
"high_tomorrow": pd.to_numeric(resort['weatherTomorrow_Temperature_High']),
"open_trails": pd.to_numeric(resort['openDownHillTrails'])
})

for resort_name in resorts[1:]:
Expand All @@ -70,7 +71,8 @@ def resort_raw(context, **resort_assets) -> pd.DataFrame:
"low_today": pd.to_numeric(resort['weatherToday_Temperature_Low']),
"low_tomorrow": pd.to_numeric(resort['weatherTomorrow_Temperature_Low']),
"high_today": pd.to_numeric(resort['weatherToday_Temperature_High']),
"high_tomorrow": pd.to_numeric(resort['weatherTomorrow_Temperature_High'])
"high_tomorrow": pd.to_numeric(resort['weatherTomorrow_Temperature_High']),
"open_trails": pd.to_numeric(resort['openDownHillTrails'])
})
resort_summary = resort_summary.append(add_to_summary)

Expand Down
6 changes: 4 additions & 2 deletions snowreport_tests/test_assets.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
'weatherToday_Temperature_Low': ["30"],
'weatherTomorrow_Temperature_Low': ["16"],
'weatherToday_Temperature_High': ["48"],
'weatherTomorrow_Temperature_High': ["37"]
'weatherTomorrow_Temperature_High': ["37"],
'openDownHillTrails': ["1"]
}

resorts = {
Expand All @@ -30,7 +31,8 @@
"low_today": int64,
"low_tomorrow": int64,
"high_today": int64,
"high_tomorrow": int64
"high_tomorrow": int64,
"open_trails": int64
}

@pytest.mark.parametrize(
Expand Down