[
https://issues.apache.org/jira/browse/CLIMATE-907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15975567#comment-15975567
]
ASF GitHub Bot commented on CLIMATE-907:
----------------------------------------
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 <[email protected]>
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.
----
> 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)