Open mblasnik opened 9 years ago
Having trouble reproducing. Are you using the same input files you sent?
On Friday, July 31, 2015, mblasnik notifications@github.com wrote:
I tried the new version and got this error, which seems to stumble on the same piece of code but with a new error message about "new type not compatible with array".
Traceback (most recent call last): File "", line 2, in File "/usr/local/nest-python-local/lib/python/site-packages/thermostat/metrics.py", line 33, in calculate_epa_draft_rccs_field_savings_metrics for cooling_season, season_name in thermostat.get_cooling_seasons(): File "/usr/local/nest-python-local/lib/python/site-packages/thermostat/core.py", line 381, in get_cooling_seasons inclusion = after_start & before_end & meets_cooling_thresholds & meets_heating_thresholds & day_is_complete File "/usr/local/nest-python-2.7.8-Darwin-x86_64-20140826/Python.framework/Versions/2.7/lib/python2.7/site-packages/pandas/core/index.py", line 964, in and return self.intersection(other) File "/usr/local/nest-python-2.7.8-Darwin-x86_64-20140826/Python.framework/Versions/2.7/lib/python2.7/site-packages/pandas/tseries/index.py", line 1120, in intersection result = Index.intersection(self, other) File "/usr/local/nest-python-2.7.8-Darwin-x86_64-20140826/Python.framework/Versions/2.7/lib/python2.7/site-packages/pandas/core/index.py", line 1070, in intersection this = self.astype('O') File "/usr/local/nest-python-2.7.8-Darwin-x86_64-20140826/Python.framework/Versions/2.7/lib/python2.7/site-packages/pandas/tseries/index.py", line 712, in astype return self.asobject File "/usr/local/nest-python-2.7.8-Darwin-x86_64-20140826/Python.framework/Versions/2.7/lib/python2.7/site-packages/pandas/core/base.py", line 412, in asobject return Index(self._box_values(self.asi8), name=self.name, dtype=object) File "/usr/local/nest-python-2.7.8-Darwin-x86_64-20140826/Python.framework/Versions/2.7/lib/python2.7/site-packages/pandas/core/index.py", line 1906, in asi8 return self.values.view('i8') ValueError: new type not compatible with array.
— Reply to this email directly or view it on GitHub https://github.com/impactlab/thermostat/issues/5.
Yes -- same inout files and same commands
On Fri, Jul 31, 2015 at 10:02 AM, Phil Ngo notifications@github.com wrote:
Having trouble reproducing. Are you using the same input files you sent?
On Friday, July 31, 2015, mblasnik notifications@github.com wrote:
I tried the new version and got this error, which seems to stumble on the same piece of code but with a new error message about "new type not compatible with array".
Traceback (most recent call last): File "", line 2, in File
"/usr/local/nest-python-local/lib/python/site-packages/thermostat/metrics.py", line 33, in calculate_epa_draft_rccs_field_savings_metrics for cooling_season, season_name in thermostat.get_cooling_seasons(): File
"/usr/local/nest-python-local/lib/python/site-packages/thermostat/core.py", line 381, in get_cooling_seasons inclusion = after_start & before_end & meets_cooling_thresholds & meets_heating_thresholds & day_is_complete File
"/usr/local/nest-python-2.7.8-Darwin-x86_64-20140826/Python.framework/Versions/2.7/lib/python2.7/site-packages/pandas/core/index.py", line 964, in and return self.intersection(other) File
"/usr/local/nest-python-2.7.8-Darwin-x86_64-20140826/Python.framework/Versions/2.7/lib/python2.7/site-packages/pandas/tseries/index.py", line 1120, in intersection result = Index.intersection(self, other) File
"/usr/local/nest-python-2.7.8-Darwin-x86_64-20140826/Python.framework/Versions/2.7/lib/python2.7/site-packages/pandas/core/index.py", line 1070, in intersection this = self.astype('O') File
"/usr/local/nest-python-2.7.8-Darwin-x86_64-20140826/Python.framework/Versions/2.7/lib/python2.7/site-packages/pandas/tseries/index.py", line 712, in astype return self.asobject File
"/usr/local/nest-python-2.7.8-Darwin-x86_64-20140826/Python.framework/Versions/2.7/lib/python2.7/site-packages/pandas/core/base.py", line 412, in asobject return Index(self._box_values(self.asi8), name=self.name, dtype=object) File
"/usr/local/nest-python-2.7.8-Darwin-x86_64-20140826/Python.framework/Versions/2.7/lib/python2.7/site-packages/pandas/core/index.py", line 1906, in asi8 return self.values.view('i8') ValueError: new type not compatible with array.
— Reply to this email directly or view it on GitHub https://github.com/impactlab/thermostat/issues/5.
— Reply to this email directly or view it on GitHub https://github.com/impactlab/thermostat/issues/5#issuecomment-126701660.
It may be an issue with the pandas version - which version of pandas are you using?
$ python -c "import pandas; print pandas.version.version"
my version is 0.14.1
On Fri, Jul 31, 2015 at 12:07 PM, Phil Ngo notifications@github.com wrote:
It may be an issue with the pandas version - which version of pandas are you using?
$ python -c "import pandas; print pandas.version.version"
— Reply to this email directly or view it on GitHub https://github.com/impactlab/thermostat/issues/5#issuecomment-126736154.
I uninstalled and reinstalled the package and got a slightly different error
"TypeError: 'NoneType' object is not iterable"
here's the info:
Traceback (most recent call last):
File "
File "/usr/local/nest-python-local/lib/python/site-packages/thermostat/metrics.py", line 33, in calculate_epa_draft_rccs_field_savings_metrics
for cooling_season, season_name in thermostat.get_cooling_seasons():
File "/usr/local/nest-python-local/lib/python/site-packages/thermostat/core.py", line 381, in get_cooling_seasons
inclusion = after_start & before_end & meets_cooling_thresholds &
meets_heating_thresholds & day_is_complete
File "/usr/local/nest-python-2.7.8-Darwin-x86_64-20140826/Python.framework/Versions/2.7/lib/python2.7/site-packages/pandas/core/index.py", line 964, in and
return self.intersection(other)
File "/usr/local/nest-python-2.7.8-Darwin-x86_64-20140826/Python.framework/Versions/2.7/lib/python2.7/site-packages/pandas/tseries/index.py", line 1120, in intersection
result = Index.intersection(self, other)
File "/usr/local/nest-python-2.7.8-Darwin-x86_64-20140826/Python.framework/Versions/2.7/lib/python2.7/site-packages/pandas/core/index.py", line 1072, in intersection
return this.intersection(other)
File "/usr/local/nest-python-2.7.8-Darwin-x86_64-20140826/Python.framework/Versions/2.7/lib/python2.7/site-packages/pandas/core/index.py", line 1086, in intersection
indexer = self.get_indexer_non_unique(other.values)[0].unique()
File "/usr/local/nest-python-2.7.8-Darwin-x86_64-20140826/Python.framework/Versions/2.7/lib/python2.7/site-packages/pandas/core/index.py", line 1313, in get_indexer_non_unique
self = Index(self.asi8)
File "/usr/local/nest-python-2.7.8-Darwin-x86_64-20140826/Python.framework/Versions/2.7/lib/python2.7/site-packages/pandas/core/index.py", line 172, in new
subarr = com._asarray_tuplesafe(data, dtype=object)
File "/usr/local/nest-python-2.7.8-Darwin-x86_64-20140826/Python.framework/Versions/2.7/lib/python2.7/site-packages/pandas/core/common.py", line 2170, in _asarray_tuplesafe
values = list(values)
TypeError: 'NoneType' object is not iterable
On Fri, Jul 31, 2015 at 12:10 PM, Michael Blasnik mblasnik@nestlabs.com wrote:
my version is 0.14.1
On Fri, Jul 31, 2015 at 12:07 PM, Phil Ngo notifications@github.com wrote:
It may be an issue with the pandas version - which version of pandas are you using?
$ python -c "import pandas; print pandas.version.version"
— Reply to this email directly or view it on GitHub https://github.com/impactlab/thermostat/issues/5#issuecomment-126736154 .
I tried the new version and got this error, which seems to stumble on the same piece of code but with a new error message about "new type not compatible with array".
Traceback (most recent call last): File "", line 2, in
File "/usr/local/nest-python-local/lib/python/site-packages/thermostat/metrics.py", line 33, in calculate_epa_draft_rccs_field_savings_metrics
for cooling_season, season_name in thermostat.get_cooling_seasons():
File "/usr/local/nest-python-local/lib/python/site-packages/thermostat/core.py", line 381, in get_cooling_seasons
inclusion = after_start & before_end & meets_cooling_thresholds & meets_heating_thresholds & day_is_complete
File "/usr/local/nest-python-2.7.8-Darwin-x86_64-20140826/Python.framework/Versions/2.7/lib/python2.7/site-packages/pandas/core/index.py", line 964, in and
return self.intersection(other)
File "/usr/local/nest-python-2.7.8-Darwin-x86_64-20140826/Python.framework/Versions/2.7/lib/python2.7/site-packages/pandas/tseries/index.py", line 1120, in intersection
result = Index.intersection(self, other)
File "/usr/local/nest-python-2.7.8-Darwin-x86_64-20140826/Python.framework/Versions/2.7/lib/python2.7/site-packages/pandas/core/index.py", line 1070, in intersection
this = self.astype('O')
File "/usr/local/nest-python-2.7.8-Darwin-x86_64-20140826/Python.framework/Versions/2.7/lib/python2.7/site-packages/pandas/tseries/index.py", line 712, in astype
return self.asobject
File "/usr/local/nest-python-2.7.8-Darwin-x86_64-20140826/Python.framework/Versions/2.7/lib/python2.7/site-packages/pandas/core/base.py", line 412, in asobject
return Index(self._box_values(self.asi8), name=self.name, dtype=object)
File "/usr/local/nest-python-2.7.8-Darwin-x86_64-20140826/Python.framework/Versions/2.7/lib/python2.7/site-packages/pandas/core/index.py", line 1906, in asi8
return self.values.view('i8')
ValueError: new type not compatible with array.