Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

Issue Reusing Energy-Join Notebook #12

Open
0Architectus0 opened this issue Feb 24, 2020 · 0 comments
Open

Issue Reusing Energy-Join Notebook #12

0Architectus0 opened this issue Feb 24, 2020 · 0 comments

Comments

@0Architectus0
Copy link

0Architectus0 commented Feb 24, 2020

@trevorbye @azure-sdk or whoever is managing this repo,
I'm having an issue recreating the energy join script using my own data. The problem looks like it's coming from the default logging level of the get_opendatasets_logger(verbosity) but I don't know. My data has been formatted exactly like the example with the exception of quantity. Please let me know if you have any advice.

[2020-02-24 03:25:20.519961] Start enriching...


ValueError Traceback (most recent call last)
in
34 end_date=j_date)
35
---> 36 weather_enricher = weather.get_enricher()
37
38 new_energy, processed_weather = weather_enricher.enrich_customer_data_no_agg(

/usr/local/lib/python3.5/dist-packages/azureml/opendatasets/accessories/public_data.py in get_enricher(self)
98 self.log_properties['ActivityType'] = ActivityType.PUBLICAPI
99 _PublicDataTelemetry.log_event('get_enricher', **self.log_properties)
--> 100 return self._get_enricher(None)
101 else:
102 return self._get_enricher(None)

/usr/local/lib/python3.5/dist-packages/azureml/opendatasets/_noaa_isd_weather.py in _get_enricher(self, activity_logger)
129 :return: enricher object
130 """
--> 131 return CommonWeatherEnricher(self, enable_telemetry=self.enable_telemetry)
132
133 def get_pandas_limit(self):

/usr/local/lib/python3.5/dist-packages/azureml/opendatasets/enrichers/common_weather_enricher.py in init(self, public_data_object, enable_telemetry)
31 """
32 self.public_data = public_data_object
---> 33 super(CommonWeatherEnricher, self).init(enable_telemetry=enable_telemetry)
34
35 def _get_location_granularity(self, _granularity: str)\

/usr/local/lib/python3.5/dist-packages/azureml/opendatasets/enrichers/enricher.py in init(self, enable_telemetry)
57 self.enable_telemetry = enable_telemetry
58 if self.enable_telemetry:
---> 59 self.logger = get_opendatasets_logger(name)
60 self.log_properties = self.get_common_log_properties()
61

/usr/local/lib/python3.5/dist-packages/azureml/opendatasets/_utils/telemetry_utils.py in get_opendatasets_logger(verbosity)
45 logger = logging.getLogger(OPENDATASETS_LOGGER_NAMESPACE)
46 logger.propagate = False
---> 47 logger.setLevel(verbosity)
48 add_console_log_handler(logger)
49 return logger

/usr/lib/python3.5/logging/init.py in setLevel(self, level)
1253 Set the logging level of this logger. level must be an int or a str.
1254 """
-> 1255 self.level = _checkLevel(level)
1256
1257 def debug(self, msg, *args, **kwargs):

/usr/lib/python3.5/logging/init.py in _checkLevel(level)
185 elif str(level) == level:
186 if level not in _nameToLevel:
--> 187 raise ValueError("Unknown level: %r" % level)
188 rv = _nameToLevel[level]
189 else:

ValueError: Unknown level: 'azureml.opendatasets.enrichers.enricher'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant