Alex,

I've attached the output of the pip libraries I have currently loaded for python3.

I think the underlying problem, at least for the tests, is that the dependencies declared in deps_py{2|3}.txt are un-versioned.

Can you post the output of these commands for both python2 and python3?

    $ python --version

    $ pip freeze

I'll happily re-run the test suites and verify on my side.

Once I have the test suites running, I'll start poking through the examples to make sure they run, too.

-Todd



On 02/12/2017 03:21 PM, Todd Greenwood-Geer wrote:


On Feb 12, 2017 2:02 PM, "Goodman, Alexander (398K)" <alexander.good...@jpl.nasa.gov <mailto:alexander.good...@jpl.nasa.gov>> wrote:

    Hi Todd,

    What versions of numpy and matplotlib are you using? I know that
    both of
    these packages have had some major releases recently, and I
    suspect that
    incompatibilities introduced in these releases may be the reason
    for the
    errors your seeing as the last commit to the ocw repo came before
    that.

    Thanks,
    Alex

    On Sun, Feb 12, 2017 at 12:33 PM, Todd Greenwood-Geer <
    t.greenwoodg...@gmail.com <mailto:t.greenwoodg...@gmail.com>> wrote:

    > I'd like to experiment with this workbench but so far,
    everything I have
    > tried has been broken...
    >
    > REPRO 1: test fails
    > ------------------------
    >
    > $ git clone https://github.com/apache/climate.git
    <https://github.com/apache/climate.git>
    > $ cd climate
    > $ git log | head
    > commit 90b1b9ffe32d21af97f5437253f9621a14ec557f
    > Merge: d98d172 21fe4ea
    > Author: huikyole <huiky...@argo.jpl.nasa.gov
    <mailto:huiky...@argo.jpl.nasa.gov>>
    > Date:   Tue Jan 10 08:19:40 2017 -0800
    >
    >      CLIMATE-894 - Debugging regrid_spatial_mask
    >
    > $ ./test.sh
    > ...
    >
    >
    ======================================================================
    > FAIL: test_odd_nice_intervals
    > (ocw.tests.test_plotter.TestNiceIntervalsFunction)
    >
    ----------------------------------------------------------------------
    > Traceback (most recent call last):
    >    File
    >
    "/home/toddg/projects/climate/climate/ocw/tests/test_plotter.py", line
    > 46, in test_odd_nice_intervals
    >      np.testing.assert_array_equal(result, expected_array)
    >    File
    > "/opt/anaconda3/envs/python27/lib/python2.7/site-packages/
    > numpy/testing/utils.py",
    > line 871, in assert_array_equal
    >      verbose=verbose, header='Arrays are not equal')
    >    File
    > "/opt/anaconda3/envs/python27/lib/python2.7/site-packages/
    > numpy/testing/utils.py",
    > line 796, in assert_array_compare
    >      raise AssertionError(msg)
    > AssertionError:
    > Arrays are not equal
    >
    > (mismatch 80.0%)
    >   x: array([-1.6, -0.8,  0. ,  0.8,  1.6])
    >   y: array([-2., -1.,  0.,  1.,  2.])
    >
    >
    ----------------------------------------------------------------------
    > Ran 206 tests in 126.232s
    >
    > FAILED (failures=1)
    >
    > REPRO 2: examples fail
    > -------------------------------
    > (python27) [toddg@dino examples (master)]$ python
    > simple_model_to_model_bias.py
    > Loading
    >
    /tmp/AFRICA_KNMI-RACMO2.2b_CTL_ERAINT_MM_50km_1989-2008_tasmax.nc
    <http://AFRICA_KNMI-RACMO2.2b_CTL_ERAINT_MM_50km_1989-2008_tasmax.nc>
    into
    > an OCW Dataset Object
    > KNMI_Dataset.values shape: (times, lats, lons) - (240, 201, 194)
    >
    > Loading
    /tmp/AFRICA_UC-WRF311_CTL_ERAINT_MM_50km-rg_1989-2008_tasmax.nc
    <http://tasmax.nc>
    > into an OCW Dataset Object
    > WRF_Dataset.values shape: (times, lats, lons) - (240, 201, 194)
    >
    > Temporally Rebinning the Datasets to an Annual Timestep
    > KNMI_Dataset.values shape: (20, 201, 194)
    > WRF_Dataset.values shape: (20, 201, 194)
    >
    >
    > The KNMI_Dataset spatial bounds (min_lat, max_lat, min_lon,
    max_lon) are:
    > (-45.7599983215332, 42.2400016784668, -24.639999389648438,
    > 60.279998779296875)
    >
    > The KNMI_Dataset spatial resolution (lat_resolution,
    lon_resolution) is:
    > (0.43999863, 0.44000053)
    >
    >
    > Spatially Regridding the KNMI_Dataset...
    > Traceback (most recent call last):
    >    File "simple_model_to_model_bias.py", line 79, in <module>
    >      knmi_dataset = dsp.spatial_regrid(knmi_dataset, new_lats,
    new_lons)
    >    File
    > "/opt/anaconda3/envs/python27/lib/python2.7/site-packages/
    > ocw/dataset_processor.py",
    > line 301, in spatial_regrid
    >      values_original.data[idx] = q_shifted[idx]
    >    File
    > "/opt/anaconda3/envs/python27/lib/python2.7/site-packages/
    > numpy/ma/core.py",
    > line 3168, in __getitem__
    >      dout = self.data[indx]
    > IndexError: in the future, 0-d boolean arrays will be
    interpreted as a
    > valid boolean index
    >
    > -Todd
    >



    --
    Alex Goodman
    Data Scientist I
    Science Data Modeling and Computing (398K)
    Jet Propulsion Laboratory
    California Institute of Technology
    Tel: +1-818-354-6012 <tel:%2B1-818-354-6012>




