html_url,issue_url,id,node_id,user,created_at,updated_at,author_association,body,reactions,performed_via_github_app,issue
https://github.com/pydata/xarray/pull/12#issuecomment-35145419,https://api.github.com/repos/pydata/xarray/issues/12,35145419,MDEyOklzc3VlQ29tbWVudDM1MTQ1NDE5,1794715,2014-02-15T02:39:21Z,2014-02-15T02:39:21Z,CONTRIBUTOR,"Thanks for looking at that. I'll do a more thorough evaluation over the
weekend!
On Fri, Feb 14, 2014 at 5:49 PM, Stephan Hoyer notifications@github.comwrote:
> Thanks for @ebrevdo https://github.com/ebrevdo for taking a look! I'm
> pretty sure the issue here is the numpy version. I am running numpy 1.8 on
> my machine. It looks like we need at least numpy 1.7 for timedelta math
> [1], and it appears that array_equal can only compare string arrays in
> numpy 1.8 [2]. It's not insurmountable to work around either of these
> issues, but for I will increment the required version of numpy to 1.8.
>
> [1]
> http://pandas.pydata.org/pandas-docs/stable/timeseries.html#numpy-1-7-compatibility
> [2] numpy/numpy#2686 https://github.com/numpy/numpy/issues/2686
>
> ##
>
> Reply to this email directly or view it on GitHubhttps://github.com/akleeman/scidata/pull/12#issuecomment-35144276
> .
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,27625970
https://github.com/pydata/xarray/pull/12#issuecomment-35133287,https://api.github.com/repos/pydata/xarray/issues/12,35133287,MDEyOklzc3VlQ29tbWVudDM1MTMzMjg3,1794715,2014-02-14T22:55:58Z,2014-02-14T22:55:58Z,CONTRIBUTOR,"Looks like a great change! I'm seeing some failing tests:
~/dev/scidata (DataView)$ python setup.py test
running test
running egg_info
writing requirements to src/xray.egg-info/requires.txt
writing src/xray.egg-info/PKG-INFO
writing top-level names to src/xray.egg-info/top_level.txt
writing dependency_links to src/xray.egg-info/dependency_links.txt
reading manifest file 'src/xray.egg-info/SOURCES.txt'
writing manifest file 'src/xray.egg-info/SOURCES.txt'
running build_ext
test_1d_math (test.test_array.TestArray) ... ok
test_aggregate (test.test_array.TestArray) ... ERROR
test_array_interface (test.test_array.TestArray) ... ok
test_broadcasting_failures (test.test_array.TestArray) ... ok
test_broadcasting_math (test.test_array.TestArray) ... ok
test_collapse (test.test_array.TestArray) ... ok
test_data (test.test_array.TestArray) ... ok
test_from_stack (test.test_array.TestArray) ... ok
test_groupby (test.test_array.TestArray) ... ERROR
test_indexed_by (test.test_array.TestArray) ... ok
test_inplace_math (test.test_array.TestArray) ... ok
test_items (test.test_array.TestArray) ... ok
test_properties (test.test_array.TestArray) ... ok
test_repr (test.test_array.TestArray) ... ok
test_transpose (test.test_array.TestArray) ... ok
test_attributes (test.test_dataset.DataTest) ... SKIP: attribute checks are not yet backend specific
test_coordinate (test.test_dataset.DataTest) ... ok
test_copy (test.test_dataset.DataTest) ... ok
test_dimension (test.test_dataset.DataTest) ... ok
test_getitem (test.test_dataset.DataTest) ... ERROR
test_indexed_by (test.test_dataset.DataTest) ... ok
test_init (test.test_dataset.DataTest) ... ok
test_iterator (test.test_dataset.DataTest) ... ok
test_labeled_by (test.test_dataset.DataTest) ... ERROR
test_merge (test.test_dataset.DataTest) ... ok
test_rename (test.test_dataset.DataTest) ... ok
test_repr (test.test_dataset.DataTest) ... ok
test_select (test.test_dataset.DataTest) ... ok
test_setitem (test.test_dataset.DataTest) ... ok
test_to_dataframe (test.test_dataset.DataTest) ... ok
test_unselect (test.test_dataset.DataTest) ... SKIP: need to write this test
test_variable (test.test_dataset.DataTest) ... ok
test_variable_indexing (test.test_dataset.DataTest) ... ok
test_write_store (test.test_dataset.DataTest) ... ok
test_attributes (test.test_dataset.NetCDF4DataTest) ... SKIP: attribute checks are not yet backend specific
test_coordinate (test.test_dataset.NetCDF4DataTest) ... ok
test_copy (test.test_dataset.NetCDF4DataTest) ... ok
test_dimension (test.test_dataset.NetCDF4DataTest) ... ok
test_dump_and_open_dataset (test.test_dataset.NetCDF4DataTest) ... ok
test_getitem (test.test_dataset.NetCDF4DataTest) ... ERROR
test_indexed_by (test.test_dataset.NetCDF4DataTest) ... ok
test_init (test.test_dataset.NetCDF4DataTest) ... ok
test_iterator (test.test_dataset.NetCDF4DataTest) ... ok
test_labeled_by (test.test_dataset.NetCDF4DataTest) ... ERROR
test_merge (test.test_dataset.NetCDF4DataTest) ... ok
test_rename (test.test_dataset.NetCDF4DataTest) ... ok
test_repr (test.test_dataset.NetCDF4DataTest) ... ok
test_select (test.test_dataset.NetCDF4DataTest) ... ok
test_setitem (test.test_dataset.NetCDF4DataTest) ... ok
test_to_dataframe (test.test_dataset.NetCDF4DataTest) ... ok
test_unselect (test.test_dataset.NetCDF4DataTest) ... SKIP: need to write this test
test_variable (test.test_dataset.NetCDF4DataTest) ... ok
test_variable_indexing (test.test_dataset.NetCDF4DataTest) ... ok
test_write_store (test.test_dataset.NetCDF4DataTest) ... ok
test_attributes (test.test_dataset.ScipyDataTest) ... SKIP: attribute checks are not yet backend specific
test_coordinate (test.test_dataset.ScipyDataTest) ... ok
test_copy (test.test_dataset.ScipyDataTest) ... ok
test_dimension (test.test_dataset.ScipyDataTest) ... ok
test_dump_and_open_dataset (test.test_dataset.ScipyDataTest) ... FAIL
test_getitem (test.test_dataset.ScipyDataTest) ... ERROR
test_indexed_by (test.test_dataset.ScipyDataTest) ... ok
test_init (test.test_dataset.ScipyDataTest) ... ok
test_iterator (test.test_dataset.ScipyDataTest) ... ok
test_labeled_by (test.test_dataset.ScipyDataTest) ... ERROR
test_merge (test.test_dataset.ScipyDataTest) ... ok
test_rename (test.test_dataset.ScipyDataTest) ... ok
test_repr (test.test_dataset.ScipyDataTest) ... ok
test_select (test.test_dataset.ScipyDataTest) ... ok
test_setitem (test.test_dataset.ScipyDataTest) ... ok
test_to_dataframe (test.test_dataset.ScipyDataTest) ... ok
test_unselect (test.test_dataset.ScipyDataTest) ... SKIP: need to write this test
test_variable (test.test_dataset.ScipyDataTest) ... ok
test_variable_indexing (test.test_dataset.ScipyDataTest) ... ok
test_write_store (test.test_dataset.ScipyDataTest) ... ok
test.test_dataset.create_test_data ... ok
test_aggregate (test.test_dataset_array.TestDatasetArray) ... FAIL
test_array_interface (test.test_dataset_array.TestDatasetArray) ... ok
test_collapse (test.test_dataset_array.TestDatasetArray) ... ok
test_dataset_getitem (test.test_dataset_array.TestDatasetArray) ... ok
test_from_stack (test.test_dataset_array.TestDatasetArray) ... ok
test_groupby (test.test_dataset_array.TestDatasetArray) ... FAIL
test_indexed_by (test.test_dataset_array.TestDatasetArray) ... ok
test_inplace_math (test.test_dataset_array.TestDatasetArray) ... ok
test_intersection (test.test_dataset_array.TestDatasetArray) ... FAIL
test_item_math (test.test_dataset_array.TestDatasetArray) ... ok
test_items (test.test_dataset_array.TestDatasetArray) ... ok
test_iteration (test.test_dataset_array.TestDatasetArray) ... ok
test_labeled_by (test.test_dataset_array.TestDatasetArray) ... FAIL
test_loc (test.test_dataset_array.TestDatasetArray) ... FAIL
test_math (test.test_dataset_array.TestDatasetArray) ... ok
test_properties (test.test_dataset_array.TestDatasetArray) ... ok
test_refocus (test.test_dataset_array.TestDatasetArray) ... ok
test_renamed (test.test_dataset_array.TestDatasetArray) ... ok
test_frozen (test.test_utils.TestDictionaries) ... ok
test_ordered_dict_intersection (test.test_utils.TestDictionaries) ... ok
test_safe (test.test_utils.TestDictionaries) ... ok
test_unsafe (test.test_utils.TestDictionaries) ... ok
test_expanded_indexer (test.test_utils.TestIndexers) ... ok
test_orthogonal_indexer (test.test_utils.TestIndexers) ... ok
test (test.test_utils.TestNum2DatetimeIndex) ... ERROR
#
## ERROR: test_aggregate (test.test_array.TestArray)
Traceback (most recent call last):
File ""/Users/ebrevdo/dev/scidata/test/test_array.py"", line 240, in test_aggregate
self.assertVarEqual(expected_unique, actual_unique)
File ""/Users/ebrevdo/dev/scidata/test/**init**.py"", line 10, in assertVarEqual
self.assertTrue(utils.variable_equal(v1, v2))
File ""/Users/ebrevdo/dev/scidata/src/xray/utils.py"", line 132, in variable_equal
return np.array_equal(data1, data2)
File ""/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/core/numeric.py"", line 1977, in array_equal
return bool(logical_and.reduce(equal(a1,a2).ravel()))
AttributeError: 'NotImplementedType' object has no attribute 'ravel'
#
## ERROR: test_groupby (test.test_array.TestArray)
Traceback (most recent call last):
File ""/Users/ebrevdo/dev/scidata/test/test_array.py"", line 220, in test_groupby
self.assertVarEqual(expected_unique, grouped.unique_coord)
File ""/Users/ebrevdo/dev/scidata/test/**init**.py"", line 10, in assertVarEqual
self.assertTrue(utils.variable_equal(v1, v2))
File ""/Users/ebrevdo/dev/scidata/src/xray/utils.py"", line 132, in variable_equal
return np.array_equal(data1, data2)
File ""/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/core/numeric.py"", line 1977, in array_equal
return bool(logical_and.reduce(equal(a1,a2).ravel()))
AttributeError: 'NotImplementedType' object has no attribute 'ravel'
#
## ERROR: test_getitem (test.test_dataset.DataTest)
Traceback (most recent call last):
File ""/Users/ebrevdo/dev/scidata/test/test_dataset.py"", line 325, in test_getitem
{'units': 'days since 2000-01-01'})
File ""/Users/ebrevdo/dev/scidata/src/xray/dataset.py"", line 464, in create_variable
return self.add_variable(name, v)
File ""/Users/ebrevdo/dev/scidata/src/xray/dataset.py"", line 534, in add_variable
return self.set_variable(name, var)
File ""/Users/ebrevdo/dev/scidata/src/xray/dataset.py"", line 595, in set_variable
self.indices.build_index(name)
File ""/Users/ebrevdo/dev/scidata/src/xray/dataset.py"", line 109, in build_index
self.cache[key] = self.dataset._create_index(key)
File ""/Users/ebrevdo/dev/scidata/src/xray/dataset.py"", line 224, in _create_index
attr.get('calendar'))
File ""/Users/ebrevdo/dev/scidata/src/xray/utils.py"", line 106, in num2datetimeindex
dates = first_time_delta \* num_delta + np.datetime64(first_dates[0])
TypeError: ufunc 'multiply' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule 'safe'
#
## ERROR: test_labeled_by (test.test_dataset.DataTest)
Traceback (most recent call last):
File ""/Users/ebrevdo/dev/scidata/test/test_dataset.py"", line 234, in test_labeled_by
{'units': 'days since 2000-01-01'})
File ""/Users/ebrevdo/dev/scidata/src/xray/dataset.py"", line 464, in create_variable
return self.add_variable(name, v)
File ""/Users/ebrevdo/dev/scidata/src/xray/dataset.py"", line 534, in add_variable
return self.set_variable(name, var)
File ""/Users/ebrevdo/dev/scidata/src/xray/dataset.py"", line 595, in set_variable
self.indices.build_index(name)
File ""/Users/ebrevdo/dev/scidata/src/xray/dataset.py"", line 109, in build_index
self.cache[key] = self.dataset._create_index(key)
File ""/Users/ebrevdo/dev/scidata/src/xray/dataset.py"", line 224, in _create_index
attr.get('calendar'))
File ""/Users/ebrevdo/dev/scidata/src/xray/utils.py"", line 106, in num2datetimeindex
dates = first_time_delta \* num_delta + np.datetime64(first_dates[0])
TypeError: ufunc 'multiply' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule 'safe'
#
## ERROR: test_getitem (test.test_dataset.NetCDF4DataTest)
Traceback (most recent call last):
File ""/Users/ebrevdo/dev/scidata/test/test_dataset.py"", line 325, in test_getitem
{'units': 'days since 2000-01-01'})
File ""/Users/ebrevdo/dev/scidata/src/xray/dataset.py"", line 464, in create_variable
return self.add_variable(name, v)
File ""/Users/ebrevdo/dev/scidata/src/xray/dataset.py"", line 534, in add_variable
return self.set_variable(name, var)
File ""/Users/ebrevdo/dev/scidata/src/xray/dataset.py"", line 595, in set_variable
self.indices.build_index(name)
File ""/Users/ebrevdo/dev/scidata/src/xray/dataset.py"", line 109, in build_index
self.cache[key] = self.dataset._create_index(key)
File ""/Users/ebrevdo/dev/scidata/src/xray/dataset.py"", line 224, in _create_index
attr.get('calendar'))
File ""/Users/ebrevdo/dev/scidata/src/xray/utils.py"", line 106, in num2datetimeindex
dates = first_time_delta \* num_delta + np.datetime64(first_dates[0])
TypeError: ufunc 'multiply' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule 'safe'
#
## ERROR: test_labeled_by (test.test_dataset.NetCDF4DataTest)
Traceback (most recent call last):
File ""/Users/ebrevdo/dev/scidata/test/test_dataset.py"", line 234, in test_labeled_by
{'units': 'days since 2000-01-01'})
File ""/Users/ebrevdo/dev/scidata/src/xray/dataset.py"", line 464, in create_variable
return self.add_variable(name, v)
File ""/Users/ebrevdo/dev/scidata/src/xray/dataset.py"", line 534, in add_variable
return self.set_variable(name, var)
File ""/Users/ebrevdo/dev/scidata/src/xray/dataset.py"", line 595, in set_variable
self.indices.build_index(name)
File ""/Users/ebrevdo/dev/scidata/src/xray/dataset.py"", line 109, in build_index
self.cache[key] = self.dataset._create_index(key)
File ""/Users/ebrevdo/dev/scidata/src/xray/dataset.py"", line 224, in _create_index
attr.get('calendar'))
File ""/Users/ebrevdo/dev/scidata/src/xray/utils.py"", line 106, in num2datetimeindex
dates = first_time_delta \* num_delta + np.datetime64(first_dates[0])
TypeError: ufunc 'multiply' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule 'safe'
#
## ERROR: test_getitem (test.test_dataset.ScipyDataTest)
Traceback (most recent call last):
File ""/Users/ebrevdo/dev/scidata/test/test_dataset.py"", line 325, in test_getitem
{'units': 'days since 2000-01-01'})
File ""/Users/ebrevdo/dev/scidata/src/xray/dataset.py"", line 464, in create_variable
return self.add_variable(name, v)
File ""/Users/ebrevdo/dev/scidata/src/xray/dataset.py"", line 534, in add_variable
return self.set_variable(name, var)
File ""/Users/ebrevdo/dev/scidata/src/xray/dataset.py"", line 595, in set_variable
self.indices.build_index(name)
File ""/Users/ebrevdo/dev/scidata/src/xray/dataset.py"", line 109, in build_index
self.cache[key] = self.dataset._create_index(key)
File ""/Users/ebrevdo/dev/scidata/src/xray/dataset.py"", line 224, in _create_index
attr.get('calendar'))
File ""/Users/ebrevdo/dev/scidata/src/xray/utils.py"", line 106, in num2datetimeindex
dates = first_time_delta \* num_delta + np.datetime64(first_dates[0])
TypeError: ufunc 'multiply' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule 'safe'
#
## ERROR: test_labeled_by (test.test_dataset.ScipyDataTest)
Traceback (most recent call last):
File ""/Users/ebrevdo/dev/scidata/test/test_dataset.py"", line 234, in test_labeled_by
{'units': 'days since 2000-01-01'})
File ""/Users/ebrevdo/dev/scidata/src/xray/dataset.py"", line 464, in create_variable
return self.add_variable(name, v)
File ""/Users/ebrevdo/dev/scidata/src/xray/dataset.py"", line 534, in add_variable
return self.set_variable(name, var)
File ""/Users/ebrevdo/dev/scidata/src/xray/dataset.py"", line 595, in set_variable
self.indices.build_index(name)
File ""/Users/ebrevdo/dev/scidata/src/xray/dataset.py"", line 109, in build_index
self.cache[key] = self.dataset._create_index(key)
File ""/Users/ebrevdo/dev/scidata/src/xray/dataset.py"", line 224, in _create_index
attr.get('calendar'))
File ""/Users/ebrevdo/dev/scidata/src/xray/utils.py"", line 106, in num2datetimeindex
dates = first_time_delta \* num_delta + np.datetime64(first_dates[0])
TypeError: ufunc 'multiply' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule 'safe'
#
## ERROR: test (test.test_utils.TestNum2DatetimeIndex)
Traceback (most recent call last):
File ""/Users/ebrevdo/dev/scidata/test/test_utils.py"", line 68, in test
actual = utils.num2datetimeindex(num_dates, units, calendar)
File ""/Users/ebrevdo/dev/scidata/src/xray/utils.py"", line 106, in num2datetimeindex
dates = first_time_delta \* num_delta + np.datetime64(first_dates[0])
TypeError: ufunc 'multiply' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule 'safe'
#
## FAIL: test_dump_and_open_dataset (test.test_dataset.ScipyDataTest)
Traceback (most recent call last):
File ""/Users/ebrevdo/dev/scidata/test/test_dataset.py"", line 404, in test_dump_and_open_dataset
self.assertEquals(expected, actual)
AssertionError: !=
#
## FAIL: test_aggregate (test.test_dataset_array.TestDatasetArray)
Traceback (most recent call last):
File ""/Users/ebrevdo/dev/scidata/test/test_dataset_array.py"", line 213, in test_aggregate
self.assertViewEqual(expected, actual)
File ""/Users/ebrevdo/dev/scidata/test/test_dataset_array.py"", line 9, in assertViewEqual
self.assertEqual(dv1.dataset, dv2.dataset)
AssertionError: !=
#
## FAIL: test_groupby (test.test_dataset_array.TestDatasetArray)
Traceback (most recent call last):
File ""/Users/ebrevdo/dev/scidata/test/test_dataset_array.py"", line 189, in test_groupby
grouped.collapse(np.sum, dimension=None))
File ""/Users/ebrevdo/dev/scidata/test/test_dataset_array.py"", line 9, in assertViewEqual
self.assertEqual(dv1.dataset, dv2.dataset)
AssertionError: !=
#
## FAIL: test_intersection (test.test_dataset_array.TestDatasetArray)
Traceback (most recent call last):
File ""/Users/ebrevdo/dev/scidata/test/test_dataset_array.py"", line 240, in test_intersection
self.assertViewEqual(dv1, self.dv[:5])
File ""/Users/ebrevdo/dev/scidata/test/test_dataset_array.py"", line 9, in assertViewEqual
self.assertEqual(dv1.dataset, dv2.dataset)
AssertionError: !=
#
## FAIL: test_labeled_by (test.test_dataset_array.TestDatasetArray)
Traceback (most recent call last):
File ""/Users/ebrevdo/dev/scidata/test/test_dataset_array.py"", line 75, in test_labeled_by
self.assertViewEqual(self.dv, self.dv.labeled_by(x=slice(None)))
File ""/Users/ebrevdo/dev/scidata/test/test_dataset_array.py"", line 9, in assertViewEqual
self.assertEqual(dv1.dataset, dv2.dataset)
AssertionError: !=
#
## FAIL: test_loc (test.test_dataset_array.TestDatasetArray)
Traceback (most recent call last):
File ""/Users/ebrevdo/dev/scidata/test/test_dataset_array.py"", line 81, in test_loc
self.assertViewEqual(self.dv[:3], self.dv.loc[:'c'])
File ""/Users/ebrevdo/dev/scidata/test/test_dataset_array.py"", line 9, in assertViewEqual
self.assertEqual(dv1.dataset, dv2.dataset)
AssertionError: !=
---
Ran 100 tests in 1.248s
FAILED (failures=6, errors=9, skipped=6)
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,27625970