BASIN-3D / basin3d

The core BASIN-3D application that uses a generalized data synthesis model that applies across a variety of earth science observation types (hydrology, geochemistry, climate etc.). https://basin3d.readthedocs.io/
Other
13 stars 4 forks source link

Strange warning about querying USGS site info #91

Open vchendrix opened 3 years ago

vchendrix commented 3 years ago

Describe the bug The following log warning is outout when querying USGS for data

WARNING:root:Could not connect to USGS site info: _log() got an unexpected keyword argument 'url'

To Reproduce Steps to reproduce the behavior:

Execute the following code.

# All the imports
import datetime
import os
import sys

import h5py
import pandas

from basin3d import synthesis
from basin3d.plugins import usgs
import logging
logging.basicConfig(stream=sys.stdout, level=logging.DEBUG)

# Register the USGS Plugin
synthesizer = synthesis.register()

# Create a query dictionary
query_info = {}
query_info['observed_property_variables'] = ['RDC', 'WT']
query_info['start_date'] = '2020-01-01'
query_info['end_date'] = '2020-01-02'
query_info['monitoring_features'] = 'USGS-02'

# NOTE: this will not work for the current version of basin3d because
#  the return for get_timeseries_data()  was changed to a SynthesizedTimeseriesData
#  object.
output = synthesis.get_timeseries_data(synthesizer, **query_info)
vchendrix commented 1 year ago

The reproduce code will have to change to use basin3d core and note basin3d-views