alabaster==0.7.9
anaconda-client==1.6.0
anaconda-navigator==1.4.3
astroid==1.4.9
astropy==1.3
Babel==2.3.4
backports.shutil-get-terminal-size==1.0.0
beautifulsoup4==4.5.3
bitarray==0.8.1
blaze==0.10.1
bokeh==0.12.4
boto==2.45.0
Bottleneck==1.2.0
cffi==1.9.1
chardet==2.3.0
chest==0.2.3
click==6.7
cloudpickle==0.2.2
clyent==1.2.2
colorama==0.3.7
conda==4.3.11
configobj==5.0.6
contextlib2==0.5.4
cryptography==1.7.1
cycler==0.10.0
Cython==0.25.2
cytoolz==0.8.2
dask==0.13.0
datashape==0.5.4
decorator==4.0.11
dill==0.2.5
docutils==0.13.1
et-xmlfile==1.0.1
fastcache==1.0.2
Flask==0.12
Flask-Cors==3.0.2
gevent==1.2.1
greenlet==0.4.11
h5py==2.6.0
HeapDict==1.0.0
idna==2.2
imagesize==0.7.1
ipykernel==4.5.2
ipython==5.1.0
ipython-genutils==0.1.0
ipywidgets==5.2.2
isort==4.2.5
itsdangerous==0.24
jdcal==1.3
jedi==0.9.0
Jinja2==2.9.4
jsonschema==2.5.1
jupyter==1.0.0
jupyter-client==4.4.0
jupyter-console==5.0.0
jupyter-core==4.2.1
lazy-object-proxy==1.2.2
llvmlite==0.15.0
locket==0.2.0
lxml==3.7.2
MarkupSafe==0.23
matplotlib==2.0.0
mistune==0.7.3
mpmath==0.19
multipledispatch==0.4.9
nbconvert==4.2.0
nbformat==4.2.0
networkx==1.11
nltk==3.2.2
nose==1.3.7
notebook==4.3.1
numba==0.30.1
numexpr==2.6.1
numpy==1.11.3
numpydoc==0.6.0
odo==0.5.0
openpyxl==2.4.1
pandas==0.19.2
partd==0.3.7
pathlib2==2.2.0
patsy==0.4.1
pep8==1.7.0
pexpect==4.2.1
pickleshare==0.7.4
Pillow==4.0.0
ply==3.9
prompt-toolkit==1.0.9
psutil==5.0.1
ptyprocess==0.5.1
py==1.4.32
pyasn1==0.1.9
pycosat==0.6.1
pycparser==2.17
pycrypto==2.6.1
pycurl==7.43.0
pyflakes==1.5.0
Pygments==2.1.3
pylint==1.6.4
pyOpenSSL==16.2.0
pyparsing==2.1.4
pytest==3.0.5
python-dateutil==2.6.0
pytz==2016.10
PyYAML==3.12
pyzmq==16.0.2
QtAwesome==0.4.3
qtconsole==4.2.1
QtPy==1.2.1
redis==2.10.5
requests==2.12.4
rope-py3k==0.9.4.post1
scikit-image==0.12.3
scikit-learn==0.18.1
scipy==0.18.1
seaborn==0.7.1
simplegeneric==0.8.1
singledispatch==3.4.0.3
six==1.10.0
snowballstemmer==1.2.1
sockjs-tornado==1.0.3
Sphinx==1.5.1
spyder==3.1.2
SQLAlchemy==1.1.5
statsmodels==0.6.1
sympy==1.0
tables==3.3.0
terminado==0.6
toolz==0.8.2
tornado==4.4.2
traitlets==4.3.1
unicodecsv==0.14.1
wcwidth==0.1.7
Werkzeug==0.11.15
widgetsnbextension==1.2.6
wrapt==1.10.8
xlrd==1.0.0
XlsxWriter==0.9.6
xlwt==1.2.0

Reply via email to