Skip to content

Commit

Permalink
ENH: Importing warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamTheisen committed Oct 9, 2023
1 parent e4c080e commit 6bb07ea
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 1 deletion.
7 changes: 7 additions & 0 deletions act/discovery/get_airnow.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@

"""
Function for getting EPA data from AirNow data portal
"""

import pandas as pd
import numpy as np
import xarray as xr
import warnings


def get_airnow_forecast(token, date, zipcode=None, latlon=None, distance=25):
Expand Down
1 change: 1 addition & 0 deletions act/discovery/get_cropscape.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import datetime
import requests
import warnings

try:
from pyproj import Transformer
Expand Down
1 change: 1 addition & 0 deletions act/discovery/get_neon.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import os
import shutil
import pandas as pd
import warnings


def get_site_products(site_code, print_to_screen=False):
Expand Down
2 changes: 1 addition & 1 deletion act/discovery/get_noaapsl.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import pandas as pd
import numpy as np
import os
import warnings

try:
from urllib.request import urlopen
Expand Down Expand Up @@ -64,7 +65,6 @@ def download_noaa_psl_data(site=None, instrument=None, startdate=None, enddate=N
message = 'API will be changing from act.discovery.get_noaapsl to act.discovery.noaapsl'
warnings.warn(message, DeprecationWarning, 2)


if (site is None) or (instrument is None) or (startdate is None):
raise ValueError('site, instrument, and startdate need to be set')

Expand Down
1 change: 1 addition & 0 deletions act/discovery/get_surfrad.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import os
import re
import requests
import warnings

try:
from urllib.request import urlopen
Expand Down

0 comments on commit 6bb07ea

Please sign in to comment.