[ 
https://issues.apache.org/jira/browse/CLIMATE-907?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lewis John McGibbney reassigned CLIMATE-907:
--------------------------------------------

    Assignee: Huikyo Lee

> Fix VisibleDeprecationWarning's in 
> ocw.tests.test_dataset_processor.TestTemporalSubset
> --------------------------------------------------------------------------------------
>
>                 Key: CLIMATE-907
>                 URL: https://issues.apache.org/jira/browse/CLIMATE-907
>             Project: Apache Open Climate Workbench
>          Issue Type: Improvement
>          Components: regridding/data processing, tests
>            Reporter: Lewis John McGibbney
>            Assignee: Huikyo Lee
>             Fix For: 1.2.0
>
>
> {code}
> 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
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to