Skip to content
This repository was archived by the owner on May 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #9 from hydroframe/amyj-tests-updates-3
Browse files Browse the repository at this point in the history
Amyj tests updates 3
  • Loading branch information
amymjohnson4000 authored Oct 18, 2023
2 parents 2c1f92b + d15135d commit 4dce255
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions src/hf_point_data/hf_point_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@
HYDRODATA = "/hydrodata"
DB_PATH = f"{HYDRODATA}/national_obs/point_obs.sqlite"
HYDRODATA_URL = os.getenv("HYDRODATA_URL", "https://hydro-dev-aj.princeton.edu")
HYDRODATA = "/hydrodata"
DB_PATH = f"{HYDRODATA}/national_obs/point_obs.sqlite"
HYDRODATA_URL = os.getenv("HYDRODATA_URL", "https://hydro-dev-aj.princeton.edu")


def get_data(data_source, variable, temporal_resolution, aggregation, **kwargs):
"""
Expand Down
2 changes: 1 addition & 1 deletion src/hf_point_data/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ def get_data_nc(site_list, var_id, **kwargs):
print('data collected.')

data_df = convert_to_pandas(ds)
if 'min_num_obs' in kwargs:
if 'min_num_obs' in kwargs and kwargs['min_num_obs'] is not None:
return filter_min_num_obs(data_df, kwargs['min_num_obs'])
else:
return data_df
Expand Down

0 comments on commit 4dce255

Please sign in to comment.