-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #70 from zmoon/mm-fix
Fixes for MM data proc examples
- Loading branch information
Showing
5 changed files
with
91 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import pandas as pd | ||
import pytest | ||
|
||
from monetio import aqs | ||
|
||
|
||
def test_aqs(): | ||
# For MM data proc example | ||
dates = pd.date_range(start="2019-08-01", end="2019-08-31", freq="H") | ||
# Note: will retrieve full year | ||
network = "NCORE" # CSN NCORE CASTNET | ||
with pytest.warns(UserWarning, match="Short names not available for these variables"): | ||
df = aqs.add_data(dates, param=["PM10SPEC"], network=network, wide_fmt=False, daily=True) | ||
assert (df.variable == "").sum() == 0 |