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

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

    XMLWordPrintableJSON

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
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: