Uploaded image for project: 'Apache Open Climate Workbench'
  1. Apache Open Climate Workbench
  2. CLIMATE-907

Fix VisibleDeprecationWarning's in ocw.tests.test_dataset_processor.TestTemporalSubset

    Details

      Description

      test_temporal_subset_attributes (ocw.tests.test_dataset_processor.TestTemporalSubset) ... /Users/lmcgibbn/miniconda3/envs/test-environment/lib/python3.5/site-packages/numpy/ma/core.py:7801: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
        result = self._func.__call__(*args, **params).view(MaskedArray)
      /usr/local/climate/ocw/dataset_processor.py:90: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
        averaged_time.append(new_dataset.times[center_index])
      /usr/local/climate/ocw/dataset_processor.py:92: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
        nmonth * iyear: nmonth * iyear + nmonth, :], axis=0)
      /Users/lmcgibbn/miniconda3/envs/test-environment/lib/python3.5/site-packages/numpy/ma/core.py:3263: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
        _data[indx] = dval
      /Users/lmcgibbn/miniconda3/envs/test-environment/lib/python3.5/site-packages/numpy/ma/core.py:3266: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
        _mask[indx] = mval
      /Users/lmcgibbn/miniconda3/envs/test-environment/lib/python3.5/site-packages/numpy/ma/core.py:3289: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
        _data[indx] = dval
      /Users/lmcgibbn/miniconda3/envs/test-environment/lib/python3.5/site-packages/numpy/ma/core.py:3290: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
        _mask[indx] = mval
      ok
      test_temporal_subset_equal_start_end_month (ocw.tests.test_dataset_processor.TestTemporalSubset) ... /Users/lmcgibbn/miniconda3/envs/test-environment/lib/python3.5/site-packages/numpy/ma/core.py:7801: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
        result = self._func.__call__(*args, **params).view(MaskedArray)
      /usr/local/climate/ocw/dataset_processor.py:90: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
        averaged_time.append(new_dataset.times[center_index])
      /usr/local/climate/ocw/dataset_processor.py:92: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
        nmonth * iyear: nmonth * iyear + nmonth, :], axis=0)
      /Users/lmcgibbn/miniconda3/envs/test-environment/lib/python3.5/site-packages/numpy/ma/core.py:3263: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
        _data[indx] = dval
      /Users/lmcgibbn/miniconda3/envs/test-environment/lib/python3.5/site-packages/numpy/ma/core.py:3266: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
        _mask[indx] = mval
      /Users/lmcgibbn/miniconda3/envs/test-environment/lib/python3.5/site-packages/numpy/ma/core.py:3289: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
        _data[indx] = dval
      /Users/lmcgibbn/miniconda3/envs/test-environment/lib/python3.5/site-packages/numpy/ma/core.py:3290: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
        _mask[indx] = mval
      ok
      test_temporal_subset_with_average_time (ocw.tests.test_dataset_processor.TestTemporalSubset) ... /Users/lmcgibbn/miniconda3/envs/test-environment/lib/python3.5/site-packages/numpy/ma/core.py:7801: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
        result = self._func.__call__(*args, **params).view(MaskedArray)
      /usr/local/climate/ocw/dataset_processor.py:90: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
        averaged_time.append(new_dataset.times[center_index])
      /usr/local/climate/ocw/dataset_processor.py:92: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
        nmonth * iyear: nmonth * iyear + nmonth, :], axis=0)
      /Users/lmcgibbn/miniconda3/envs/test-environment/lib/python3.5/site-packages/numpy/ma/core.py:3263: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
        _data[indx] = dval
      /Users/lmcgibbn/miniconda3/envs/test-environment/lib/python3.5/site-packages/numpy/ma/core.py:3266: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
        _mask[indx] = mval
      /Users/lmcgibbn/miniconda3/envs/test-environment/lib/python3.5/site-packages/numpy/ma/core.py:3289: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
        _data[indx] = dval
      /Users/lmcgibbn/miniconda3/envs/test-environment/lib/python3.5/site-packages/numpy/ma/core.py:3290: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
        _mask[indx] = mval
      ok
      test_temporal_subset_with_average_values (ocw.tests.test_dataset_processor.TestTemporalSubset) ... /Users/lmcgibbn/miniconda3/envs/test-environment/lib/python3.5/site-packages/numpy/ma/core.py:7801: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
        result = self._func.__call__(*args, **params).view(MaskedArray)
      /usr/local/climate/ocw/dataset_processor.py:90: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
        averaged_time.append(new_dataset.times[center_index])
      /usr/local/climate/ocw/dataset_processor.py:92: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
        nmonth * iyear: nmonth * iyear + nmonth, :], axis=0)
      /Users/lmcgibbn/miniconda3/envs/test-environment/lib/python3.5/site-packages/numpy/ma/core.py:3263: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
        _data[indx] = dval
      /Users/lmcgibbn/miniconda3/envs/test-environment/lib/python3.5/site-packages/numpy/ma/core.py:3266: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
        _mask[indx] = mval
      /Users/lmcgibbn/miniconda3/envs/test-environment/lib/python3.5/site-packages/numpy/ma/core.py:3289: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
        _data[indx] = dval
      /Users/lmcgibbn/miniconda3/envs/test-environment/lib/python3.5/site-packages/numpy/ma/core.py:3290: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
        _mask[indx] = mval
      ok
      

        Issue Links

          Activity

          Hide
          githubbot ASF GitHub Bot added a comment -

          Github user asfgit closed the pull request at:

          https://github.com/apache/climate/pull/437

          Show
          githubbot ASF GitHub Bot added a comment - Github user asfgit closed the pull request at: https://github.com/apache/climate/pull/437
          Hide
          githubbot ASF GitHub Bot added a comment -

          GitHub user huikyole opened a pull request:

          https://github.com/apache/climate/pull/437

          CLIMATE-907 - Fix VisibleDeprecationWarning's in ocw.tests.test_dataset_processor.TestTemporalSubset

          • By applying int() to central_index, the warning has been addressed.

          You can merge this pull request into a Git repository by running:

          $ git pull https://github.com/huikyole/climate CLIMATE-907

          Alternatively you can review and apply these changes as the patch at:

          https://github.com/apache/climate/pull/437.patch

          To close this pull request, make a commit to your master/trunk branch
          with (at least) the following in the commit message:

          This closes #437


          commit 7be69902de761f426ebd639f5ec922d137d74f40
          Author: huikyole <huikyole@argo.jpl.nasa.gov>
          Date: 2017-04-19T21:32:00Z

          CLIMATE-907 - Fix VisibleDeprecationWarning's in ocw.tests.test_dataset_processor.TestTemporalSubset

          • By applying int() to central_index, the warning has been addressed.

          Show
          githubbot ASF GitHub Bot added a comment - GitHub user huikyole opened a pull request: https://github.com/apache/climate/pull/437 CLIMATE-907 - Fix VisibleDeprecationWarning's in ocw.tests.test_dataset_processor.TestTemporalSubset By applying int() to central_index, the warning has been addressed. You can merge this pull request into a Git repository by running: $ git pull https://github.com/huikyole/climate CLIMATE-907 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/climate/pull/437.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #437 commit 7be69902de761f426ebd639f5ec922d137d74f40 Author: huikyole <huikyole@argo.jpl.nasa.gov> Date: 2017-04-19T21:32:00Z CLIMATE-907 - Fix VisibleDeprecationWarning's in ocw.tests.test_dataset_processor.TestTemporalSubset By applying int() to central_index, the warning has been addressed.

            People

            • Assignee:
              huikyole Huikyo Lee
              Reporter:
              lewismc Lewis John McGibbney
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development