Advertisement
Guest User

Untitled

a guest
Sep 25th, 2018
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 20.69 KB | None | 0 0
  1. $ ipython
  2.  
  3. Python 2.7.12 (default, Dec  4 2017, 14:50:18)
  4. Type "copyright", "credits" or "license" for more information.
  5.  
  6. IPython 5.8.0 -- An enhanced Interactive Python.
  7. ?         -> Introduction and overview of IPython's features.
  8. %quickref -> Quick reference.
  9. help      -> Python's own help system.
  10. object?   -> Details about 'object', use 'object??' for extra details.
  11.  
  12. In [1]: %run -m pytest -ipdb issue025_test.py
  13. ================================================= test session starts =================================================
  14. platform linux2 -- Python 2.7.12, pytest-3.8.1, py-1.6.0, pluggy-0.7.1
  15. rootdir: /home/aling/pygeode_git/pygeode, inifile:
  16. plugins: ipdb-0.1
  17. collected 43 items                                                                                                    
  18.  
  19. issue004_test.py .                                                                                              [  2%]
  20. issue005_test.py .                                                                                              [  4%]
  21. issue006_test.py .                                                                                              [  6%]
  22. issue007_test.py .                                                                                              [  9%]
  23. issue010_test.py .                                                                                              [ 11%]
  24. issue012_test.py ..                                                                                             [ 16%]
  25. issue015_test.py .                                                                                              [ 18%]
  26. issue017_test.py ..                                                                                             [ 23%]
  27. issue023_test.py .                                                                                              [ 25%]
  28. issue025_test.py F                                                                                              [ 27%]
  29. issue028_test.py .                                                                                              [ 30%]
  30. issue032_test.py .                                                                                              [ 32%]
  31. issue036_test.py .                                                                                              [ 34%]
  32. issue039_test.py .                                                                                              [ 37%]
  33. issue041_test.py .                                                                                              [ 39%]
  34. issue044_test.py .                                                                                              [ 41%]
  35. issue046_test.py .                                                                                              [ 44%]
  36. issue049_test.py .                                                                                              [ 46%]
  37. issue053_test.py .                                                                                              [ 48%]
  38. issue058_test.py .                                                                                              [ 51%]
  39. issue061_test.py .                                                                                              [ 53%]
  40. issue065_test.py .                                                                                              [ 55%]
  41. issue066_test.py .                                                                                              [ 58%]
  42. issue068_test.py ......                                                                                         [ 72%]
  43. issue069_test.py .                                                                                              [ 74%]
  44. issue073_test.py .                                                                                              [ 76%]
  45. issue089_test.py .                                                                                              [ 79%]
  46. issue090_test.py .                                                                                              [ 81%]
  47. issue093_test.py ..                                                                                             [ 86%]
  48. issue096_test.py .                                                                                              [ 88%]
  49. issue097_test.py ..                                                                                             [ 93%]
  50. issue104_test.py .                                                                                              [ 95%]
  51. issue108_test.py ..                                                                                             [100%]
  52.  
  53. ====================================================== FAILURES =======================================================
  54. ____________________________________________________ test_issue025 ____________________________________________________
  55.  
  56.     def test_issue025():
  57.       lat = Lat([80,70,60])
  58.       var = Var(axes=[lat], values=[1,2,3], name='2B')
  59.    
  60.       # Save the variable
  61.       nc.save ("issue025_test.nc", var)
  62.    
  63.       # This may crash in some versions of the netcdf library.
  64.    
  65.       # Even if it doesn't crash, it's a good idea to enforce the legal
  66.       # netcdf names
  67.    
  68.       f = nc.open("issue025_test.nc")
  69.    
  70. >     assert len(f.vars) == 1
  71. E     AssertionError: assert 2 == 1
  72. E      +  where 2 = len([<Var '_2B'>, <Var 'lat_weights'>])
  73. E      +    where [<Var '_2B'>, <Var 'lat_weights'>] = <pygeode.dataset.Dataset object at 0x7f59be407090>.vars
  74.  
  75. issue025_test.py:22: AssertionError
  76. ================================================== warnings summary ===================================================
  77. /home/aling/.local/lib/python2.7/site-packages/scipy/special/__init__.py:640: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
  78.   from ._ufuncs import *
  79.  
  80. /home/aling/.local/lib/python2.7/site-packages/scipy/linalg/basic.py:17: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
  81.   from ._solve_toeplitz import levinson
  82.  
  83. /home/aling/.local/lib/python2.7/site-packages/scipy/linalg/__init__.py:207: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
  84.   from ._decomp_update import *
  85.  
  86. /home/aling/.local/lib/python2.7/site-packages/scipy/special/_ellip_harm.py:7: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
  87.   from ._ellip_harm_2 import _ellipsoid, _ellipsoid_norm
  88.  
  89. /home/aling/.local/lib/python2.7/site-packages/scipy/interpolate/_bsplines.py:10: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
  90.   from . import _bspl
  91.  
  92. /home/aling/.local/lib/python2.7/site-packages/scipy/sparse/lil.py:19: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
  93.   from . import _csparsetools
  94.  
  95. /home/aling/.local/lib/python2.7/site-packages/scipy/sparse/csgraph/__init__.py:165: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
  96.   from ._shortest_path import shortest_path, floyd_warshall, dijkstra,\
  97.  
  98. /home/aling/.local/lib/python2.7/site-packages/scipy/sparse/csgraph/_validation.py:5: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
  99.   from ._tools import csgraph_to_dense, csgraph_from_dense,\
  100.  
  101. /home/aling/.local/lib/python2.7/site-packages/scipy/sparse/csgraph/__init__.py:167: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
  102.   from ._traversal import breadth_first_order, depth_first_order, \
  103.  
  104. /home/aling/.local/lib/python2.7/site-packages/scipy/sparse/csgraph/__init__.py:169: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
  105.   from ._min_spanning_tree import minimum_spanning_tree
  106.  
  107. /home/aling/.local/lib/python2.7/site-packages/scipy/sparse/csgraph/__init__.py:170: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
  108.   from ._reordering import reverse_cuthill_mckee, maximum_bipartite_matching, \
  109.  
  110. /home/aling/.local/lib/python2.7/site-packages/scipy/spatial/__init__.py:95: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
  111.   from .ckdtree import *
  112.  
  113. /home/aling/.local/lib/python2.7/site-packages/scipy/spatial/__init__.py:96: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
  114.   from .qhull import *
  115.  
  116. /home/aling/.local/lib/python2.7/site-packages/scipy/spatial/_spherical_voronoi.py:18: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
  117.   from . import _voronoi
  118.  
  119. /home/aling/.local/lib/python2.7/site-packages/scipy/spatial/distance.py:122: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
  120.   from . import _hausdorff
  121.  
  122. /home/aling/.local/lib/python2.7/site-packages/scipy/optimize/_trlib/__init__.py:1: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
  123.   from ._trlib import TRLIBQuadraticSubproblem
  124.  
  125. /home/aling/.local/lib/python2.7/site-packages/scipy/optimize/_numdiff.py:10: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
  126.   from ._group_columns import group_dense, group_sparse
  127.  
  128. /home/aling/.local/lib/python2.7/site-packages/scipy/stats/_continuous_distns.py:18: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
  129.   from . import _stats
  130.  
  131. /usr/local/lib/python2.7/dist-packages/pygeode-1.2.2-py2.7-linux-x86_64.egg/pygeode/view.py:257: FutureWarning: Using a non-tuple sequence for multidimensional indexing is deprecated; use `arr[tuple(seq)]` instead of `arr[seq]`. In the future this will be interpreted as an array index, `arr[np.array(seq)]`, which will result either in an error or a different result.
  132.   values = values[[slice(None)]*i + [sl]]
  133.  
  134. /usr/local/lib/python2.7/dist-packages/pygeode-1.2.2-py2.7-linux-x86_64.egg/pygeode/formats/netcdf.py:391: UserWarning: cfmeta: data starts at year 0 (which usually indicates a climatology), but there's more than one year's worth of data!  Keeping it on a regular calendar.
  135.   return finalize_open(dataset, dimtypes, namemap, varlist, cfmeta)
  136.  
  137. /home/aling/pygeode_git/pygeode/tests/issues/issue015_test.py:16: UserWarning: skipping attribute ancillary_variables = lat_weights  (unsupported type unicode352)
  138.   nc.save("issue015_test.nc", x)
  139.  
  140. /usr/local/lib/python2.7/dist-packages/pygeode-1.2.2-py2.7-linux-x86_64.egg/pygeode/axis.py:693: UserWarning: No units available for the given relative values.  Ignoring values array and relying on absolute date fields for initialization.
  141.   return cls(values, name=name, atts=atts, **aux)
  142. /usr/local/lib/python2.7/dist-packages/pygeode-1.2.2-py2.7-linux-x86_64.egg/pygeode/axis.py:693: UserWarning: No units given, using default of 'days'
  143.   return cls(values, name=name, atts=atts, **aux)
  144.  
  145. /usr/local/lib/python2.7/dist-packages/pygeode-1.2.2-py2.7-linux-x86_64.egg/pygeode/formats/cfmeta.py:132: UserWarning: renaming '2B' to '_2B'
  146.   warn ("renaming '%s' to '%s'"%(oldname,newname))
  147. /home/aling/pygeode_git/pygeode/tests/issues/issue025_test.py:13: UserWarning: skipping attribute ancillary_variables = lat_weights  (unsupported type unicode352)
  148.   nc.save ("issue025_test.nc", var)
  149.  
  150. /home/aling/.local/lib/python2.7/site-packages/scipy/signal/_max_len_seq.py:8: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
  151.   from ._max_len_seq_inner import _max_len_seq_inner
  152. /home/aling/.local/lib/python2.7/site-packages/scipy/signal/_upfirdn.py:36: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
  153.   from ._upfirdn_apply import _output_len, _apply
  154. /home/aling/.local/lib/python2.7/site-packages/scipy/ndimage/measurements.py:36: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
  155.   from . import _ni_label
  156. /home/aling/.local/lib/python2.7/site-packages/scipy/signal/spectral.py:10: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
  157.   from ._spectral import _lombscargle
  158. /home/aling/.local/lib/python2.7/site-packages/scipy/signal/_peak_finding.py:13: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
  159.   from ._peak_finding_utils import (_argmaxima1d, _select_by_peak_distance,
  160. /usr/local/lib/python2.7/dist-packages/pygeode-1.2.2-py2.7-linux-x86_64.egg/pygeode/view.py:287: UserWarning: <class 'pygeode.reduce.WeightedNANMeanVar'> is returning a numpy scalar instead of an ndarray - re-wrapping it now
  161.   warn ("%s is returning a numpy scalar instead of an ndarray - re-wrapping it now"%type(var))
  162. /usr/local/lib/python2.7/dist-packages/pygeode-1.2.2-py2.7-linux-x86_64.egg/pygeode/view.py:287: UserWarning: <class 'pygeode.reduce.NANSDVar'> is returning a numpy scalar instead of an ndarray - re-wrapping it now
  163.   warn ("%s is returning a numpy scalar instead of an ndarray - re-wrapping it now"%type(var))
  164. /usr/local/lib/python2.7/dist-packages/pygeode-1.2.2-py2.7-linux-x86_64.egg/pygeode/view.py:287: UserWarning: <class 'pygeode.reduce.NANVarianceVar'> is returning a numpy scalar instead of an ndarray - re-wrapping it now
  165.   warn ("%s is returning a numpy scalar instead of an ndarray - re-wrapping it now"%type(var))
  166. /usr/local/lib/python2.7/dist-packages/pygeode-1.2.2-py2.7-linux-x86_64.egg/pygeode/view.py:287: UserWarning: <class 'pygeode.reduce.WeightedMeanVar'> is returning a numpy scalar instead of an ndarray - re-wrapping it now
  167.   warn ("%s is returning a numpy scalar instead of an ndarray - re-wrapping it now"%type(var))
  168. /usr/local/lib/python2.7/dist-packages/pygeode-1.2.2-py2.7-linux-x86_64.egg/pygeode/view.py:287: UserWarning: <class 'pygeode.reduce.SDVar'> is returning a numpy scalar instead of an ndarray - re-wrapping it now
  169.   warn ("%s is returning a numpy scalar instead of an ndarray - re-wrapping it now"%type(var))
  170. /usr/local/lib/python2.7/dist-packages/pygeode-1.2.2-py2.7-linux-x86_64.egg/pygeode/view.py:287: UserWarning: <class 'pygeode.reduce.VarianceVar'> is returning a numpy scalar instead of an ndarray - re-wrapping it now
  171.   warn ("%s is returning a numpy scalar instead of an ndarray - re-wrapping it now"%type(var))
  172.  
  173. /usr/local/lib/python2.7/dist-packages/pygeode-1.2.2-py2.7-linux-x86_64.egg/pygeode/smooth.py:83: FutureWarning: Using a non-tuple sequence for multidimensional indexing is deprecated; use `arr[tuple(seq)]` instead of `arr[seq]`. In the future this will be interpreted as an array index, `arr[np.array(seq)]`, which will result either in an error or a different result.
  174.   src[sslo] = indata
  175. /usr/local/lib/python2.7/dist-packages/pygeode-1.2.2-py2.7-linux-x86_64.egg/pygeode/smooth.py:89: FutureWarning: Using a non-tuple sequence for multidimensional indexing is deprecated; use `arr[tuple(seq)]` instead of `arr[seq]`. In the future this will be interpreted as an array index, `arr[np.array(seq)]`, which will result either in an error or a different result.
  176.   src[sslo] = src[ssli]
  177. /usr/local/lib/python2.7/dist-packages/pygeode-1.2.2-py2.7-linux-x86_64.egg/pygeode/smooth.py:97: FutureWarning: Using a non-tuple sequence for multidimensional indexing is deprecated; use `arr[tuple(seq)]` instead of `arr[seq]`. In the future this will be interpreted as an array index, `arr[np.array(seq)]`, which will result either in an error or a different result.
  178.   out[outsl] = self._convolve(src, self.kernel, 'same')[cnvsl]
  179.  
  180. /usr/local/lib/python2.7/dist-packages/pygeode-1.2.2-py2.7-linux-x86_64.egg/pygeode/diff.py:72: FutureWarning: Using a non-tuple sequence for multidimensional indexing is deprecated; use `arr[tuple(seq)]` instead of `arr[seq]`. In the future this will be interpreted as an array index, `arr[np.array(seq)]`, which will result either in an error or a different result.
  181.   return diff[getleft]
  182.  
  183. /home/aling/pygeode_git/pygeode/tests/issues/issue090_test.py:10: UserWarning: skipping attribute ancillary_variables = lat_weights  (unsupported type unicode352)
  184.   netcdf.save("issue090.data", t1)
  185.  
  186. /usr/local/lib/python2.7/dist-packages/pygeode-1.2.2-py2.7-linux-x86_64.egg/pygeode/tools.py:488: FutureWarning: Using a non-tuple sequence for multidimensional indexing is deprecated; use `arr[tuple(seq)]` instead of `arr[seq]`. In the future this will be interpreted as an array index, `arr[np.array(seq)]`, which will result either in an error or a different result.
  187.   bigout[sl] += out
  188. /usr/local/lib/python2.7/dist-packages/pygeode-1.2.2-py2.7-linux-x86_64.egg/pygeode/tools.py:489: FutureWarning: Using a non-tuple sequence for multidimensional indexing is deprecated; use `arr[tuple(seq)]` instead of `arr[seq]`. In the future this will be interpreted as an array index, `arr[np.array(seq)]`, which will result either in an error or a different result.
  189.   bigcount[sl] += count
  190.  
  191. /usr/local/lib/python2.7/dist-packages/pygeode-1.2.2-py2.7-linux-x86_64.egg/pygeode/view.py:287: UserWarning: <class 'pygeode.varoperations.Replace_axes'> is returning a numpy scalar instead of an ndarray - re-wrapping it now
  192.   warn ("%s is returning a numpy scalar instead of an ndarray - re-wrapping it now"%type(var))
  193.  
  194. -- Docs: https://docs.pytest.org/en/latest/warnings.html
  195. ================================== 1 failed, 42 passed, 44 warnings in 1.85 seconds ===================================
  196. ---------------------------------------------------------------------------
  197. SystemExit                                Traceback (most recent call last)
  198. /usr/lib/python2.7/runpy.pyc in run_module(mod_name, init_globals, run_name, alter_sys)
  199.     186     if alter_sys:
  200.     187         return _run_module_code(code, init_globals, run_name,
  201. --> 188                                 fname, loader, pkg_name)
  202.     189     else:
  203.     190         # Leave the sys module alone
  204.  
  205. /usr/lib/python2.7/runpy.pyc in _run_module_code(code, init_globals, mod_name, mod_fname, mod_loader, pkg_name)
  206.      80         mod_globals = temp_module.module.__dict__
  207.      81         _run_code(code, mod_globals, init_globals,
  208. ---> 82                   mod_name, mod_fname, mod_loader, pkg_name)
  209.      83     # Copy the globals of the temporary module, as they
  210.      84     # may be cleared when the temporary module goes away
  211.  
  212. /usr/lib/python2.7/runpy.pyc in _run_code(code, run_globals, init_globals, mod_name, mod_fname, mod_loader, pkg_name)
  213.      70                        __loader__ = mod_loader,
  214.      71                        __package__ = pkg_name)
  215. ---> 72     exec code in run_globals
  216.      73     return run_globals
  217.      74
  218.  
  219. /usr/local/lib/python2.7/dist-packages/pytest.py in <module>()
  220.      75     import pytest
  221.      76
  222. ---> 77     raise SystemExit(pytest.main())
  223.      78 else:
  224.      79
  225.  
  226. SystemExit: 1
  227. /usr/local/lib/python2.7/dist-packages/IPython/core/interactiveshell.py:2590: UserWarning: Unknown failure executing module: <pytest>
  228.   warn('Unknown failure executing module: <%s>' % mod_name)
  229.  
  230. In [2]: %debug
  231. > /usr/local/lib/python2.7/dist-packages/pytest.py(77)<module>()
  232.      75     import pytest
  233.      76
  234. ---> 77     raise SystemExit(pytest.main())
  235.      78 else:
  236.      79
  237.  
  238. ipdb> u
  239. > /usr/lib/python2.7/runpy.py(72)_run_code()
  240.      70                        __loader__ = mod_loader,
  241.      71                        __package__ = pkg_name)
  242. ---> 72     exec code in run_globals
  243.      73     return run_globals
  244.      74
  245.  
  246. ipdb> u
  247. > /usr/lib/python2.7/runpy.py(82)_run_module_code()
  248.      80         mod_globals = temp_module.module.__dict__
  249.      81         _run_code(code, mod_globals, init_globals,
  250. ---> 82                   mod_name, mod_fname, mod_loader, pkg_name)
  251.      83     # Copy the globals of the temporary module, as they
  252.      84     # may be cleared when the temporary module goes away
  253.  
  254. ipdb> u
  255. > /usr/lib/python2.7/runpy.py(188)run_module()
  256.     186     if alter_sys:
  257.     187         return _run_module_code(code, init_globals, run_name,
  258. --> 188                                 fname, loader, pkg_name)
  259.     189     else:
  260.     190         # Leave the sys module alone
  261.  
  262. ipdb> u
  263. *** Oldest frame
  264. ipdb> l
  265.     183     if run_name is None:
  266.     184         run_name = mod_name
  267.     185     pkg_name = mod_name.rpartition('.')[0]
  268.     186     if alter_sys:
  269.     187         return _run_module_code(code, init_globals, run_name,
  270. --> 188                                 fname, loader, pkg_name)
  271.     189     else:
  272.     190         # Leave the sys module alone
  273.     191         return _run_code(code, {}, init_globals, run_name,
  274.     192                          fname, loader, pkg_name)
  275.     193
  276.  
  277. ipdb> exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement